| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |