[WPE][GTK] Unused variables in UserMediaProcessManager.cpp
authoraperez@igalia.com <aperez@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 22 Aug 2017 01:14:15 +0000 (01:14 +0000)
committeraperez@igalia.com <aperez@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 22 Aug 2017 01:14:15 +0000 (01:14 +0000)
https://bugs.webkit.org/show_bug.cgi?id=175799

Reviewed by Alex Christensen.

The code which uses the "audioExtensionPath" and "videoExtensionPath" variables is guarded
with "#if ENABLE(SANDBOX_EXTENSIONS)”, so do the same for the variables themselves.

* UIProcess/UserMediaProcessManager.cpp: Add missing guards.

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

Source/WebKit/ChangeLog
Source/WebKit/UIProcess/UserMediaProcessManager.cpp

index 5830ebb..fafc81d 100644 (file)
@@ -1,3 +1,15 @@
+2017-08-21  Adrian Perez de Castro  <aperez@igalia.com>
+
+        [WPE][GTK] Unused variables in UserMediaProcessManager.cpp
+        https://bugs.webkit.org/show_bug.cgi?id=175799
+
+        Reviewed by Alex Christensen.
+
+        The code which uses the "audioExtensionPath" and "videoExtensionPath" variables is guarded
+        with "#if ENABLE(SANDBOX_EXTENSIONS)”, so do the same for the variables themselves.
+
+        * UIProcess/UserMediaProcessManager.cpp: Add missing guards.
+
 2017-08-21  Yoshiaki Jitsukawa  <Yoshiaki.Jitsukawa@sony.com>
 
         [PAL] Move spi/mac directory into PAL
index 97771cf..89224c4 100644 (file)
 
 namespace WebKit {
 
+#if ENABLE(SANDBOX_EXTENSIONS)
 static const char* const audioExtensionPath = "com.apple.webkit.microphone";
 static const char* const videoExtensionPath = "com.apple.webkit.camera";
+#endif
 
 class ProcessState {
 public: