summaryrefslogtreecommitdiff
path: root/www/chromium-uc/patches/extra/ungoogled-chromium/disable-dial-repeating-discovery.patch
diff options
context:
space:
mode:
Diffstat (limited to 'www/chromium-uc/patches/extra/ungoogled-chromium/disable-dial-repeating-discovery.patch')
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/disable-dial-repeating-discovery.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/disable-dial-repeating-discovery.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/disable-dial-repeating-discovery.patch
new file mode 100644
index 0000000..fab5b74
--- /dev/null
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/disable-dial-repeating-discovery.patch
@@ -0,0 +1,25 @@
1# Disables the dial registry's repeating discovery timer
2# This caused unnecessary SSDP network spam
3
4--- chrome/browser/media/router/discovery/dial/dial_registry.cc.orig
5+++ chrome/browser/media/router/discovery/dial/dial_registry.cc
6@@ -190,10 +190,6 @@ void DialRegistry::StartPeriodicDiscover
7
8 dial_ = CreateDialService();
9 dial_->AddObserver(this);
10- DoDiscovery();
11- repeating_timer_ = std::make_unique<base::RepeatingTimer>();
12- repeating_timer_->Start(FROM_HERE, refresh_interval_delta_, this,
13- &DialRegistry::DoDiscovery);
14 }
15
16 void DialRegistry::DoDiscovery() {
17@@ -207,8 +203,6 @@ void DialRegistry::StopPeriodicDiscovery
18 if (!dial_)
19 return;
20
21- repeating_timer_->Stop();
22- repeating_timer_.reset();
23 dial_->RemoveObserver(this);
24 ClearDialService();
25 }