Chromium Code Reviews| Index: android_webview/browser/aw_content_browser_client.cc |
| diff --git a/android_webview/browser/aw_content_browser_client.cc b/android_webview/browser/aw_content_browser_client.cc |
| index 03f631dcf4fa40a6b74247b9ca41f9db5abd5eae..5438a6941678bce965396e3901917a915c8d0ef2 100644 |
| --- a/android_webview/browser/aw_content_browser_client.cc |
| +++ b/android_webview/browser/aw_content_browser_client.cc |
| @@ -24,20 +24,25 @@ |
| namespace { |
| -class DummyAccessTokenStore : public content::AccessTokenStore { |
| +class AwAccessTokenStore : public content::AccessTokenStore { |
| public: |
| - DummyAccessTokenStore() { } |
| + AwAccessTokenStore() { } |
| + // content::AccessTokenStore implementation |
| virtual void LoadAccessTokens( |
| - const LoadAccessTokensCallbackType& request) OVERRIDE { } |
| + const LoadAccessTokensCallbackType& request) OVERRIDE { |
| + AccessTokenStore::AccessTokenSet access_token_set; |
| + // AccessTokenSet and net::URLRequestContextGetter not used on Android, |
| + // but Run needs to be called to finish the geolocation setup. |
| + request.Run(access_token_set, NULL); |
| + } |
| + virtual void SaveAccessToken(const GURL& server_url, |
| + const string16& access_token) OVERRIDE { } |
| private: |
| - virtual ~DummyAccessTokenStore() { } |
| - |
| - virtual void SaveAccessToken( |
| - const GURL& server_url, const string16& access_token) OVERRIDE { } |
| + virtual ~AwAccessTokenStore() { } |
| - DISALLOW_COPY_AND_ASSIGN(DummyAccessTokenStore); |
| + DISALLOW_COPY_AND_ASSIGN(AwAccessTokenStore); |
| }; |
| } |
| @@ -284,7 +289,7 @@ net::NetLog* AwContentBrowserClient::GetNetLog() { |
| content::AccessTokenStore* AwContentBrowserClient::CreateAccessTokenStore() { |
| // TODO(boliu): Implement as part of geolocation code. |
|
benm (inactive)
2013/02/08 13:25:19
nit: remove this todo now?
Kristian Monsen
2013/02/12 18:53:03
Done.
|
| - return new DummyAccessTokenStore(); |
| + return new AwAccessTokenStore(); |
| } |
| bool AwContentBrowserClient::IsFastShutdownPossible() { |