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

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

Issue 2211473003: Remove calls to deprecated MessageLoop methods on Windows and Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CR Created 4 years, 4 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/get_server_time/get_server_time.cc
diff --git a/net/tools/get_server_time/get_server_time.cc b/net/tools/get_server_time/get_server_time.cc
index 6bb3471d1626c38edc98dee082f10376b59fb614..ec30690f020e6cc3ee48c6d55bfc49ddd8e767c8 100644
--- a/net/tools/get_server_time/get_server_time.cc
+++ b/net/tools/get_server_time/get_server_time.cc
@@ -25,6 +25,7 @@
#include "base/memory/ptr_util.h"
#include "base/memory/ref_counted.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/utf_string_conversions.h"
@@ -252,7 +253,7 @@ int main(int argc, char* argv[]) {
start_ticks.ToInternalValue());
// |delegate| quits |main_loop| when the request is done.
- main_loop.Run();
+ base::RunLoop().Run();
agl 2016/08/06 00:44:00 The |main_loop| variable is still created and pass
fdoray 2016/08/06 01:26:14 MessageLoop(ForIO|ForUI) sets a pointer to itself
const base::Time end_time = base::Time::Now();
const base::TimeTicks end_ticks = base::TimeTicks::Now();

Powered by Google App Engine
This is Rietveld 408576698