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

Unified Diff: net/tools/gdig/gdig.cc

Issue 2090613002: Remove calls to deprecated MessageLoop methods in net. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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: net/tools/gdig/gdig.cc
diff --git a/net/tools/gdig/gdig.cc b/net/tools/gdig/gdig.cc
index f40f142d3e7fec384194c41bc21264ca45314127..f3d84e31b49a3bbd60f4b7160085c37134b4f0fe 100644
--- a/net/tools/gdig/gdig.cc
+++ b/net/tools/gdig/gdig.cc
@@ -15,6 +15,7 @@
#include "base/files/file_util.h"
#include "base/location.h"
#include "base/message_loop/message_loop.h"
+#include "base/run_loop.h"
#include "base/single_thread_task_runner.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_split.h"
@@ -274,7 +275,7 @@ GDig::Result GDig::Main(int argc, const char* argv[]) {
result_ = RESULT_PENDING;
Start();
if (result_ == RESULT_PENDING)
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
// Destroy it while MessageLoopForIO is alive.
dns_config_service_.reset();
« no previous file with comments | « net/test/embedded_test_server/embedded_test_server_unittest.cc ('k') | net/tools/quic/synchronous_host_resolver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698