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 a717f12c64fb5fc5c27e16f6ba7352f6236caedc..4b42c2c818ad19766a2e9635a2e69d394a525749 100644 |
| --- a/android_webview/browser/aw_content_browser_client.cc |
| +++ b/android_webview/browser/aw_content_browser_client.cc |
| @@ -160,6 +160,14 @@ class AwAccessTokenStore : public content::AccessTokenStore { |
| DISALLOW_COPY_AND_ASSIGN(AwAccessTokenStore); |
| }; |
| +// A provider of Geolocation services to override AccessTokenStore. |
| +class AwGeolocationDelegate : public content::GeolocationProvider::Delegate { |
|
Michael van Ouwerkerk
2016/06/28 11:17:07
nit: add DISALLOW_COPY_AND_ASSIGN
mcasas
2016/06/28 16:51:25
Done.
|
| + public: |
| + content::AccessTokenStore* CreateAccessTokenStore() final { |
| + return new AwAccessTokenStore(); |
| + } |
| +}; |
| + |
| AwLocaleManager* g_locale_manager = NULL; |
| } // anonymous namespace |
| @@ -428,8 +436,9 @@ net::NetLog* AwContentBrowserClient::GetNetLog() { |
| return browser_context_->GetAwURLRequestContext()->GetNetLog(); |
| } |
| -content::AccessTokenStore* AwContentBrowserClient::CreateAccessTokenStore() { |
| - return new AwAccessTokenStore(); |
| +content::GeolocationProvider::Delegate* |
| +AwContentBrowserClient::CreateGeolocationDelegate() { |
| + return new AwGeolocationDelegate(); |
| } |
| bool AwContentBrowserClient::IsFastShutdownPossible() { |