diff options
author | qsr@chromium.org <qsr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-19 09:37:18 +0000 |
---|---|---|
committer | qsr@chromium.org <qsr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-19 09:37:18 +0000 |
commit | cc4dbe2b5fc29dd70f88272da7fc2a536de7ce51 (patch) | |
tree | 17a9de632df4287e98d2ca076a319a9f74675ada /chrome/browser/chrome_to_mobile_service.h | |
parent | d24b8c1e56e34a4e1040083189e5faf635154580 (diff) | |
download | chromium_src-cc4dbe2b5fc29dd70f88272da7fc2a536de7ce51.zip chromium_src-cc4dbe2b5fc29dd70f88272da7fc2a536de7ce51.tar.gz chromium_src-cc4dbe2b5fc29dd70f88272da7fc2a536de7ce51.tar.bz2 |
Update API of OAuth2AccessTokenFetcher to return an expiration date.
OAuth2 access token have an expiration date that is returned by the
server. Until now, we were not retrieving this information and had no
way to reuse the tokens correctly. This change updates the API so this
information is available to the caller.
This is a reland of revision 147199.
Original review: https://chromiumcodereview.appspot.com/10694154
TEST=None
BUG=None
TBR=munjal, kalman, Miranda Callahan, Ben Goodger (Google)
R=tbarzic
Review URL: https://chromiumcodereview.appspot.com/10796006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147416 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chrome_to_mobile_service.h')
-rw-r--r-- | chrome/browser/chrome_to_mobile_service.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/chrome_to_mobile_service.h b/chrome/browser/chrome_to_mobile_service.h index 4fe1309..c17d350 100644 --- a/chrome/browser/chrome_to_mobile_service.h +++ b/chrome/browser/chrome_to_mobile_service.h @@ -145,7 +145,8 @@ class ChromeToMobileService : public ProfileKeyedService, const content::NotificationDetails& details) OVERRIDE; // OAuth2AccessTokenConsumer methods. - virtual void OnGetTokenSuccess(const std::string& access_token) OVERRIDE; + virtual void OnGetTokenSuccess(const std::string& access_token, + const base::Time& expiration_time) OVERRIDE; virtual void OnGetTokenFailure(const GoogleServiceAuthError& error) OVERRIDE; private: |