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

Unified Diff: chrome/browser/sync/test/integration/profile_sync_service_harness.cc

Issue 2044303004: Sync: Support multiple setup UIs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename variable 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
Index: chrome/browser/sync/test/integration/profile_sync_service_harness.cc
diff --git a/chrome/browser/sync/test/integration/profile_sync_service_harness.cc b/chrome/browser/sync/test/integration/profile_sync_service_harness.cc
index 10a03f0b4ee7582602062936cffd83f874b7298e..756d7ac99081b1f033dacfe9e03dd75adbd405ec 100644
--- a/chrome/browser/sync/test/integration/profile_sync_service_harness.cc
+++ b/chrome/browser/sync/test/integration/profile_sync_service_harness.cc
@@ -155,7 +155,7 @@ bool ProfileSyncServiceHarness::SetupSync(
// Tell the sync service that setup is in progress so we don't start syncing
// until we've finished configuration.
- service()->SetSetupInProgress(true);
+ sync_blocker_ = service()->GetSetupInProgressHandle();
DCHECK(!username_.empty());
if (signin_type_ == SigninType::UI_SIGNIN) {
@@ -305,7 +305,7 @@ bool ProfileSyncServiceHarness::IsSyncDisabled() const {
}
void ProfileSyncServiceHarness::FinishSyncSetup() {
- service()->SetSetupInProgress(false);
+ sync_blocker_.reset();
service()->SetFirstSetupComplete();
}

Powered by Google App Engine
This is Rietveld 408576698