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

Unified Diff: sync/tools/sync_client.cc

Issue 2086363002: Remove calls to deprecated MessageLoop methods in sync. (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: sync/tools/sync_client.cc
diff --git a/sync/tools/sync_client.cc b/sync/tools/sync_client.cc
index 92c58ac486a05d9c082ab2a0054c46b1d91d646e..2105782f934d10f6905409f50fce1c916879e180 100644
--- a/sync/tools/sync_client.cc
+++ b/sync/tools/sync_client.cc
@@ -22,6 +22,7 @@
#include "base/memory/weak_ptr.h"
#include "base/message_loop/message_loop.h"
#include "base/rand_util.h"
+#include "base/run_loop.h"
#include "base/task_runner.h"
#include "base/threading/thread.h"
#include "build/build_config.h"
@@ -454,7 +455,7 @@ int SyncClientMain(int argc, char* argv[]) {
shim.get(), ModelTypeSetToObjectIdSet(model_types)));
sync_manager->StartSyncingNormally(routing_info, base::Time());
- sync_loop.Run();
+ base::RunLoop().Run();
io_thread.Stop();
return 0;
« no previous file with comments | « sync/internal_api/syncapi_server_connection_manager_unittest.cc ('k') | sync/tools/sync_listen_notifications.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698