diff options
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.patch | 18 |
1 files changed, 9 insertions, 9 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 index db0c00d..fab5b74 100644 --- 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 | |||
| @@ -1,25 +1,25 @@ | |||
| 1 | # Disables the dial registry's repeating discovery timer | 1 | # Disables the dial registry's repeating discovery timer |
| 2 | # This caused unnecessary SSDP network spam | 2 | # This caused unnecessary SSDP network spam |
| 3 | 3 | ||
| 4 | --- a/chrome/browser/media/router/discovery/dial/dial_registry.cc | 4 | --- chrome/browser/media/router/discovery/dial/dial_registry.cc.orig |
| 5 | +++ b/chrome/browser/media/router/discovery/dial/dial_registry.cc | 5 | +++ chrome/browser/media/router/discovery/dial/dial_registry.cc |
| 6 | @@ -154,10 +154,6 @@ void DialRegistry::StartPeriodicDiscover | 6 | @@ -190,10 +190,6 @@ void DialRegistry::StartPeriodicDiscover |
| 7 | return; | ||
| 8 | 7 | ||
| 9 | dial_ = CreateDialService(); | 8 | dial_ = CreateDialService(); |
| 9 | dial_->AddObserver(this); | ||
| 10 | - DoDiscovery(); | 10 | - DoDiscovery(); |
| 11 | - repeating_timer_ = std::make_unique<base::RepeatingTimer>(); | 11 | - repeating_timer_ = std::make_unique<base::RepeatingTimer>(); |
| 12 | - repeating_timer_->Start(FROM_HERE, refresh_interval_delta_, this, | 12 | - repeating_timer_->Start(FROM_HERE, refresh_interval_delta_, this, |
| 13 | - &DialRegistry::DoDiscovery); | 13 | - &DialRegistry::DoDiscovery); |
| 14 | // Always send the current device list with the next discovery request. This | 14 | } |
| 15 | // may not be necessary, but is done to match previous behavior. | 15 | |
| 16 | ++registry_generation_; | 16 | void DialRegistry::DoDiscovery() { |
| 17 | @@ -174,8 +170,6 @@ void DialRegistry::StopPeriodicDiscovery | 17 | @@ -207,8 +203,6 @@ void DialRegistry::StopPeriodicDiscovery |
| 18 | if (!dial_) | 18 | if (!dial_) |
| 19 | return; | 19 | return; |
| 20 | 20 | ||
| 21 | - repeating_timer_->Stop(); | 21 | - repeating_timer_->Stop(); |
| 22 | - repeating_timer_.reset(); | 22 | - repeating_timer_.reset(); |
| 23 | dial_->RemoveObserver(this); | ||
| 23 | ClearDialService(); | 24 | ClearDialService(); |
| 24 | } | 25 | } |
| 25 | |||
