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

Unified Diff: ios/chrome/browser/ios_chrome_io_thread.mm

Issue 2315613002: Extracted NetLog class's inner enum types into their own enum classes and (Closed)
Patch Set: Ran "git cl format" on code. Much formatting ensued. Created 4 years, 3 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 | « google_apis/gcm/engine/connection_factory_impl.cc ('k') | jingle/glue/proxy_resolving_client_socket.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ios_chrome_io_thread.mm
diff --git a/ios/chrome/browser/ios_chrome_io_thread.mm b/ios/chrome/browser/ios_chrome_io_thread.mm
index 2a967ae70d2c7898657ca6c4a3bb628293058b76..72677ac24a425475e6685b69752d62f8238137ab 100644
--- a/ios/chrome/browser/ios_chrome_io_thread.mm
+++ b/ios/chrome/browser/ios_chrome_io_thread.mm
@@ -60,6 +60,7 @@
#include "net/http/http_auth_preferences.h"
#include "net/http/http_network_layer.h"
#include "net/http/http_server_properties_impl.h"
+#include "net/log/net_log_event_type.h"
#include "net/nqe/external_estimate_provider.h"
#include "net/nqe/network_quality_estimator.h"
#include "net/proxy/proxy_config_service.h"
@@ -160,7 +161,8 @@ class IOSChromeIOThread::LoggingNetworkChangeObserver
void OnIPAddressChanged() override {
VLOG(1) << "Observed a change to the network IP addresses";
- net_log_->AddGlobalEntry(net::NetLog::TYPE_NETWORK_IP_ADDRESSES_CHANGED);
+ net_log_->AddGlobalEntry(
+ net::NetLogEventType::NETWORK_IP_ADDRESSES_CHANGED);
}
// NetworkChangeNotifier::ConnectionTypeObserver implementation.
@@ -173,7 +175,7 @@ class IOSChromeIOThread::LoggingNetworkChangeObserver
<< type_as_string;
net_log_->AddGlobalEntry(
- net::NetLog::TYPE_NETWORK_CONNECTIVITY_CHANGED,
+ net::NetLogEventType::NETWORK_CONNECTIVITY_CHANGED,
net::NetLog::StringCallback("new_connection_type", &type_as_string));
}
@@ -186,7 +188,7 @@ class IOSChromeIOThread::LoggingNetworkChangeObserver
VLOG(1) << "Observed a network change to state " << type_as_string;
net_log_->AddGlobalEntry(
- net::NetLog::TYPE_NETWORK_CHANGED,
+ net::NetLogEventType::NETWORK_CHANGED,
net::NetLog::StringCallback("new_connection_type", &type_as_string));
}
« no previous file with comments | « google_apis/gcm/engine/connection_factory_impl.cc ('k') | jingle/glue/proxy_resolving_client_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698