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

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

Issue 2091023006: Adds EngineGeolocationFeature for Blimp Geolocation project. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge 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 | « blimp/engine/BUILD.gn ('k') | blimp/engine/feature/geolocation/blimp_location_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/engine/app/blimp_browser_main_parts.cc
diff --git a/blimp/engine/app/blimp_browser_main_parts.cc b/blimp/engine/app/blimp_browser_main_parts.cc
index d5390e9a9f7815a64a5e9b7be7f1fd6eea95fba6..631993b16d71bad346bade59ae1179d3efc4dfdc 100644
--- a/blimp/engine/app/blimp_browser_main_parts.cc
+++ b/blimp/engine/app/blimp_browser_main_parts.cc
@@ -4,6 +4,8 @@
#include "blimp/engine/app/blimp_browser_main_parts.h"
+#include <utility>
+
#include "base/command_line.h"
#include "base/memory/ptr_util.h"
#include "base/threading/thread_restrictions.h"
@@ -15,8 +17,6 @@
#include "blimp/engine/session/blimp_engine_session.h"
#include "blimp/net/blimp_connection.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/common/main_function_params.h"
#include "net/base/net_module.h"
#include "net/log/net_log.h"
@@ -24,25 +24,6 @@
namespace blimp {
namespace engine {
-namespace {
-// A provider of services needed by Geolocation.
-class BlimpGeolocationDelegate : public content::GeolocationDelegate {
- public:
- BlimpGeolocationDelegate() = default;
-
- bool UseNetworkLocationProviders() final { return false; }
-
- std::unique_ptr<content::LocationProvider> OverrideSystemLocationProvider()
- final {
- return base::WrapUnique(new BlimpLocationProvider());
- }
-
- private:
- DISALLOW_COPY_AND_ASSIGN(BlimpGeolocationDelegate);
-};
-
-} // anonymous namespace
-
BlimpBrowserMainParts::BlimpBrowserMainParts(
const content::MainFunctionParams& parameters) {}
@@ -65,8 +46,6 @@ void BlimpBrowserMainParts::PreMainMessageLoopRun() {
settings_manager_.reset(new SettingsManager);
std::unique_ptr<BlimpBrowserContext> browser_context(
new BlimpBrowserContext(false, net_log_.get()));
- content::GeolocationProvider::SetGeolocationDelegate(
- new BlimpGeolocationDelegate());
engine_session_.reset(
new BlimpEngineSession(std::move(browser_context), net_log_.get(),
engine_config_.get(), settings_manager_.get()));
« no previous file with comments | « blimp/engine/BUILD.gn ('k') | blimp/engine/feature/geolocation/blimp_location_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698