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

Unified Diff: sync/tools/sync_client.cc

Issue 130193002: sync: Consistently refcount ModelSafeWorkers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix standalone sync client Created 6 years, 11 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 | « sync/sessions/sync_session_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/tools/sync_client.cc
diff --git a/sync/tools/sync_client.cc b/sync/tools/sync_client.cc
index b0c9b5589b4e4dcb4202bef00f4e75bf01512371..a165f29fa84462a711873e762c2dc790a4c479ea 100644
--- a/sync/tools/sync_client.cc
+++ b/sync/tools/sync_client.cc
@@ -323,8 +323,8 @@ int SyncClientMain(int argc, char* argv[]) {
}
scoped_refptr<PassiveModelWorker> passive_model_safe_worker =
new PassiveModelWorker(&sync_loop, NULL);
- std::vector<ModelSafeWorker*> workers;
- workers.push_back(passive_model_safe_worker.get());
+ std::vector<scoped_refptr<ModelSafeWorker> > workers;
+ workers.push_back(passive_model_safe_worker);
// Set up sync manager.
SyncManagerFactory sync_manager_factory;
« no previous file with comments | « sync/sessions/sync_session_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698