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

Unified Diff: chrome/browser/sync/profile_sync_service_android.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/sync/profile_sync_service_android.h
diff --git a/chrome/browser/sync/profile_sync_service_android.h b/chrome/browser/sync/profile_sync_service_android.h
index 45099020c3feb34e237ec9a1acf357a77862b8ad..68bc8547223b71fa893ae3608cb622d9739f7d27 100644
--- a/chrome/browser/sync/profile_sync_service_android.h
+++ b/chrome/browser/sync/profile_sync_service_android.h
@@ -19,6 +19,10 @@
#include "google/cacheinvalidation/include/types.h"
#include "google_apis/gaia/google_service_auth_error.h"
+namespace sync_driver {
+class SyncSetupInProgressHandle;
+}
+
class Profile;
class ProfileSyncService;
@@ -191,6 +195,9 @@ class ProfileSyncServiceAndroid : public sync_driver::SyncServiceObserver {
// A reference to the sync service for this profile.
ProfileSyncService* sync_service_;
+ // Handle preventing Sync from running until configuration is complete.
+ std::unique_ptr<sync_driver::SyncSetupInProgressHandle> setup_handle_;
+
// The class that handles getting, setting, and persisting sync
// preferences.
std::unique_ptr<sync_driver::SyncPrefs> sync_prefs_;

Powered by Google App Engine
This is Rietveld 408576698