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

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

Issue 63253003: Fix issues with token refresh in AccountReconcilor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wip Created 7 years, 1 month 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: chrome/browser/signin/account_reconcilor.cc
diff --git a/chrome/browser/signin/account_reconcilor.cc b/chrome/browser/signin/account_reconcilor.cc
index 9dccc406b46a16a93e12fa6872c1e0e57c68b2ce..5ec6604124b3d11932234f1ec42515012a61e875 100644
--- a/chrome/browser/signin/account_reconcilor.cc
+++ b/chrome/browser/signin/account_reconcilor.cc
@@ -149,6 +149,11 @@ void AccountReconcilor::OnRefreshTokenAvailable(const std::string& account_id) {
PerformMergeAction(account_id);
}
+void AccountReconcilor::OnRefreshTokenAvailable(
+ const std::deque<std::string>& account_ids) {
+ PerformMergeAction(account_ids);
+}
Roger Tawa OOO till Jul 10th 2013/11/08 13:17:31 I don't think its a good idea to declare a new cal
+
void AccountReconcilor::OnRefreshTokenRevoked(const std::string& account_id) {
DVLOG(1) << "AccountReconcilor::OnRefreshTokenRevoked: " << account_id;
PerformRemoveAction(account_id);
@@ -162,6 +167,13 @@ void AccountReconcilor::PerformMergeAction(const std::string& account_id) {
helper->LogIn(account_id);
}
+void AccountReconcilor::PerformMergeAction(
+ const std::deque<std::string>& account_ids) {
+ // GoogleAutoLoginHelper deletes itself upon success / failure.
+ GoogleAutoLoginHelper* helper = new GoogleAutoLoginHelper(profile_);
+ helper->LogIn(account_ids);
+}
Roger Tawa OOO till Jul 10th 2013/11/08 13:17:31 If you change the helper so that LogIn(std::string
acleung1 2013/11/08 22:21:48 In that case, wouldn't I need to do a lot more wor
+
void AccountReconcilor::PerformRemoveAction(const std::string& account_id) {
// TODO(acleung): Implement this:
}
« no previous file with comments | « chrome/browser/signin/account_reconcilor.h ('k') | chrome/browser/signin/android_profile_oauth2_token_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698