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

Unified Diff: blimp/engine/app/blimp_content_browser_client.cc

Issue 2028823002: Refactor to make BlimpLocationProvider accessible to content layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addresses wez's #96 and creis's #95 comments 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: blimp/engine/app/blimp_content_browser_client.cc
diff --git a/blimp/engine/app/blimp_content_browser_client.cc b/blimp/engine/app/blimp_content_browser_client.cc
index 8e88f5dfb6a19a1d6d5362c72bb9d5d37e969921..2aff245312a612e4e803e0fe52906af54de7e3cd 100644
--- a/blimp/engine/app/blimp_content_browser_client.cc
+++ b/blimp/engine/app/blimp_content_browser_client.cc
@@ -5,6 +5,7 @@
#include "blimp/engine/app/blimp_content_browser_client.h"
#include "blimp/engine/app/blimp_browser_main_parts.h"
#include "blimp/engine/app/settings_manager.h"
+#include "blimp/engine/feature/geolocation/blimp_location_provider.h"#include "blimp/engine/feature/geolocation/blimp_location_provider.h"#include "blimp/engine/feature/geolocation/blimp_location_provider.h"
Wez 2016/06/22 18:51:02 This looks messed-up?
CJ 2016/06/22 20:47:29 Oh my. Not sure what happened there. Fixed.
#include "blimp/engine/mojo/blob_channel_service.h"
#include "content/public/common/service_registry.h"
@@ -39,6 +40,18 @@ BlimpBrowserContext* BlimpContentBrowserClient::GetBrowserContext() {
return blimp_browser_main_parts_->GetBrowserContext();
}
+content::LocationProvider*
+BlimpContentBrowserClient::OverrideSystemLocationProvider() {
+ if (!location_provider_) {
+ location_provider_ = base::WrapUnique(new BlimpLocationProvider());
+ }
+ return location_provider_.get();
+}
+
+bool BlimpContentBrowserClient::UseNetworkLocationProviders() {
+ return false;
+}
+
void BlimpContentBrowserClient::RegisterRenderProcessMojoServices(
content::ServiceRegistry* registry) {
registry->AddService<mojom::BlobChannel>(
« no previous file with comments | « blimp/engine/app/blimp_content_browser_client.h ('k') | blimp/engine/feature/geolocation/blimp_location_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698