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

Unified Diff: components/browser_sync/browser/profile_sync_service.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
Index: components/browser_sync/browser/profile_sync_service.cc
diff --git a/components/browser_sync/browser/profile_sync_service.cc b/components/browser_sync/browser/profile_sync_service.cc
index 48d01e49922b4c5f96bb97d722406b96fce031e4..ef326ebbd80908f60ee6ff264413627d8d1260b6 100644
--- a/components/browser_sync/browser/profile_sync_service.cc
+++ b/components/browser_sync/browser/profile_sync_service.cc
@@ -294,9 +294,7 @@ void ProfileSyncService::Initialize() {
sync_enabled_weak_factory_.GetWeakPtr(),
syncer::ModelTypeSet(syncer::SESSIONS))));
- if (channel_ == version_info::Channel::UNKNOWN &&
- base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kSyncEnableUSSDeviceInfo)) {
+ if (base::FeatureList::IsEnabled(switches::kSyncUSSDeviceInfo)) {
scoped_refptr<base::SequencedTaskRunner> blocking_task_runner(
blocking_pool_->GetSequencedTaskRunnerWithShutdownBehavior(
blocking_pool_->GetSequenceToken(),
« no previous file with comments | « components/browser_sync/browser/profile_sync_components_factory_impl.cc ('k') | components/sync/driver/sync_driver_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698