diff --git a/patches/chromium/.patches b/patches/chromium/.patches index 37137b1d45..627b4cde97 100644 --- a/patches/chromium/.patches +++ b/patches/chromium/.patches @@ -84,7 +84,6 @@ logging_win32_only_create_a_console_if_logging_to_stderr.patch fix_media_key_usage_with_globalshortcuts.patch feat_expose_raw_response_headers_from_urlloader.patch process_singleton.patch -fix_expose_decrementcapturercount_in_web_contents_impl.patch add_ui_scopedcliboardwriter_writeunsaferawdata.patch feat_add_data_parameter_to_processsingleton.patch load_v8_snapshot_in_browser_process.patch diff --git a/patches/chromium/fix_expose_decrementcapturercount_in_web_contents_impl.patch b/patches/chromium/fix_expose_decrementcapturercount_in_web_contents_impl.patch deleted file mode 100644 index 85446f4d99..0000000000 --- a/patches/chromium/fix_expose_decrementcapturercount_in_web_contents_impl.patch +++ /dev/null @@ -1,37 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: deepak1556 -Date: Fri, 3 Sep 2021 18:28:51 -0700 -Subject: fix: expose DecrementCapturerCount in web_contents_impl - -This was made private in https://chromium-review.googlesource.com/c/chromium/src/+/2807829 but -we invoke it in order to expose contents.decrementCapturerCount([stayHidden, stayAwake]) -to users. We should try to upstream this. - -diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h -index 69f9ffbf4826421491118a0b200d6c71e41f8950..c3b7f6fa146ac335b0d18a749a61600cf8241c8d 100644 ---- a/content/browser/web_contents/web_contents_impl.h -+++ b/content/browser/web_contents/web_contents_impl.h -@@ -1860,7 +1860,7 @@ class CONTENT_EXPORT WebContentsImpl : public WebContents, - // IncrementCapturerCount() is destructed. - void DecrementCapturerCount(bool stay_hidden, - bool stay_awake, -- bool is_activity = true); -+ bool is_activity = true) override; - - // Calculates the PageVisibilityState for |visibility|, taking the capturing - // state into account. -diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h -index 44d75c043805f9bfb4b08741fc652aafc6c50740..41c15ba67ad66245fdac2ada8e9f0de755fe01be 100644 ---- a/content/public/browser/web_contents.h -+++ b/content/public/browser/web_contents.h -@@ -702,6 +702,10 @@ class WebContents : public PageNavigator, - bool stay_awake, - bool is_activity = true) = 0; - -+ virtual void DecrementCapturerCount(bool stay_hidden, -+ bool stay_awake, -+ bool is_activity = true) = 0; -+ - // Getter for the capture handle, which allows a captured application to - // opt-in to exposing information to its capturer(s). - virtual const blink::mojom::CaptureHandleConfig& GetCaptureHandleConfig() = 0;