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

Unified Diff: chrome/browser/net/nqe/ui_network_quality_estimator_service.h

Issue 2166363003: Offline pages using NQE 2G Slow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: thestig comments Created 4 years, 5 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
Index: chrome/browser/net/nqe/ui_network_quality_estimator_service.h
diff --git a/chrome/browser/net/nqe/ui_network_quality_estimator_service.h b/chrome/browser/net/nqe/ui_network_quality_estimator_service.h
index 671e35ca435fdf776a206e29e2a0bbf919ceb0b1..dfe35b19486c67308d98103220b5184df500dacb 100644
--- a/chrome/browser/net/nqe/ui_network_quality_estimator_service.h
+++ b/chrome/browser/net/nqe/ui_network_quality_estimator_service.h
@@ -13,20 +13,25 @@
// UI service to determine the current EffectiveConnectionType.
class UINetworkQualityEstimatorService : public KeyedService {
public:
UINetworkQualityEstimatorService();
~UINetworkQualityEstimatorService() override;
// The current EffectiveConnectionType.
net::NetworkQualityEstimator::EffectiveConnectionType
GetEffectiveConnectionType() const;
+ // Tests can manually set EffectiveConnectionType, but browser tests should
+ // expect that the EffectiveConnectionType could change.
+ void SetEffectiveConnectionTypeForTesting(
+ net::NetworkQualityEstimator::EffectiveConnectionType type);
+
private:
class IONetworkQualityObserver;
// KeyedService implementation:
void Shutdown() override;
// Called when the EffectiveConnectionType has updated to |type|.
// NetworkQualityEstimator::EffectiveConnectionType is an estimate of the
// quality of the network that may differ from the actual network type
// reported by NetworkchangeNotifier::GetConnectionType.

Powered by Google App Engine
This is Rietveld 408576698