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

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

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
« no previous file with comments | « chrome/browser/net/nqe/ui_network_quality_estimator_service.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/nqe/ui_network_quality_estimator_service.cc
diff --git a/chrome/browser/net/nqe/ui_network_quality_estimator_service.cc b/chrome/browser/net/nqe/ui_network_quality_estimator_service.cc
index 3378ce3eedb5f6d7b071072f2a4760bdce1c8259..b4534e7af7a00b28b9019a17dab9ed2f11c02631 100644
--- a/chrome/browser/net/nqe/ui_network_quality_estimator_service.cc
+++ b/chrome/browser/net/nqe/ui_network_quality_estimator_service.cc
@@ -89,15 +89,21 @@ void UINetworkQualityEstimatorService::Shutdown() {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
weak_factory_.InvalidateWeakPtrs();
}
void UINetworkQualityEstimatorService::EffectiveConnectionTypeChanged(
net::NetworkQualityEstimator::EffectiveConnectionType type) {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
type_ = type;
}
+void UINetworkQualityEstimatorService::SetEffectiveConnectionTypeForTesting(
+ net::NetworkQualityEstimator::EffectiveConnectionType type) {
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
+ type_ = type;
+}
+
net::NetworkQualityEstimator::EffectiveConnectionType
UINetworkQualityEstimatorService::GetEffectiveConnectionType() const {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
return type_;
}
« no previous file with comments | « chrome/browser/net/nqe/ui_network_quality_estimator_service.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698