Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2955)

Unified Diff: chrome/browser/sync/engine/syncapi.cc

Issue 7563017: Dont retry sync in case of auth errors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Upload before commit. Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/sync/engine/sync_scheduler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/engine/syncapi.cc
diff --git a/chrome/browser/sync/engine/syncapi.cc b/chrome/browser/sync/engine/syncapi.cc
index 229d3429318292478f51366840d7e527b4e0e875..4009cbe84f13ca63afa4e0623a1ef1b33ed9fd76 100644
--- a/chrome/browser/sync/engine/syncapi.cc
+++ b/chrome/browser/sync/engine/syncapi.cc
@@ -1945,11 +1945,12 @@ void SyncManager::SyncInternal::UpdateCredentials(
DCHECK(!credentials.sync_token.empty());
observing_ip_address_changes_ = true;
- connection_manager()->set_auth_token(credentials.sync_token);
- sync_notifier_->UpdateCredentials(
- credentials.email, credentials.sync_token);
- if (!setup_for_test_mode_) {
- CheckServerReachable();
+ if (connection_manager()->set_auth_token(credentials.sync_token)) {
+ sync_notifier_->UpdateCredentials(
+ credentials.email, credentials.sync_token);
+ if (!setup_for_test_mode_) {
+ CheckServerReachable();
+ }
}
}
« no previous file with comments | « chrome/browser/sync/engine/sync_scheduler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698