<commit_before>diff -pur a/qtwebengine/src/3rdparty/chromium/media/audio/mac/coreaudio_dispatch_override.cc b/qtwebengine/src/3rdparty/chromium/media/audio/mac/coreaudio_dispatch_override.cc
--- a/qtwebengine/src/3rdparty/chromium/media/audio/mac/coreaudio_dispatch_override.cc	2018-06-15 09:47:20.000000000 +0200
+++ b/qtwebengine/src/3rdparty/chromium/media/audio/mac/coreaudio_dispatch_override.cc	2018-09-19 12:06:04.000000000 +0200
@@ -16,7 +16,7 @@
 namespace {
 struct dyld_interpose_tuple {
   template <typename T>
-  dyld_interpose_tuple(const T* replacement, const T* replacee)
+  dyld_interpose_tuple(T* replacement, T* replacee)
       : replacement(reinterpret_cast<const void*>(replacement)),
         replacee(reinterpret_cast<const void*>(replacee)) {}
   const void* replacement;
<commit_msg>qt: update Xcode 10 patch<commit_after>diff -pur a/qtwebengine/src/3rdparty/chromium/components/storage_monitor/image_capture_device.mm b/qtwebengine/src/3rdparty/chromium/components/storage_monitor/image_capture_device.mm
--- a/qtwebengine/src/3rdparty/chromium/components/storage_monitor/image_capture_device.mm	2018-06-15 09:47:20.000000000 +0200
+++ b/qtwebengine/src/3rdparty/chromium/components/storage_monitor/image_capture_device.mm	2018-09-19 15:59:32.000000000 +0200
@@ -231,4 +231,38 @@ base::FilePath PathForCameraItem(ICCamer
                  name));
 }
 
+// MacOS 10.14 SDK methods, not yet implemented (https://crbug.com/849689)
+- (void)cameraDevice:(ICCameraDevice*)camera
+      didRenameItems:(NSArray<ICCameraItem*>*)items {
+  NOTIMPLEMENTED();
+}
+
+- (void)cameraDevice:(ICCameraDevice*)camera didRemoveItem:(ICCameraItem*)item {
+  NOTIMPLEMENTED();
+}
+
+- (void)cameraDevice:(ICCameraDevice*)camera
+    didCompleteDeleteFilesWithError:(NSError*)error {
+  NOTIMPLEMENTED();
+}
+
+- (void)cameraDeviceDidChangeCapability:(ICCameraDevice*)camera {
+  NOTIMPLEMENTED();
+}
+
+- (void)cameraDevice:(ICCameraDevice*)camera
+    didReceiveThumbnailForItem:(ICCameraItem*)item {
+  NOTIMPLEMENTED();
+}
+
+- (void)cameraDevice:(ICCameraDevice*)camera
+    didReceiveMetadataForItem:(ICCameraItem*)item {
+  NOTIMPLEMENTED();
+}
+
+- (void)cameraDevice:(ICCameraDevice*)camera
+    didReceivePTPEvent:(NSData*)eventData {
+  NOTIMPLEMENTED();
+}
+
 @end  // ImageCaptureDevice
diff -pur a/qtwebengine/src/3rdparty/chromium/media/audio/mac/coreaudio_dispatch_override.cc b/qtwebengine/src/3rdparty/chromium/media/audio/mac/coreaudio_dispatch_override.cc
--- a/qtwebengine/src/3rdparty/chromium/media/audio/mac/coreaudio_dispatch_override.cc	2018-06-15 09:47:20.000000000 +0200
+++ b/qtwebengine/src/3rdparty/chromium/media/audio/mac/coreaudio_dispatch_override.cc	2018-09-19 15:58:55.000000000 +0200
@@ -16,12 +16,15 @@
 namespace {
 struct dyld_interpose_tuple {
   template <typename T>
-  dyld_interpose_tuple(const T* replacement, const T* replacee)
+  dyld_interpose_tuple(T* replacement, T* replacee)
       : replacement(reinterpret_cast<const void*>(replacement)),
         replacee(reinterpret_cast<const void*>(replacee)) {}
   const void* replacement;
   const void* replacee;
 };
+
+using DispatchGetGlobalQueueFunc = dispatch_queue_t (*)(long id,
+                                                        unsigned long flags);
 }  // namespace
 
 // This method, and the tuple above, is defined in dyld_priv.h; see:
@@ -175,8 +178,13 @@ bool InitializeCoreAudioDispatchOverride
   const auto* header = reinterpret_cast<const mach_header*>(info.dli_fbase);
   g_pause_resume_queue =
       dispatch_queue_create("org.chromium.CoreAudioPauseResumeQueue", nullptr);
-  dyld_interpose_tuple interposition(&GetGlobalQueueOverride,
-                                     &dispatch_get_global_queue);
+  // The reinterpret_cast<> is needed because in the macOS 10.14 SDK, the return
+  // type of dispatch_get_global_queue changed to return a subtype of
+  // dispatch_queue_t* instead of dispatch_queue_t* itself, and T(*)(...) isn't
+  // automatically converted to U(*)(...) even if U is a superclass of T.
+  dyld_interpose_tuple interposition(
+      &GetGlobalQueueOverride,
+      reinterpret_cast<DispatchGetGlobalQueueFunc>(&dispatch_get_global_queue));
   dyld_dynamic_interpose(header, &interposition, 1);
   g_dispatch_override_installed = true;
   LogInitResult(RESULT_INITIALIZED);

{'fraction_non_alphanumeric': 0.12702078521939955, 'fraction_numerical': 0.05150115473441109, 'mean_word_length': 4.965564738292011, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 6, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4069393', 'n_tokens_mistral': 1595, 'n_tokens_neox': 1406, 'n_words': 214}