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

Unified Diff: content/browser/service_manager/common_browser_interfaces.cc

Issue 2975683002: Add GeolocationManager service (Closed)
Patch Set: Fix Windows dll-interface problem Created 3 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
Index: content/browser/service_manager/common_browser_interfaces.cc
diff --git a/content/browser/service_manager/common_browser_interfaces.cc b/content/browser/service_manager/common_browser_interfaces.cc
index c88fd30655ebbc29622ba24874ffaf7c9adc36bd..886e08fd74349f0f9a57b31f2b7c6bba94fe5b4b 100644
--- a/content/browser/service_manager/common_browser_interfaces.cc
+++ b/content/browser/service_manager/common_browser_interfaces.cc
@@ -15,6 +15,7 @@
#include "content/browser/browser_main_loop.h"
#include "content/public/common/connection_filter.h"
#include "content/public/common/service_manager_connection.h"
+#include "device/geolocation/geolocation_manager.h"
#include "mojo/public/cpp/bindings/interface_request.h"
#include "services/resource_coordinator/memory_instrumentation/coordinator_impl.h"
#include "services/service_manager/public/cpp/binder_registry.h"
@@ -81,6 +82,8 @@ class ConnectionFilterImpl : public ConnectionFilter {
void RegisterMainThreadInterface(const InterfaceBinder<Interface>& binder) {
registry_.AddInterface(base::Bind(&BindOnTaskRunner<Interface>,
main_thread_task_runner_, binder));
+
+ registry_.AddInterface(base::Bind(&device::GeolocationManager::Create));
}
const scoped_refptr<base::TaskRunner> main_thread_task_runner_;

Powered by Google App Engine
This is Rietveld 408576698