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

Unified Diff: chrome/browser/ui/webui/options/options_sync_setup_handler.cc

Issue 9295044: Start moving signin code out of browser/sync. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleaned up unnecessary inclusions of signin_manager.h Created 8 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
Index: chrome/browser/ui/webui/options/options_sync_setup_handler.cc
diff --git a/chrome/browser/ui/webui/options/options_sync_setup_handler.cc b/chrome/browser/ui/webui/options/options_sync_setup_handler.cc
index af88e2c875bb27f50252e57e4e1475bcec8154ca..85ad94d0fa10ba200a5072138a571a5d367f42b3 100644
--- a/chrome/browser/ui/webui/options/options_sync_setup_handler.cc
+++ b/chrome/browser/ui/webui/options/options_sync_setup_handler.cc
@@ -16,24 +16,6 @@ OptionsSyncSetupHandler::OptionsSyncSetupHandler(
OptionsSyncSetupHandler::~OptionsSyncSetupHandler() {
}
-void OptionsSyncSetupHandler::StepWizardForShowSetupUI() {
- ProfileSyncService* service(ProfileSyncServiceFactory::
- GetInstance()->GetForProfile(Profile::FromWebUI(web_ui())));
- DCHECK(service);
-
- // We should bring up either a login or a configure flow based on the state of
- // sync.
- if (service->HasSyncSetupCompleted()) {
- if (service->IsPassphraseRequiredForDecryption()) {
- service->get_wizard().Step(SyncSetupWizard::ENTER_PASSPHRASE);
- } else {
- service->get_wizard().Step(SyncSetupWizard::CONFIGURE);
- }
- } else {
- service->get_wizard().Step(SyncSetupWizard::GetLoginState());
- }
-}
-
void OptionsSyncSetupHandler::ShowSetupUI() {
// Show the Sync Setup page.
scoped_ptr<Value> page(Value::CreateStringValue("syncSetup"));
« no previous file with comments | « chrome/browser/ui/webui/options/options_sync_setup_handler.h ('k') | chrome/browser/ui/webui/signin/login_ui_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698