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/profiles/profile_downloader.cc | |
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/profiles/profile_downloader.cc')
-rw-r--r-- | chrome/browser/profiles/profile_downloader.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/profiles/profile_downloader.cc b/chrome/browser/profiles/profile_downloader.cc index b6bb04e..878c565 100644 --- a/chrome/browser/profiles/profile_downloader.cc +++ b/chrome/browser/profiles/profile_downloader.cc @@ -381,7 +381,8 @@ void ProfileDownloader::Observe( // Callback for OAuth2AccessTokenFetcher on success. |access_token| is the token // used to start fetching user data. -void ProfileDownloader::OnGetTokenSuccess(const std::string& access_token) { +void ProfileDownloader::OnGetTokenSuccess(const std::string& access_token, + const base::Time& expiration_time) { auth_token_ = access_token; StartFetchingImage(); } |