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

Unified Diff: chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.cc

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
Index: chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.cc
diff --git a/chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.cc b/chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.cc
index bbbbed171ab329574e7c10d610968d9a204b2207..f3aa71b33d426bda77e7255132dda2e059ba1599 100644
--- a/chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.cc
+++ b/chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.cc
@@ -42,6 +42,8 @@
#include "net/http/http_network_session.h"
#include "net/http/http_transaction_factory.h"
#include "net/log/net_log.h"
+#include "net/log/net_log_event_type.h"
+#include "net/log/net_log_source_type.h"
#include "net/log/write_to_file_net_log_observer.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "net/test/embedded_test_server/request_handler_util.h"
@@ -291,11 +293,10 @@ void NetInternalsTest::MessageHandler::GetNetLogFileContents(
std::move(temp_file_handle), constants.get(),
nullptr);
g_browser_process->net_log()->AddGlobalEntry(
- net::NetLog::TYPE_NETWORK_IP_ADDRESSES_CHANGED);
+ net::NetLogEventType::NETWORK_IP_ADDRESSES_CHANGED);
net::BoundNetLog bound_net_log = net::BoundNetLog::Make(
- g_browser_process->net_log(),
- net::NetLog::SOURCE_URL_REQUEST);
- bound_net_log.BeginEvent(net::NetLog::TYPE_REQUEST_ALIVE);
+ g_browser_process->net_log(), net::NetLogSourceType::URL_REQUEST);
+ bound_net_log.BeginEvent(net::NetLogEventType::REQUEST_ALIVE);
net_log_logger->StopObserving(nullptr);
net_log_logger.reset();

Powered by Google App Engine
This is Rietveld 408576698