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

Unified Diff: components/browser_sync/browser/profile_sync_components_factory_impl.h

Issue 2328393002: [Sync] Add a sanity integration test for USS. (Closed)
Patch Set: Rebase. Created 4 years, 3 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 | « chrome/test/BUILD.gn ('k') | components/browser_sync/browser/profile_sync_components_factory_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/browser_sync/browser/profile_sync_components_factory_impl.h
diff --git a/components/browser_sync/browser/profile_sync_components_factory_impl.h b/components/browser_sync/browser/profile_sync_components_factory_impl.h
index 6b3024b04ba1605e07fe72235081b6ddfd8dcd6f..8162edbed3746f0109ebe2b414c02aee148d3d36 100644
--- a/components/browser_sync/browser/profile_sync_components_factory_impl.h
+++ b/components/browser_sync/browser/profile_sync_components_factory_impl.h
@@ -88,6 +88,10 @@ class ProfileSyncComponentsFactoryImpl
sync_driver::SyncService* sync_service,
std::unique_ptr<syncer::DataTypeErrorHandler> error_handler) override;
+ // Sets a bit that determines whether PREFERENCES should be registered with a
+ // ModelTypeController for testing purposes.
+ static void OverridePrefsForUssTest(bool use_uss);
+
private:
// Register data types which are enabled on both desktop and mobile.
// |disabled_types| and |enabled_types| correspond only to those types
@@ -117,6 +121,9 @@ class ProfileSyncComponentsFactoryImpl
base::WeakPtrFactory<ProfileSyncComponentsFactoryImpl> weak_factory_;
+ // Whether to override PREFERENCES to use USS.
+ static bool override_prefs_controller_to_uss_for_test_;
+
DISALLOW_COPY_AND_ASSIGN(ProfileSyncComponentsFactoryImpl);
};
« no previous file with comments | « chrome/test/BUILD.gn ('k') | components/browser_sync/browser/profile_sync_components_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698