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

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

Issue 11418200: Setup from settings should allow configuration first (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge conflict Created 8 years 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 faf561d6e0ff8567a33c833d4fbf91d0ff7b8287..1e2e1a7d44d085c7c3605b5bab2c752180da901a 100644
--- a/chrome/browser/ui/sync/one_click_signin_sync_starter.h
+++ b/chrome/browser/ui/sync/one_click_signin_sync_starter.h
@@ -16,7 +16,22 @@ class Browser;
// the job is done.
class OneClickSigninSyncStarter : public SigninTracker::Observer {
public:
- enum StartSyncMode {SYNC_WITH_DEFAULT_SETTINGS, CONFIGURE_SYNC_FIRST };
+ enum StartSyncMode {
+ // Starts the process of signing the user in with the SigninManager, and
+ // once completed automatically starts sync with all data types enabled.
+ SYNC_WITH_DEFAULT_SETTINGS,
+
+ // Starts the process of signing the user in with the SigninManager, and
+ // once completed redirects the user to the settings page to allow them
+ // to configure which data types to sync before sync is enabled.
+ CONFIGURE_SYNC_FIRST,
+
+ // Starts the process of signing the user in with the SigninManager, and
+ // once completed don't do anything wrt sync. This mode is used when using
+ // the web-based sign in flow directly from the settings page. This mode
Andrew T Wilson (Slow) 2012/12/03 13:19:02 I guess SyncSetupHandler uses SigninTracker to det
Roger Tawa OOO till Jul 10th 2012/12/03 19:08:28 I tried it again and the state is OK. I suspect wh
+ // is distinct from the previous one because redirecting to the settings
+ // page from here messes up the internal state of SyncSetupHander.
+ SIGNIN_ONLY};
Andrew T Wilson (Slow) 2012/12/03 13:19:02 nit: close paren on its own line.
Roger Tawa OOO till Jul 10th 2012/12/03 19:08:28 Done.
OneClickSigninSyncStarter(Browser* browser,
const std::string& session_index,

Powered by Google App Engine
This is Rietveld 408576698