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

Unified Diff: sync/internal_api/sync_manager_impl.cc

Issue 12091081: [Sync] Add full history sync experiment (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 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') | no next file » | 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 618039c9ec1b5f256411990cedb73fe130b179b2..65e2a47645f054a253d6d1f32777c6017c551e44 100644
--- a/sync/internal_api/sync_manager_impl.cc
+++ b/sync/internal_api/sync_manager_impl.cc
@@ -1359,6 +1359,16 @@ bool SyncManagerImpl::ReceivedExperiment(Experiments* experiments) {
found_experiment = true;
}
+ ReadNode full_history_sync_node(&trans);
+ if (full_history_sync_node.InitByClientTagLookup(
+ syncer::EXPERIMENTS,
+ syncer::kFullHistorySyncTag) == BaseNode::INIT_OK &&
+ full_history_sync_node.GetExperimentsSpecifics().
+ history_delete_directives().enabled()) {
+ experiments->full_history_sync = true;
+ found_experiment = true;
+ }
+
return found_experiment;
}
« no previous file with comments | « sync/internal_api/public/util/experiments.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698