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

Unified Diff: chrome/browser/browsing_data/history_counter_browsertest.cc

Issue 2828083003: Show autofill sync status in CBD (Closed)
Patch Set: fix history test Created 3 years, 8 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: chrome/browser/browsing_data/history_counter_browsertest.cc
diff --git a/chrome/browser/browsing_data/history_counter_browsertest.cc b/chrome/browser/browsing_data/history_counter_browsertest.cc
index 1cea7b64de509eb13decc24b0da78325ced0b285..cae1fcf92f97f49d062b44be91f8e78a38f7be93 100644
--- a/chrome/browser/browsing_data/history_counter_browsertest.cc
+++ b/chrome/browser/browsing_data/history_counter_browsertest.cc
@@ -398,10 +398,12 @@ IN_PROC_BROWSER_TEST_F(HistoryCounterTest, RestartOnSyncChange) {
WaitForCountingOrConfirmFinished();
// We stop syncing history deletion in particular. This restarts the counter.
- syncer::ModelTypeSet everything_except_history = syncer::ModelTypeSet::All();
+ syncer::ModelTypeSet everything_except_history =
+ syncer::UserSelectableTypes();
everything_except_history.Remove(syncer::HISTORY_DELETE_DIRECTIVES);
auto sync_blocker = sync_service->GetSetupInProgressHandle();
- sync_service->ChangePreferredDataTypes(everything_except_history);
+ sync_service->OnUserChoseDatatypes(/*sync_everything=*/false,
+ everything_except_history);
sync_blocker.reset();
WaitForCountingOrConfirmFinished();

Powered by Google App Engine
This is Rietveld 408576698