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

Unified Diff: sync/internal_api/public/internal_components_factory_impl.h

Issue 10837231: sync: add InternalComponentsFactory::Switches to simplify passing switches to internal components. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: pass switches in test_profile_sync_service.cc Created 8 years, 4 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/internal_api/public/internal_components_factory_impl.h
diff --git a/sync/internal_api/public/internal_components_factory_impl.h b/sync/internal_api/public/internal_components_factory_impl.h
index c8f76ed777c7b20a1bd540f17ff39c05e78af35a..1b64d0bb8e4e422d70c3e8760f1dde9638999313 100644
--- a/sync/internal_api/public/internal_components_factory_impl.h
+++ b/sync/internal_api/public/internal_components_factory_impl.h
@@ -14,7 +14,7 @@ namespace syncer {
class InternalComponentsFactoryImpl : public InternalComponentsFactory {
public:
- InternalComponentsFactoryImpl();
+ InternalComponentsFactoryImpl(const Switches& switches);
virtual ~InternalComponentsFactoryImpl();
virtual scoped_ptr<SyncScheduler> BuildScheduler(
@@ -29,15 +29,17 @@ class InternalComponentsFactoryImpl : public InternalComponentsFactory {
ThrottledDataTypeTracker* throttled_data_type_tracker,
const std::vector<SyncEngineEventListener*>& listeners,
sessions::DebugInfoGetter* debug_info_getter,
- TrafficRecorder* traffic_recorder,
- bool keystore_encryption_enabled) OVERRIDE;
+ TrafficRecorder* traffic_recorder) OVERRIDE;
virtual scoped_ptr<syncable::DirectoryBackingStore>
BuildDirectoryBackingStore(
const std::string& dir_name,
const FilePath& backing_filepath) OVERRIDE;
+ virtual Switches GetSwitches() const OVERRIDE;
+
private:
+ const Switches switches_;
DISALLOW_COPY_AND_ASSIGN(InternalComponentsFactoryImpl);
};

Powered by Google App Engine
This is Rietveld 408576698