diff options
author | fgorski@chromium.org <fgorski@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-17 07:35:58 +0000 |
---|---|---|
committer | fgorski@chromium.org <fgorski@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-17 07:35:58 +0000 |
commit | 7df5ef237e07608b08c11216fbdf91f9ae27f779 (patch) | |
tree | fb94f2256a9f04e30c59830958f503aa695e8573 /chrome/browser/services/gcm/gcm_account_tracker.h | |
parent | 44594085abf90e33fbf7136c4c978176cc22f37a (diff) | |
download | chromium_src-7df5ef237e07608b08c11216fbdf91f9ae27f779.zip chromium_src-7df5ef237e07608b08c11216fbdf91f9ae27f779.tar.gz chromium_src-7df5ef237e07608b08c11216fbdf91f9ae27f779.tar.bz2 |
Adding a step to the check-in process that ensures the correct account information is present before device
check-in happen, in order to maintain a relationship
between signed in accounts and the device.
Behavior of the check-in is not symmetric:
* Adding an account converges slowly - newly added
account will be associated to device with next periodic
check, to avoid checking in too often.
* Removing account triggers check-in immediately to ensure
users privacy.
BUG=374969
Review URL: https://codereview.chromium.org/378643002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283693 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/services/gcm/gcm_account_tracker.h')
-rw-r--r-- | chrome/browser/services/gcm/gcm_account_tracker.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/chrome/browser/services/gcm/gcm_account_tracker.h b/chrome/browser/services/gcm/gcm_account_tracker.h index 9093ba7..9da40a6 100644 --- a/chrome/browser/services/gcm/gcm_account_tracker.h +++ b/chrome/browser/services/gcm/gcm_account_tracker.h @@ -50,11 +50,9 @@ class GCMAccountTracker : public gaia::AccountTracker::Observer, }; // Callback for the GetAccountsForCheckin call. |account_tokens| maps email - // addresses to OAuth2 access tokens. |account_removed| indicates whether an - // account has been removed since the last time the callback was called. - typedef base::Callback< - void(const std::map<std::string, std::string>& account_tokens, - bool account_removed)> UpdateAccountsCallback; + // addresses to OAuth2 access tokens. + typedef base::Callback<void(const std::map<std::string, std::string>& + account_tokens)> UpdateAccountsCallback; // Creates an instance of GCMAccountTracker. |account_tracker| is used to // deliver information about the account, while |callback| will be called |