Build break when disabled VIDEO since r166261
authorryuan.choi@samsung.com <ryuan.choi@samsung.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 2 Apr 2014 02:41:12 +0000 (02:41 +0000)
committerryuan.choi@samsung.com <ryuan.choi@samsung.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 2 Apr 2014 02:41:12 +0000 (02:41 +0000)
https://bugs.webkit.org/show_bug.cgi?id=131087

Reviewed by Gyuyoung Kim.

* testing/Internals.cpp: Added ENABLE(VIDEO) guards
(WebCore::Internals::simulateSystemSleep):
(WebCore::Internals::simulateSystemWake):

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

Source/WebCore/ChangeLog
Source/WebCore/testing/Internals.cpp

index 2aa190c..9ce44b2 100644 (file)
@@ -1,3 +1,14 @@
+2014-04-01  Ryuan Choi  <ryuan.choi@samsung.com>
+
+        Build break when disabled VIDEO since r166261
+        https://bugs.webkit.org/show_bug.cgi?id=131087
+
+        Reviewed by Gyuyoung Kim.
+
+        * testing/Internals.cpp: Added ENABLE(VIDEO) guards
+        (WebCore::Internals::simulateSystemSleep):
+        (WebCore::Internals::simulateSystemWake):
+
 2014-04-01  Timothy Hatcher  <timothy@apple.com>
 
         Remove HeapProfiler from the Web Inspector protocol.
index 23e2e1f..9f4226f 100644 (file)
@@ -2339,12 +2339,16 @@ void Internals::postRemoteControlCommand(const String& commandString, ExceptionC
 
 void Internals::simulateSystemSleep() const
 {
+#if ENABLE(VIDEO)
     MediaSessionManager::sharedManager().systemWillSleep();
+#endif
 }
 
 void Internals::simulateSystemWake() const
 {
+#if ENABLE(VIDEO)
     MediaSessionManager::sharedManager().systemDidWake();
+#endif
 }
 
 }