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

Unified Diff: sync/internal_api/sync_manager_impl.cc

Issue 875243003: Add sync experiment flag for wallet datatype. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 11 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 | « sync/internal_api/public/util/experiments.h ('k') | sync/protocol/experiments_specifics.proto » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/internal_api/sync_manager_impl.cc
diff --git a/sync/internal_api/sync_manager_impl.cc b/sync/internal_api/sync_manager_impl.cc
index 8ff4843763e91ece862be273e31e94fbcb28e1b7..1655a24428ed151a01b48a1ba08c0f3981dcc248 100644
--- a/sync/internal_api/sync_manager_impl.cc
+++ b/sync/internal_api/sync_manager_impl.cc
@@ -1010,6 +1010,17 @@ bool SyncManagerImpl::ReceivedExperiment(Experiments* experiments) {
}
}
+ ReadNode wallet_sync_node(&trans);
+ if (wallet_sync_node.InitByClientTagLookup(
+ syncer::EXPERIMENTS, syncer::kWalletSyncTag) == BaseNode::INIT_OK) {
+ const sync_pb::WalletSyncFlags& wallet_sync =
+ wallet_sync_node.GetExperimentsSpecifics().wallet_sync();
+ if (wallet_sync.has_enabled()) {
+ experiments->wallet_sync_enabled = wallet_sync.enabled();
+ found_experiment = true;
+ }
+ }
+
return found_experiment;
}
« no previous file with comments | « sync/internal_api/public/util/experiments.h ('k') | sync/protocol/experiments_specifics.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698