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

Unified Diff: chrome/browser/ui/sync/one_click_signin_sync_starter.h

Issue 2044303004: Sync: Support multiple setup UIs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android 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/ui/sync/one_click_signin_sync_starter.h
diff --git a/chrome/browser/ui/sync/one_click_signin_sync_starter.h b/chrome/browser/ui/sync/one_click_signin_sync_starter.h
index a95405c9dca252ef8a52c417d028b21b2b605b7e..b43bf39b42e5d009ac258af2023270871316a6b3 100644
--- a/chrome/browser/ui/sync/one_click_signin_sync_starter.h
+++ b/chrome/browser/ui/sync/one_click_signin_sync_starter.h
@@ -24,7 +24,11 @@ class ProfileSyncService;
namespace content {
class WebContents;
-} // namespace content
+}
+
+namespace sync_driver {
+class SyncSetupInProgressHandle;
+}
// Waits for successful sign-in notification from the signin manager and then
// starts the sync machine. Instances of this class delete themselves once
@@ -238,6 +242,9 @@ class OneClickSigninSyncStarter : public SigninTracker::Observer,
// following AccountAddedToCookie calls triggered by account reconciliation.
bool first_account_added_to_cookie_;
+ // Handle preventing Sync from running until configuration is complete.
+ std::unique_ptr<sync_driver::SyncSetupInProgressHandle> setup_handle_;
+
base::WeakPtrFactory<OneClickSigninSyncStarter> weak_pointer_factory_;
DISALLOW_COPY_AND_ASSIGN(OneClickSigninSyncStarter);

Powered by Google App Engine
This is Rietveld 408576698