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

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

Issue 2066493003: Revert of Sync: Support multiple setup UIs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | chrome/browser/supervised_user/supervised_user_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1c387040fd6ff39a5a136003eb0d12e5353b0017..8bf2fc04035379be609ab78d4d7578bec1ec0c65 100644
--- a/chrome/browser/browsing_data/history_counter_browsertest.cc
+++ b/chrome/browser/browsing_data/history_counter_browsertest.cc
@@ -354,33 +354,33 @@
// We stop syncing history deletion in particular. This restarts the counter.
syncer::ModelTypeSet everything_except_history = syncer::ModelTypeSet::All();
everything_except_history.Remove(syncer::HISTORY_DELETE_DIRECTIVES);
- auto sync_blocker = sync_service->GetSetupInProgressHandle();
+ sync_service->SetSetupInProgress(true);
sync_service->ChangePreferredDataTypes(everything_except_history);
- sync_blocker.reset();
+ sync_service->SetSetupInProgress(false);
WaitForCountingOrConfirmFinished();
// If the history deletion sync is not affected, the counter is not restarted.
syncer::ModelTypeSet only_passwords(syncer::PASSWORDS);
sync_service->ChangePreferredDataTypes(only_passwords);
- sync_blocker = sync_service->GetSetupInProgressHandle();
+ sync_service->SetSetupInProgress(true);
sync_service->ChangePreferredDataTypes(only_passwords);
- sync_blocker.reset();
+ sync_service->SetSetupInProgress(false);
EXPECT_FALSE(counter.HasTrackedTasks());
EXPECT_FALSE(CountingFinishedSinceLastAsked());
// Same in this case.
syncer::ModelTypeSet autofill_and_passwords(
syncer::AUTOFILL, syncer::PASSWORDS);
- sync_blocker = sync_service->GetSetupInProgressHandle();
+ sync_service->SetSetupInProgress(true);
sync_service->ChangePreferredDataTypes(autofill_and_passwords);
- sync_blocker.reset();
+ sync_service->SetSetupInProgress(false);
EXPECT_FALSE(counter.HasTrackedTasks());
EXPECT_FALSE(CountingFinishedSinceLastAsked());
// We start syncing history deletion again. This restarts the counter.
- sync_blocker = sync_service->GetSetupInProgressHandle();
+ sync_service->SetSetupInProgress(true);
sync_service->ChangePreferredDataTypes(syncer::ModelTypeSet::All());
- sync_blocker.reset();
+ sync_service->SetSetupInProgress(false);
WaitForCountingOrConfirmFinished();
// Changing the syncing datatypes to another set that still includes history
« no previous file with comments | « no previous file | chrome/browser/supervised_user/supervised_user_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698