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

Unified Diff: chrome/browser/android/offline_pages/offline_page_tab_helper.cc

Issue 2183153002: NQE: Move ECT to net:: namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased, also fixed comnpilation error 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 | « no previous file | chrome/browser/android/offline_pages/offline_page_tab_helper_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/offline_pages/offline_page_tab_helper.cc
diff --git a/chrome/browser/android/offline_pages/offline_page_tab_helper.cc b/chrome/browser/android/offline_pages/offline_page_tab_helper.cc
index 4b6b51079954ea73195f83d1168c5c57f23e06fb..f5140d8e532b789a77d9cfac889ef8d75a96f359 100644
--- a/chrome/browser/android/offline_pages/offline_page_tab_helper.cc
+++ b/chrome/browser/android/offline_pages/offline_page_tab_helper.cc
@@ -54,12 +54,10 @@ bool ShouldUseOfflineForSlowNetwork(content::BrowserContext* context) {
UINetworkQualityEstimatorServiceFactory::GetForProfile(profile);
if (!nqe_service)
return false;
- net::NetworkQualityEstimator::EffectiveConnectionType
- effective_connection_type = nqe_service->GetEffectiveConnectionType();
- return effective_connection_type >=
- net::NetworkQualityEstimator::EFFECTIVE_CONNECTION_TYPE_OFFLINE &&
- effective_connection_type <=
- net::NetworkQualityEstimator::EFFECTIVE_CONNECTION_TYPE_SLOW_2G;
+ net::EffectiveConnectionType effective_connection_type =
+ nqe_service->GetEffectiveConnectionType();
+ return effective_connection_type >= net::EFFECTIVE_CONNECTION_TYPE_OFFLINE &&
+ effective_connection_type <= net::EFFECTIVE_CONNECTION_TYPE_SLOW_2G;
}
class DefaultDelegate : public OfflinePageTabHelper::Delegate {
« no previous file with comments | « no previous file | chrome/browser/android/offline_pages/offline_page_tab_helper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698