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

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

Issue 2174613002: Geolocation: move creation of the GeolocationDelegate to the embedders (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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_content_browser_client.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2587b1e4ba0da6790891220056b75662d47baf0b..2f522b40a170f9f3114f70b9f8ebe073237fdd0c 100644
--- a/content/shell/browser/shell_content_browser_client.cc
+++ b/content/shell/browser/shell_content_browser_client.cc
@@ -17,7 +17,6 @@
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
#include "content/public/browser/client_certificate_delegate.h"
-#include "content/public/browser/geolocation_delegate.h"
#include "content/public/browser/page_navigator.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/resource_dispatcher_host.h"
@@ -27,7 +26,6 @@
#include "content/public/common/web_preferences.h"
#include "content/public/test/test_mojo_app.h"
#include "content/shell/browser/shell.h"
-#include "content/shell/browser/shell_access_token_store.h"
#include "content/shell/browser/shell_browser_context.h"
#include "content/shell/browser/shell_browser_main_parts.h"
#include "content/shell/browser/shell_devtools_manager_delegate.h"
@@ -119,20 +117,6 @@ int GetCrashSignalFD(const base::CommandLine& command_line) {
}
#endif // defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
-// A provider of services for Geolocation.
-class ShellGeolocationDelegate : public content::GeolocationDelegate {
- public:
- ShellGeolocationDelegate() {}
-
- scoped_refptr<AccessTokenStore> CreateAccessTokenStore() final {
- return new ShellAccessTokenStore(
- ShellContentBrowserClient::Get()->browser_context());
- }
-
- private:
- DISALLOW_COPY_AND_ASSIGN(ShellGeolocationDelegate);
-};
-
} // namespace
ShellContentBrowserClient* ShellContentBrowserClient::Get() {
@@ -364,8 +348,4 @@ ShellBrowserContext*
return shell_browser_main_parts_->off_the_record_browser_context();
}
-GeolocationDelegate* ShellContentBrowserClient::CreateGeolocationDelegate() {
- return new ShellGeolocationDelegate();
-}
-
} // namespace content
« no previous file with comments | « content/shell/browser/shell_content_browser_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698