Unreviewed, fix the iOSMac engineering build
authorwenson_hsieh@apple.com <wenson_hsieh@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Dec 2018 04:39:35 +0000 (04:39 +0000)
committerwenson_hsieh@apple.com <wenson_hsieh@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Dec 2018 04:39:35 +0000 (04:39 +0000)
`generateRequestID()` is only invoked from code under `ENABLE(MEDIA_STREAM)`; move it under this guard to avoid
an unused function warning.

* UIProcess/UserMediaPermissionRequestManagerProxy.cpp:

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

Source/WebKit/ChangeLog
Source/WebKit/UIProcess/UserMediaPermissionRequestManagerProxy.cpp

index f09df14..f099fae 100644 (file)
@@ -1,3 +1,12 @@
+2018-12-17  Wenson Hsieh  <wenson_hsieh@apple.com>
+
+        Unreviewed, fix the iOSMac engineering build
+
+        `generateRequestID()` is only invoked from code under `ENABLE(MEDIA_STREAM)`; move it under this guard to avoid
+        an unused function warning.
+
+        * UIProcess/UserMediaPermissionRequestManagerProxy.cpp:
+
 2018-12-17  David Kilzer  <ddkilzer@apple.com>
 
         clang-tidy: Fix unnecessary object copy in CPUMonitor::setCPULimit()
index 95f553d..e7b3708 100644 (file)
@@ -41,13 +41,13 @@ using namespace WebCore;
 
 #if ENABLE(MEDIA_STREAM)
 static const MediaProducer::MediaStateFlags activeCaptureMask = MediaProducer::HasActiveAudioCaptureDevice | MediaProducer::HasActiveVideoCaptureDevice;
-#endif
 
 static uint64_t generateRequestID()
 {
     static uint64_t uniqueRequestID = 1;
     return uniqueRequestID++;
 }
+#endif
 
 UserMediaPermissionRequestManagerProxy::UserMediaPermissionRequestManagerProxy(WebPageProxy& page)
     : m_page(page)