Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(352)

Side by Side Diff: content/shell/browser/shell_content_browser_client.cc

Issue 2129313002: Geolocation cleanup: corrects uses of content::AccessTokenStore* and net::URLRequestContextGetter* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed StartTestStepFromClientThread() Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/public/browser/geolocation_delegate.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/shell/browser/shell_content_browser_client.h" 5 #include "content/shell/browser/shell_content_browser_client.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/base_switches.h" 10 #include "base/base_switches.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 return -1; 118 return -1;
119 } 119 }
120 #endif // defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID) 120 #endif // defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
121 121
122 // A provider of services for Geolocation. 122 // A provider of services for Geolocation.
123 class ShellGeolocationDelegate : public content::GeolocationDelegate { 123 class ShellGeolocationDelegate : public content::GeolocationDelegate {
124 public: 124 public:
125 explicit ShellGeolocationDelegate(ShellBrowserContext* context) 125 explicit ShellGeolocationDelegate(ShellBrowserContext* context)
126 : context_(context) {} 126 : context_(context) {}
127 127
128 AccessTokenStore* CreateAccessTokenStore() final { 128 scoped_refptr<AccessTokenStore> CreateAccessTokenStore() final {
129 return new ShellAccessTokenStore(context_); 129 return new ShellAccessTokenStore(context_);
130 } 130 }
131 131
132 private: 132 private:
133 ShellBrowserContext* context_; 133 ShellBrowserContext* context_;
134 134
135 DISALLOW_COPY_AND_ASSIGN(ShellGeolocationDelegate); 135 DISALLOW_COPY_AND_ASSIGN(ShellGeolocationDelegate);
136 }; 136 };
137 137
138 } // namespace 138 } // namespace
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 ShellBrowserContext* 368 ShellBrowserContext*
369 ShellContentBrowserClient::off_the_record_browser_context() { 369 ShellContentBrowserClient::off_the_record_browser_context() {
370 return shell_browser_main_parts_->off_the_record_browser_context(); 370 return shell_browser_main_parts_->off_the_record_browser_context();
371 } 371 }
372 372
373 GeolocationDelegate* ShellContentBrowserClient::CreateGeolocationDelegate() { 373 GeolocationDelegate* ShellContentBrowserClient::CreateGeolocationDelegate() {
374 return new ShellGeolocationDelegate(browser_context()); 374 return new ShellGeolocationDelegate(browser_context());
375 } 375 }
376 376
377 } // namespace content 377 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/geolocation_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698