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

Unified Diff: chrome/browser/ui/webui/settings/people_handler.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/webui/settings/people_handler.h
diff --git a/chrome/browser/ui/webui/settings/people_handler.h b/chrome/browser/ui/webui/settings/people_handler.h
index 4a98df8a598fc3ba6334f5dc12870158f381783e..bfacf969bf24e329558aa886282528d68b800c41 100644
--- a/chrome/browser/ui/webui/settings/people_handler.h
+++ b/chrome/browser/ui/webui/settings/people_handler.h
@@ -33,6 +33,10 @@ namespace signin_metrics {
enum class AccessPoint;
}
+namespace sync_driver {
+class SyncSetupInProgressHandle;
+}
+
namespace settings {
class PeopleHandler : public SettingsPageUIHandler,
@@ -185,6 +189,9 @@ class PeopleHandler : public SettingsPageUIHandler,
// Helper object used to wait for the sync backend to startup.
std::unique_ptr<SyncStartupTracker> sync_startup_tracker_;
+ // Handle preventing Sync from running until configuration is complete.
+ std::unique_ptr<sync_driver::SyncSetupInProgressHandle> setup_handle_;
+
// Set to true whenever the sync configure UI is visible. This is used to tell
// what stage of the setup wizard the user was in and to update the UMA
// histograms in the case that the user cancels out.

Powered by Google App Engine
This is Rietveld 408576698