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

Unified Diff: content/shell/browser/shell_browser_main_parts.cc

Issue 2192683003: Revert of Reland: Geolocation: move from content/browser to device/ (patchset #2 id:20001 of https:… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2810
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/shell/browser/shell_access_token_store.h ('k') | content/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/browser/shell_browser_main_parts.cc
diff --git a/content/shell/browser/shell_browser_main_parts.cc b/content/shell/browser/shell_browser_main_parts.cc
index ae1f590c1c146493f6d7103847874c94197915c8..6e541e254200c385614ebfaeb0c9ebc7d19f114d 100644
--- a/content/shell/browser/shell_browser_main_parts.cc
+++ b/content/shell/browser/shell_browser_main_parts.cc
@@ -15,6 +15,8 @@
#include "build/build_config.h"
#include "components/devtools_http_handler/devtools_http_handler.h"
#include "content/public/browser/browser_thread.h"
+#include "content/public/browser/geolocation_delegate.h"
+#include "content/public/browser/geolocation_provider.h"
#include "content/public/browser/storage_partition.h"
#include "content/public/common/content_switches.h"
#include "content/public/common/main_function_params.h"
@@ -26,8 +28,6 @@
#include "content/shell/browser/shell_net_log.h"
#include "content/shell/common/shell_switches.h"
#include "device/bluetooth/bluetooth_adapter_factory.h"
-#include "device/geolocation/geolocation_delegate.h"
-#include "device/geolocation/geolocation_provider.h"
#include "net/base/filename_util.h"
#include "net/base/net_module.h"
#include "net/grit/net_resources.h"
@@ -59,12 +59,12 @@ namespace content {
namespace {
// A provider of services for Geolocation.
-class ShellGeolocationDelegate : public device::GeolocationDelegate {
+class ShellGeolocationDelegate : public content::GeolocationDelegate {
public:
explicit ShellGeolocationDelegate(ShellBrowserContext* context)
: context_(context) {}
- scoped_refptr<device::AccessTokenStore> CreateAccessTokenStore() final {
+ scoped_refptr<content::AccessTokenStore> CreateAccessTokenStore() final {
return new ShellAccessTokenStore(context_);
}
@@ -183,7 +183,7 @@ int ShellBrowserMainParts::PreCreateThreads() {
void ShellBrowserMainParts::PreMainMessageLoopRun() {
net_log_.reset(new ShellNetLog("content_shell"));
InitializeBrowserContexts();
- device::GeolocationProvider::SetGeolocationDelegate(
+ content::GeolocationProvider::SetGeolocationDelegate(
new ShellGeolocationDelegate(browser_context()));
Shell::Initialize();
net::NetModule::SetResourceProvider(PlatformResourceProvider);
« no previous file with comments | « content/shell/browser/shell_access_token_store.h ('k') | content/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698