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

Unified Diff: components/sync/engine_impl/net/server_connection_manager.cc

Issue 2106743002: WIP: Local sync only... (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix after rebase. Created 4 years, 3 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
Index: components/sync/engine_impl/net/server_connection_manager.cc
diff --git a/components/sync/engine_impl/net/server_connection_manager.cc b/components/sync/engine_impl/net/server_connection_manager.cc
index 4386eb74e4a21441f5bcdbfbdb779524c04e46c0..bde9062b9bb25ec3711d2b79f9b818593b676b49 100644
--- a/components/sync/engine_impl/net/server_connection_manager.cc
+++ b/components/sync/engine_impl/net/server_connection_manager.cc
@@ -208,6 +208,8 @@ bool ServerConnectionManager::SetAuthToken(const std::string& auth_token) {
previously_invalidated_token = std::string();
return true;
}
+ LOG(ERROR) << "@@@ THIS IS SHIT...or";
+ return true;
// This could happen in case like server outage/bug. E.g. token returned by
// first request is considered invalid by sync server and because
@@ -215,8 +217,8 @@ bool ServerConnectionManager::SetAuthToken(const std::string& auth_token) {
// request. Need to notify sync frontend again to request new token,
// otherwise backend will stay in SYNC_AUTH_ERROR state while frontend thinks
// everything is fine and takes no actions.
- SetServerStatus(HttpResponse::SYNC_AUTH_ERROR);
- return false;
+ //SetServerStatus(HttpResponse::SYNC_AUTH_ERROR);
+ //return false;
}
void ServerConnectionManager::InvalidateAndClearAuthToken() {

Powered by Google App Engine
This is Rietveld 408576698