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 { |