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

Side by Side Diff: sync/sessions/sync_session_context.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sync/sessions/sync_session_context.h ('k') | sync/sessions/sync_session_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "sync/sessions/sync_session_context.h" 5 #include "sync/sessions/sync_session_context.h"
6 6
7 #include "sync/sessions/debug_info_getter.h" 7 #include "sync/sessions/debug_info_getter.h"
8 #include "sync/util/extensions_activity.h" 8 #include "sync/util/extensions_activity.h"
9 9
10 namespace syncer { 10 namespace syncer {
11 namespace sessions { 11 namespace sessions {
12 12
13 SyncSessionContext::SyncSessionContext( 13 SyncSessionContext::SyncSessionContext(
14 ServerConnectionManager* connection_manager, 14 ServerConnectionManager* connection_manager,
15 syncable::Directory* directory, 15 syncable::Directory* directory,
16 const std::vector<ModelSafeWorker*>& workers, 16 const std::vector<scoped_refptr<ModelSafeWorker> >& workers,
17 ExtensionsActivity* extensions_activity, 17 ExtensionsActivity* extensions_activity,
18 const std::vector<SyncEngineEventListener*>& listeners, 18 const std::vector<SyncEngineEventListener*>& listeners,
19 DebugInfoGetter* debug_info_getter, 19 DebugInfoGetter* debug_info_getter,
20 TrafficRecorder* traffic_recorder, 20 TrafficRecorder* traffic_recorder,
21 bool keystore_encryption_enabled, 21 bool keystore_encryption_enabled,
22 bool client_enabled_pre_commit_update_avoidance, 22 bool client_enabled_pre_commit_update_avoidance,
23 const std::string& invalidator_client_id) 23 const std::string& invalidator_client_id)
24 : connection_manager_(connection_manager), 24 : connection_manager_(connection_manager),
25 directory_(directory), 25 directory_(directory),
26 update_handler_deleter_(&update_handler_map_), 26 update_handler_deleter_(&update_handler_map_),
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 update_handler_map_.insert(std::make_pair(type, handler)); 70 update_handler_map_.insert(std::make_pair(type, handler));
71 71
72 SyncDirectoryCommitContributor* contributor = 72 SyncDirectoryCommitContributor* contributor =
73 new SyncDirectoryCommitContributor(directory(), type); 73 new SyncDirectoryCommitContributor(directory(), type);
74 commit_contributor_map_.insert(std::make_pair(type, contributor)); 74 commit_contributor_map_.insert(std::make_pair(type, contributor));
75 } 75 }
76 } 76 }
77 77
78 } // namespace sessions 78 } // namespace sessions
79 } // namespace syncer 79 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/sessions/sync_session_context.h ('k') | sync/sessions/sync_session_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698