Index: chrome/browser/sync/profile_sync_service.cc |
=================================================================== |
--- chrome/browser/sync/profile_sync_service.cc (revision 71694) |
+++ chrome/browser/sync/profile_sync_service.cc (working copy) |
@@ -726,6 +726,25 @@ |
FOR_EACH_OBSERVER(Observer, observers_, OnStateChanged()); |
} |
+void ProfileSyncService::ShowErrorUI(gfx::NativeWindow parent_window) { |
+ if (observed_passphrase_required()) { |
+ if (IsUsingSecondaryPassphrase()) |
+ PromptForExistingPassphrase(parent_window); |
+ else |
+ ShowLoginDialog(parent_window); |
+ return; |
+ } |
+ const GoogleServiceAuthError& error = GetAuthError(); |
+ if (error.state() == GoogleServiceAuthError::INVALID_GAIA_CREDENTIALS || |
+ error.state() == GoogleServiceAuthError::CAPTCHA_REQUIRED || |
+ error.state() == GoogleServiceAuthError::ACCOUNT_DELETED || |
+ error.state() == GoogleServiceAuthError::ACCOUNT_DISABLED || |
+ error.state() == GoogleServiceAuthError::SERVICE_UNAVAILABLE) { |
tim (not reviewing)
2011/01/19 21:34:29
nit - extra space after ==
|
+ ShowLoginDialog(parent_window); |
+ } |
+} |
+ |
+ |
void ProfileSyncService::ShowConfigure(gfx::NativeWindow parent_window) { |
if (WizardIsVisible()) { |
wizard_.Focus(); |