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

Side by Side Diff: components/sync/engine_impl/cycle/sync_cycle_context.cc

Issue 2644373003: Revert of [Sync] Make directory types registration explicit in ModelTypeRegistry (Closed)
Patch Set: Created 3 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
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 "components/sync/engine_impl/cycle/sync_cycle_context.h" 5 #include "components/sync/engine_impl/cycle/sync_cycle_context.h"
6 6
7 #include "components/sync/base/extensions_activity.h" 7 #include "components/sync/base/extensions_activity.h"
8 8
9 namespace syncer { 9 namespace syncer {
10 10
(...skipping 25 matching lines...) Expand all
36 for (it = listeners.begin(); it != listeners.end(); ++it) 36 for (it = listeners.begin(); it != listeners.end(); ++it)
37 listeners_.AddObserver(*it); 37 listeners_.AddObserver(*it);
38 } 38 }
39 39
40 SyncCycleContext::~SyncCycleContext() {} 40 SyncCycleContext::~SyncCycleContext() {}
41 41
42 ModelTypeSet SyncCycleContext::GetEnabledTypes() const { 42 ModelTypeSet SyncCycleContext::GetEnabledTypes() const {
43 return model_type_registry_->GetEnabledTypes(); 43 return model_type_registry_->GetEnabledTypes();
44 } 44 }
45 45
46 void SyncCycleContext::SetRoutingInfo(
47 const ModelSafeRoutingInfo& routing_info) {
48 model_type_registry_->SetEnabledDirectoryTypes(routing_info);
49 }
50
46 } // namespace syncer 51 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/engine_impl/cycle/sync_cycle_context.h ('k') | components/sync/engine_impl/model_type_connector_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698