Fix build error when building for iOS simulator.
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 30 Apr 2014 23:00:47 +0000 (23:00 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 30 Apr 2014 23:00:47 +0000 (23:00 +0000)
* UIProcess/ios/ProcessAssertion.mm:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@168056 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/ios/ProcessAssertion.mm

index 9e4bd16..b3630ef 100644 (file)
@@ -1,3 +1,9 @@
+2014-04-30  Simon Fraser  <simon.fraser@apple.com>
+
+        Fix build error when building for iOS simulator.
+
+        * UIProcess/ios/ProcessAssertion.mm:
+
 2014-04-30  Alexey Proskuryakov  <ap@apple.com>
 
         Move Blob.slice() implementation into BlobRegistryImpl
index 6dd66bc..116013b 100644 (file)
@@ -32,6 +32,7 @@
 
 namespace WebKit {
 
+#if !PLATFORM(IOS_SIMULATOR)
 const BKSProcessAssertionFlags suspendedTabFlags = (BKSProcessAssertionAllowIdleSleep);
 const BKSProcessAssertionFlags backgroundTabFlags = (BKSProcessAssertionAllowIdleSleep | BKSProcessAssertionPreventTaskSuspend | BKSProcessAssertionAllowSuspendOnSleep);
 const BKSProcessAssertionFlags foregroundTabFlags = (BKSProcessAssertionAllowIdleSleep | BKSProcessAssertionPreventTaskSuspend | BKSProcessAssertionAllowSuspendOnSleep | BKSProcessAssertionWantsForegroundResourcePriority | BKSProcessAssertionPreventTaskThrottleDown);
@@ -47,7 +48,8 @@ static BKSProcessAssertionFlags flagsForState(AssertionState assertionState)
         return foregroundTabFlags;
     }
 }
-    
+#endif
+
 ProcessAssertion::ProcessAssertion(pid_t pid, AssertionState assertionState)
 {
     m_assertionState = assertionState;