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

Unified Diff: chromecast/browser/cast_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 | « chromecast/browser/cast_content_browser_client.h ('k') | content/browser/browser_main_loop.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/browser/cast_content_browser_client.cc
diff --git a/chromecast/browser/cast_content_browser_client.cc b/chromecast/browser/cast_content_browser_client.cc
index 4b3665c30cb68482143c551e099199f762d9cb0f..26f62c70b1e05cf489407e5fa6586174597fdfc3 100644
--- a/chromecast/browser/cast_content_browser_client.cc
+++ b/chromecast/browser/cast_content_browser_client.cc
@@ -28,7 +28,6 @@
#include "chromecast/browser/cast_network_delegate.h"
#include "chromecast/browser/cast_quota_permission_context.h"
#include "chromecast/browser/cast_resource_dispatcher_host_delegate.h"
-#include "chromecast/browser/geolocation/cast_access_token_store.h"
#include "chromecast/browser/media/cma_message_filter_host.h"
#include "chromecast/browser/service/cast_service_simple.h"
#include "chromecast/browser/url_request_context_factory.h"
@@ -42,7 +41,6 @@
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/certificate_request_result_type.h"
#include "content/public/browser/client_certificate_delegate.h"
-#include "content/public/browser/geolocation_delegate.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/resource_dispatcher_host.h"
#include "content/public/browser/web_contents.h"
@@ -89,22 +87,6 @@ static std::unique_ptr<::shell::Service> CreateMojoMediaApplication(
}
#endif // defined(ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS)
-// A provider of services for Geolocation.
-class CastGeolocationDelegate : public content::GeolocationDelegate {
- public:
- explicit CastGeolocationDelegate(CastBrowserContext* context)
- : context_(context) {}
-
- scoped_refptr<content::AccessTokenStore> CreateAccessTokenStore() override {
- return new CastAccessTokenStore(context_);
- }
-
- private:
- CastBrowserContext* context_;
-
- DISALLOW_COPY_AND_ASSIGN(CastGeolocationDelegate);
-};
-
} // namespace
CastContentBrowserClient::CastContentBrowserClient()
@@ -303,12 +285,6 @@ void CastContentBrowserClient::AppendExtraCommandLineSwitches(
AppendExtraCommandLineSwitches(command_line);
}
-content::GeolocationDelegate*
-CastContentBrowserClient::CreateGeolocationDelegate() {
- return new CastGeolocationDelegate(
- CastBrowserProcess::GetInstance()->browser_context());
-}
-
void CastContentBrowserClient::OverrideWebkitPrefs(
content::RenderViewHost* render_view_host,
content::WebPreferences* prefs) {
« no previous file with comments | « chromecast/browser/cast_content_browser_client.h ('k') | content/browser/browser_main_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698