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

Unified Diff: chrome/browser/services/gcm/gcm_account_tracker.h

Issue 594383003: [GCM] Passing GCMClient::AccountTokenInfo list to GCMDriver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@account-mapper
Patch Set: Addressing CR comments Created 6 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
« no previous file with comments | « no previous file | chrome/browser/services/gcm/gcm_account_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/services/gcm/gcm_account_tracker.h
diff --git a/chrome/browser/services/gcm/gcm_account_tracker.h b/chrome/browser/services/gcm/gcm_account_tracker.h
index 9da40a6913a5a7310c0ba2f8c1eaef0309bf3669..243b58b25671498d053a927f4d56bec75df50289 100644
--- a/chrome/browser/services/gcm/gcm_account_tracker.h
+++ b/chrome/browser/services/gcm/gcm_account_tracker.h
@@ -9,6 +9,7 @@
#include <string>
#include "base/memory/scoped_vector.h"
+#include "components/gcm_driver/gcm_client.h"
#include "google_apis/gaia/account_tracker.h"
#include "google_apis/gaia/oauth2_token_service.h"
@@ -49,9 +50,9 @@ class GCMAccountTracker : public gaia::AccountTracker::Observer,
AccountState state;
};
- // Callback for the GetAccountsForCheckin call. |account_tokens| maps email
- // addresses to OAuth2 access tokens.
- typedef base::Callback<void(const std::map<std::string, std::string>&
+ // Callback for the GetAccountsForCheckin call. |account_tokens|: list of
+ // email addresses, account ids and OAuth2 access tokens.
+ typedef base::Callback<void(const std::vector<GCMClient::AccountTokenInfo>&
account_tokens)> UpdateAccountsCallback;
// Creates an instance of GCMAccountTracker. |account_tracker| is used to
« no previous file with comments | « no previous file | chrome/browser/services/gcm/gcm_account_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698