Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(381)

Unified Diff: chrome/browser/android/net/external_estimate_provider_android.h

Issue 2010003002: Reduce the number of calls to external estimate provider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/android/net/external_estimate_provider_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/net/external_estimate_provider_android.h
diff --git a/chrome/browser/android/net/external_estimate_provider_android.h b/chrome/browser/android/net/external_estimate_provider_android.h
index 21fa2d7aadf6d12c0ad6b59cdd6154b0bd4b0eec..69f6aaa7e6365c8183eaca1ba4eaf0ce7a19e236 100644
--- a/chrome/browser/android/net/external_estimate_provider_android.h
+++ b/chrome/browser/android/net/external_estimate_provider_android.h
@@ -15,7 +15,6 @@
#include "base/threading/thread_checker.h"
#include "base/threading/thread_task_runner_handle.h"
#include "base/time/time.h"
-#include "net/base/network_change_notifier.h"
#include "net/nqe/external_estimate_provider.h"
namespace chrome {
@@ -25,9 +24,7 @@ namespace android {
// ExternalEstimateProviderAndroidHelper.java. Provides network quality
// estimates as provided by Android. Estimates are automatically updated on a
// network change event.
-class ExternalEstimateProviderAndroid
- : public net::NetworkChangeNotifier::ConnectionTypeObserver,
- public net::ExternalEstimateProvider {
+class ExternalEstimateProviderAndroid : public net::ExternalEstimateProvider {
public:
// Constructs and initializes the underlying provider.
ExternalEstimateProviderAndroid();
@@ -47,10 +44,6 @@ class ExternalEstimateProviderAndroid
override;
void Update() const override;
- // NetworkChangeNotifier::ConnectionTypeObserver implementation.
- void OnConnectionTypeChanged(
- net::NetworkChangeNotifier::ConnectionType type) override;
-
// Called by Java when the external estimate provider has an updated value.
// This may be called on a thread different from |task_runner_|.
void NotifyExternalEstimateProviderAndroidUpdate(
« no previous file with comments | « no previous file | chrome/browser/android/net/external_estimate_provider_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698