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

Unified Diff: content/renderer/effective_connection_type_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 | « content/renderer/effective_connection_type_helper.h ('k') | net/net.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/effective_connection_type_helper.cc
diff --git a/content/renderer/effective_connection_type_helper.cc b/content/renderer/effective_connection_type_helper.cc
index 510cb6fe4abc1ddf97a62f9466e2c2caa27e5ecd..1b3989c1557f7d0fc5a3f28dffd2b40453a973e0 100644
--- a/content/renderer/effective_connection_type_helper.cc
+++ b/content/renderer/effective_connection_type_helper.cc
@@ -10,28 +10,24 @@ namespace content {
static_assert(static_cast<int>(a) == static_cast<int>(b), \
"mismatching enums: " #a)
-STATIC_ASSERT_ENUM(
- net::NetworkQualityEstimator::EFFECTIVE_CONNECTION_TYPE_UNKNOWN,
- blink::WebEffectiveConnectionType::TypeUnknown);
-STATIC_ASSERT_ENUM(
- net::NetworkQualityEstimator::EFFECTIVE_CONNECTION_TYPE_OFFLINE,
- blink::WebEffectiveConnectionType::TypeOffline);
-STATIC_ASSERT_ENUM(
- net::NetworkQualityEstimator::EFFECTIVE_CONNECTION_TYPE_SLOW_2G,
- blink::WebEffectiveConnectionType::TypeSlow2G);
-STATIC_ASSERT_ENUM(net::NetworkQualityEstimator::EFFECTIVE_CONNECTION_TYPE_2G,
+STATIC_ASSERT_ENUM(net::EFFECTIVE_CONNECTION_TYPE_UNKNOWN,
+ blink::WebEffectiveConnectionType::TypeUnknown);
+STATIC_ASSERT_ENUM(net::EFFECTIVE_CONNECTION_TYPE_OFFLINE,
+ blink::WebEffectiveConnectionType::TypeOffline);
+STATIC_ASSERT_ENUM(net::EFFECTIVE_CONNECTION_TYPE_SLOW_2G,
+ blink::WebEffectiveConnectionType::TypeSlow2G);
+STATIC_ASSERT_ENUM(net::EFFECTIVE_CONNECTION_TYPE_2G,
blink::WebEffectiveConnectionType::Type2G);
-STATIC_ASSERT_ENUM(net::NetworkQualityEstimator::EFFECTIVE_CONNECTION_TYPE_3G,
+STATIC_ASSERT_ENUM(net::EFFECTIVE_CONNECTION_TYPE_3G,
blink::WebEffectiveConnectionType::Type3G);
-STATIC_ASSERT_ENUM(net::NetworkQualityEstimator::EFFECTIVE_CONNECTION_TYPE_4G,
+STATIC_ASSERT_ENUM(net::EFFECTIVE_CONNECTION_TYPE_4G,
blink::WebEffectiveConnectionType::Type4G);
-STATIC_ASSERT_ENUM(
- net::NetworkQualityEstimator::EFFECTIVE_CONNECTION_TYPE_BROADBAND,
- blink::WebEffectiveConnectionType::TypeBroadband);
+STATIC_ASSERT_ENUM(net::EFFECTIVE_CONNECTION_TYPE_BROADBAND,
+ blink::WebEffectiveConnectionType::TypeBroadband);
blink::WebEffectiveConnectionType
EffectiveConnectionTypeToWebEffectiveConnectionType(
- net::NetworkQualityEstimator::EffectiveConnectionType net_type) {
+ net::EffectiveConnectionType net_type) {
return static_cast<blink::WebEffectiveConnectionType>(net_type);
}
« no previous file with comments | « content/renderer/effective_connection_type_helper.h ('k') | net/net.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698