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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2098553002: Geolocation: extract ContentBrowserClient methods specific to Geolocation into a class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changing to ContentBrowserClient::GetGeolocationServiceOverrides and impl'd in the 6 impl's. Unitte… Created 4 years, 6 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
Index: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 672c60fc5b862d1be951c55bf76b6cdf8f92c7b3..d9aad1c8bd8f7aa8b209a5b4bef6aa2467220a81 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -628,6 +628,15 @@ class SafeBrowsingSSLCertReporter : public SSLCertReporter {
safe_browsing_ui_manager_;
};
+// A provider of Geolocation services to override AccessTokenStore.
+class ChromeGeolocationServiceOverrides
+ : public content::GeolocationProvider::ServiceOverrides {
+ public:
+ AccessTokenStore* CreateAccessTokenStore() override {
+ return new ChromeAccessTokenStore();
+ }
+};
+
#if BUILDFLAG(ANDROID_JAVA_UI)
void HandleSingleTabModeBlockOnUIThread(const BlockedWindowParams& params) {
WebContents* web_contents = tab_util::GetWebContentsByFrameID(
@@ -2246,8 +2255,9 @@ net::NetLog* ChromeContentBrowserClient::GetNetLog() {
return g_browser_process->net_log();
}
-AccessTokenStore* ChromeContentBrowserClient::CreateAccessTokenStore() {
- return new ChromeAccessTokenStore();
+content::GeolocationProvider::ServiceOverrides*
+ ChromeContentBrowserClient::GetGeolocationServiceOverrides() {
+ return new ChromeGeolocationServiceOverrides();
}
bool ChromeContentBrowserClient::IsFastShutdownPossible() {

Powered by Google App Engine
This is Rietveld 408576698