summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync/engine/syncapi.cc
diff options
context:
space:
mode:
authorzork@google.com <zork@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-10 21:11:18 +0000
committerzork@google.com <zork@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-10 21:11:18 +0000
commite8c20ffc89d4194aa290206d95f6fdf19b4d12ea (patch)
tree516f797566846b9b272a2c4b0b012214b20f024b /chrome/browser/sync/engine/syncapi.cc
parenta6ee86af99098a57a481db725e55456d1bc46f5b (diff)
downloadchromium_src-e8c20ffc89d4194aa290206d95f6fdf19b4d12ea.zip
chromium_src-e8c20ffc89d4194aa290206d95f6fdf19b4d12ea.tar.gz
chromium_src-e8c20ffc89d4194aa290206d95f6fdf19b4d12ea.tar.bz2
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
Diffstat (limited to 'chrome/browser/sync/engine/syncapi.cc')
-rwxr-xr-xchrome/browser/sync/engine/syncapi.cc6
1 files changed, 6 insertions, 0 deletions
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;