| Index: content/shell/browser/shell_content_browser_client.cc
|
| diff --git a/content/shell/browser/shell_content_browser_client.cc b/content/shell/browser/shell_content_browser_client.cc
|
| index 13210702545de8838a543faf6605534b0a50fa2b..cd344a499c4de9e0fd39325aaa1e5707513b865b 100644
|
| --- a/content/shell/browser/shell_content_browser_client.cc
|
| +++ b/content/shell/browser/shell_content_browser_client.cc
|
| @@ -122,16 +122,14 @@ int GetCrashSignalFD(const base::CommandLine& command_line) {
|
| // A provider of services for Geolocation.
|
| class ShellGeolocationDelegate : public content::GeolocationDelegate {
|
| public:
|
| - explicit ShellGeolocationDelegate(ShellBrowserContext* context)
|
| - : context_(context) {}
|
| + ShellGeolocationDelegate() {}
|
|
|
| scoped_refptr<AccessTokenStore> CreateAccessTokenStore() final {
|
| - return new ShellAccessTokenStore(context_);
|
| + return new ShellAccessTokenStore(
|
| + ShellContentBrowserClient::Get()->browser_context());
|
| }
|
|
|
| private:
|
| - ShellBrowserContext* context_;
|
| -
|
| DISALLOW_COPY_AND_ASSIGN(ShellGeolocationDelegate);
|
| };
|
|
|
| @@ -371,7 +369,7 @@ ShellBrowserContext*
|
| }
|
|
|
| GeolocationDelegate* ShellContentBrowserClient::CreateGeolocationDelegate() {
|
| - return new ShellGeolocationDelegate(browser_context());
|
| + return new ShellGeolocationDelegate();
|
| }
|
|
|
| } // namespace content
|
|
|