diff options
author | stevenjb@chromium.org <stevenjb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-05 17:56:44 +0000 |
---|---|---|
committer | stevenjb@chromium.org <stevenjb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-05 17:56:44 +0000 |
commit | 33ba3edeb108f97eeca78a8ddcb195027d59a726 (patch) | |
tree | 2b29ec8565ec96353022b946fffb345a0850039a /chrome/browser/sync | |
parent | 2ec20f8408bfc92bb15b982f2b06456ca48c5074 (diff) | |
download | chromium_src-33ba3edeb108f97eeca78a8ddcb195027d59a726.zip chromium_src-33ba3edeb108f97eeca78a8ddcb195027d59a726.tar.gz chromium_src-33ba3edeb108f97eeca78a8ddcb195027d59a726.tar.bz2 |
Always set current_state_ in SyncSetupFlow::Adance()
Change-Id: I89afdbdf63a68bc9cdcc06beb13dcb166ab0a740
BUG=chromium-os:24622
TEST=See issue
Review URL: http://codereview.chromium.org/8968034
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116505 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync')
-rw-r--r-- | chrome/browser/sync/sync_setup_flow.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/chrome/browser/sync/sync_setup_flow.cc b/chrome/browser/sync/sync_setup_flow.cc index 5fe3dc6..b9d1090 100644 --- a/chrome/browser/sync/sync_setup_flow.cc +++ b/chrome/browser/sync/sync_setup_flow.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -41,9 +41,16 @@ SyncSetupWizard::State GetStepForNonFatalError(ProfileSyncService* service) { // display the error appropriately (http://crbug.com/92722) instead of // navigating to a LOGIN state that is not supported on every platform. if (service->IsPassphraseRequired()) { +#if defined(OS_CHROMEOS) + // On ChromeOS, we never want to request login information; this state + // always represents an invalid secondary passphrase. + // TODO(sync): correctly handle auth errors on ChromeOS: crosbug.com/24647. + return SyncSetupWizard::ENTER_PASSPHRASE; +#else if (service->IsUsingSecondaryPassphrase()) return SyncSetupWizard::ENTER_PASSPHRASE; return SyncSetupWizard::GetLoginState(); +#endif } const GoogleServiceAuthError& error = service->GetAuthError(); |