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

Unified Diff: chrome/browser/sync/profile_sync_service.cc

Issue 6581023: Merge 75769 - When enabling password sync manually, use the passphrase migrat... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/648/src/
Patch Set: Created 9 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/sync/sync_setup_flow.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/profile_sync_service.cc
===================================================================
--- chrome/browser/sync/profile_sync_service.cc (revision 75848)
+++ chrome/browser/sync/profile_sync_service.cc (working copy)
@@ -700,8 +700,13 @@
return;
}
- if (WizardIsVisible()) {
+ if (WizardIsVisible() && for_decryption) {
wizard_.Step(SyncSetupWizard::ENTER_PASSPHRASE);
+ } else if (WizardIsVisible() && !for_decryption) {
+ // The user is enabling an encrypted data type for the first
+ // time, and we don't even have a default passphrase. We need
+ // to refresh credentials and show the passphrase migration.
+ SigninForPassphraseMigration(NULL);
}
NotifyObservers();
@@ -733,6 +738,9 @@
if (WizardIsVisible()) {
wizard_.Focus();
+ // Force the wizard to step to the login screen (which will only actually
+ // happen if the transition is valid).
+ wizard_.Step(SyncSetupWizard::GAIA_LOGIN);
return;
}
« no previous file with comments | « no previous file | chrome/browser/sync/sync_setup_flow.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698