| Index: chrome/browser/ui/webui/options/sync_setup_handler.cc
|
| diff --git a/chrome/browser/ui/webui/options/sync_setup_handler.cc b/chrome/browser/ui/webui/options/sync_setup_handler.cc
|
| index dd7f02746a759a14ff439d56a350304fb2ea059a..5d890d1223c93fd77e7ea5f182663e80e95571da 100644
|
| --- a/chrome/browser/ui/webui/options/sync_setup_handler.cc
|
| +++ b/chrome/browser/ui/webui/options/sync_setup_handler.cc
|
| @@ -647,8 +647,11 @@ void SyncSetupHandler::HandleAttemptUserExit(const base::ListValue* args) {
|
|
|
| #if !defined(OS_CHROMEOS)
|
| void SyncSetupHandler::HandleStartSignin(const base::ListValue* args) {
|
| - // Should only be called if the user is not already signed in.
|
| - DCHECK(!SigninManagerFactory::GetForProfile(GetProfile())->IsAuthenticated());
|
| + // Should only be called if the user is not already signed in or has an auth
|
| + // error.
|
| + DCHECK(
|
| + !SigninManagerFactory::GetForProfile(GetProfile())->IsAuthenticated() ||
|
| + SigninErrorControllerFactory::GetForProfile(GetProfile())->HasError());
|
| bool creating_supervised_user = false;
|
| args->GetBoolean(0, &creating_supervised_user);
|
| OpenSyncSetup(creating_supervised_user);
|
|
|