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

Unified Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 2698083007: Port device_generic_sensor to be hosted in Device Service. (Closed)
Patch Set: code rebase Created 3 years, 8 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 | « content/browser/BUILD.gn ('k') | content/child/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/render_frame_host_impl.cc
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
index 260b7da66bc036c94f40882800a84f7a8d40f3e1..55d6a08eced5a705888db727291502979b46785e 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -95,7 +95,6 @@
#include "content/public/common/service_names.mojom.h"
#include "content/public/common/url_constants.h"
#include "content/public/common/url_utils.h"
-#include "device/generic_sensor/sensor_provider_impl.h"
#include "device/geolocation/geolocation_service_context.h"
#include "device/vr/features.h"
#include "device/wake_lock/public/interfaces/wake_lock_context.mojom.h"
@@ -2513,13 +2512,6 @@ void RenderFrameHostImpl::RegisterMojoInterfaces() {
base::Bind(&IgnoreInterfaceRequest<device::mojom::VRService>));
#endif
- if (base::FeatureList::IsEnabled(features::kGenericSensor)) {
- GetInterfaceRegistry()->AddInterface(
- base::Bind(&device::SensorProviderImpl::Create,
- BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE)),
- BrowserThread::GetTaskRunnerForThread(BrowserThread::IO));
- }
-
#if BUILDFLAG(ENABLE_WEBRTC)
// BrowserMainLoop::GetInstance() may be null on unit tests.
if (BrowserMainLoop::GetInstance()) {
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/child/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698