From e8c20ffc89d4194aa290206d95f6fdf19b4d12ea Mon Sep 17 00:00:00 2001 From: "zork@google.com" Date: Thu, 10 Dec 2009 21:11:18 +0000 Subject: Give the proper error message in the case where you attempt to log int o bookmark sync while offline. BUG=19738 TEST=Attempt to log in to bookmark sync while offline. The error should be "Connection Unavailable" Review URL: http://codereview.chromium.org/455038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34279 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/sync/engine/syncapi.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'chrome/browser/sync/engine/syncapi.cc') diff --git a/chrome/browser/sync/engine/syncapi.cc b/chrome/browser/sync/engine/syncapi.cc index 7e47c59..bfcd736 100755 --- a/chrome/browser/sync/engine/syncapi.cc +++ b/chrome/browser/sync/engine/syncapi.cc @@ -1435,7 +1435,13 @@ void SyncManager::SyncInternal::HandleAuthWatcherEvent( event.auth_results->captcha_token, captcha, GURL(event.auth_results->auth_error_url))); return; + } else if (event.auth_results->auth_error == + browser_sync::ConnectionUnavailable) { + auth_problem_ = AuthError::CONNECTION_FAILED; + } else { + auth_problem_ = AuthError::INVALID_GAIA_CREDENTIALS; } + break; case AuthWatcherEvent::SERVICE_AUTH_FAILED: // Expired GAIA credentials. auth_problem_ = AuthError::INVALID_GAIA_CREDENTIALS; break; -- cgit v1.1