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

Side by Side Diff: chrome/browser/sync/sync_setup_flow.cc

Issue 6357011: Stop using browser signin for passphrase migration, just use the normal signi... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/sync/profile_sync_service.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/sync/sync_setup_flow.h" 5 #include "chrome/browser/sync/sync_setup_flow.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/json/json_reader.h" 8 #include "base/json/json_reader.h"
9 #include "base/json/json_writer.h" 9 #include "base/json/json_writer.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 case SyncSetupWizard::GAIA_LOGIN: 548 case SyncSetupWizard::GAIA_LOGIN:
549 return current_state_ == SyncSetupWizard::FATAL_ERROR || 549 return current_state_ == SyncSetupWizard::FATAL_ERROR ||
550 current_state_ == SyncSetupWizard::GAIA_LOGIN; 550 current_state_ == SyncSetupWizard::GAIA_LOGIN;
551 case SyncSetupWizard::GAIA_SUCCESS: 551 case SyncSetupWizard::GAIA_SUCCESS:
552 return current_state_ == SyncSetupWizard::GAIA_LOGIN; 552 return current_state_ == SyncSetupWizard::GAIA_LOGIN;
553 case SyncSetupWizard::CONFIGURE: 553 case SyncSetupWizard::CONFIGURE:
554 return current_state_ == SyncSetupWizard::GAIA_SUCCESS; 554 return current_state_ == SyncSetupWizard::GAIA_SUCCESS;
555 case SyncSetupWizard::ENTER_PASSPHRASE: 555 case SyncSetupWizard::ENTER_PASSPHRASE:
556 return current_state_ == SyncSetupWizard::CONFIGURE || 556 return current_state_ == SyncSetupWizard::CONFIGURE ||
557 current_state_ == SyncSetupWizard::SETTING_UP; 557 current_state_ == SyncSetupWizard::SETTING_UP;
558 case SyncSetupWizard::PASSPHRASE_MIGRATION:
559 return current_state_ == SyncSetupWizard::GAIA_LOGIN;
558 case SyncSetupWizard::SETUP_ABORTED_BY_PENDING_CLEAR: 560 case SyncSetupWizard::SETUP_ABORTED_BY_PENDING_CLEAR:
559 return current_state_ == SyncSetupWizard::CONFIGURE; 561 return current_state_ == SyncSetupWizard::CONFIGURE;
560 case SyncSetupWizard::SETTING_UP: 562 case SyncSetupWizard::SETTING_UP:
561 return current_state_ == SyncSetupWizard::CONFIGURE || 563 return current_state_ == SyncSetupWizard::CONFIGURE ||
562 current_state_ == SyncSetupWizard::ENTER_PASSPHRASE || 564 current_state_ == SyncSetupWizard::ENTER_PASSPHRASE ||
563 current_state_ == SyncSetupWizard::PASSPHRASE_MIGRATION; 565 current_state_ == SyncSetupWizard::PASSPHRASE_MIGRATION;
564 case SyncSetupWizard::FATAL_ERROR: 566 case SyncSetupWizard::FATAL_ERROR:
565 return true; // You can always hit the panic button. 567 return true; // You can always hit the panic button.
566 case SyncSetupWizard::DONE_FIRST_TIME: 568 case SyncSetupWizard::DONE_FIRST_TIME:
567 case SyncSetupWizard::DONE: 569 case SyncSetupWizard::DONE:
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 service_->OnUserChoseDatatypes(false, registered_types); 752 service_->OnUserChoseDatatypes(false, registered_types);
751 } else if (option == "google") { 753 } else if (option == "google") {
752 // Implicit passphrase already set up. 754 // Implicit passphrase already set up.
753 Advance(SyncSetupWizard::DONE); 755 Advance(SyncSetupWizard::DONE);
754 } 756 }
755 } 757 }
756 758
757 void SyncSetupFlow::OnGoToDashboard() { 759 void SyncSetupFlow::OnGoToDashboard() {
758 BrowserList::GetLastActive()->OpenPrivacyDashboardTabAndActivate(); 760 BrowserList::GetLastActive()->OpenPrivacyDashboardTabAndActivate();
759 } 761 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698