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

Unified Diff: chrome/browser/signin/token_service.cc

Issue 10829051: [Sync] Avoid unnecessary DB rewrite for TokenService credentials that were just read from DB (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/signin/token_service.cc
diff --git a/chrome/browser/signin/token_service.cc b/chrome/browser/signin/token_service.cc
index 536dcfa85d6dd65ed41bfd19e84204c1950cd31c..e585989da5d8375806add65b581b2faeed25be09 100644
--- a/chrome/browser/signin/token_service.cc
+++ b/chrome/browser/signin/token_service.cc
@@ -369,10 +369,10 @@ void TokenService::LoadTokensIntoMemory(
sid = db_tokens.find(GaiaConstants::kGaiaSid)->second;
if (!lsid.empty() && !sid.empty()) {
- UpdateCredentials(GaiaAuthConsumer::ClientLoginResult(sid,
- lsid,
- std::string(),
- std::string()));
+ credentials_ = GaiaAuthConsumer::ClientLoginResult(sid,
Andrew T Wilson (Slow) 2012/07/27 18:01:16 Are you sure it's safe to skip all the other stuff
Roger Tawa OOO till Jul 10th 2012/07/27 18:18:35 I think it may be safer to change only the persist
Raghu Simha 2012/07/27 21:04:35 Here's my understanding of what's going on in Load
Roger Tawa OOO till Jul 10th 2012/07/27 21:21:45 True that this is called only during init, but it
Raghu Simha 2012/07/27 21:37:01 I stepped through the code with a debugger for sig
+ lsid,
+ std::string(),
+ std::string());
}
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698