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

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

Issue 2341923004: [USS] Covert kSyncEnableUSSDeviceInfo commandline flag to Feature API (Closed)
Patch Set: remove all use of kSyncEnableUSSDeviceInfo 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 | « no previous file | components/browser_sync/browser/profile_sync_service.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.cc
diff --git a/components/browser_sync/browser/profile_sync_components_factory_impl.cc b/components/browser_sync/browser/profile_sync_components_factory_impl.cc
index df301a25c059fef6e9ee31c8183524cfadde16d6..7422c6b8a573b0f568337e256db833f86e7f6230 100644
--- a/components/browser_sync/browser/profile_sync_components_factory_impl.cc
+++ b/components/browser_sync/browser/profile_sync_components_factory_impl.cc
@@ -150,8 +150,7 @@ void ProfileSyncComponentsFactoryImpl::RegisterCommonDataTypes(
base::Bind(&ChromeReportUnrecoverableError, channel_);
// TODO(stanisc): can DEVICE_INFO be one of disabled datatypes?
- if (channel_ == version_info::Channel::UNKNOWN &&
- command_line_.HasSwitch(switches::kSyncEnableUSSDeviceInfo)) {
+ if (base::FeatureList::IsEnabled(switches::kSyncUSSDeviceInfo)) {
sync_service->RegisterDataTypeController(
base::MakeUnique<UIModelTypeController>(syncer::DEVICE_INFO,
error_callback, sync_client_));
« no previous file with comments | « no previous file | components/browser_sync/browser/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698