From cc4dbe2b5fc29dd70f88272da7fc2a536de7ce51 Mon Sep 17 00:00:00 2001
From: "qsr@chromium.org"
 <qsr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Date: Thu, 19 Jul 2012 09:37:18 +0000
Subject: 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
---
 chrome/browser/chrome_to_mobile_service.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'chrome/browser/chrome_to_mobile_service.h')

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:
-- 
cgit v1.1