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

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 2468283003: Revert of [sensors] Ambient light sensor implementation for ChromeOS and Linux. (Closed)
Patch Set: Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | device/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/frame_host/render_frame_host_impl.h" 5 #include "content/browser/frame_host/render_frame_host_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 2194 matching lines...) Expand 10 before | Expand all | Expand 10 after
2205 base::Bind(&WebSocketManager::CreateWebSocket, 2205 base::Bind(&WebSocketManager::CreateWebSocket,
2206 process_->GetID(), 2206 process_->GetID(),
2207 routing_id_)); 2207 routing_id_));
2208 2208
2209 #if defined(ENABLE_WEBVR) 2209 #if defined(ENABLE_WEBVR)
2210 GetInterfaceRegistry()->AddInterface<device::VRService>( 2210 GetInterfaceRegistry()->AddInterface<device::VRService>(
2211 base::Bind(&device::VRServiceImpl::BindRequest)); 2211 base::Bind(&device::VRServiceImpl::BindRequest));
2212 #endif 2212 #endif
2213 if (base::FeatureList::IsEnabled(features::kGenericSensor)) { 2213 if (base::FeatureList::IsEnabled(features::kGenericSensor)) {
2214 GetInterfaceRegistry()->AddInterface( 2214 GetInterfaceRegistry()->AddInterface(
2215 base::Bind(&device::SensorProviderImpl::Create, 2215 base::Bind(&device::SensorProviderImpl::Create),
2216 BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE)),
2217 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO)); 2216 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO));
2218 } 2217 }
2219 2218
2220 #if defined(ENABLE_WEBRTC) 2219 #if defined(ENABLE_WEBRTC)
2221 // BrowserMainLoop::GetInstance() may be null on unit tests. 2220 // BrowserMainLoop::GetInstance() may be null on unit tests.
2222 if (BrowserMainLoop::GetInstance()) { 2221 if (BrowserMainLoop::GetInstance()) {
2223 // BrowserMainLoop, which owns MediaStreamManager, is alive for the lifetime 2222 // BrowserMainLoop, which owns MediaStreamManager, is alive for the lifetime
2224 // of Mojo communication (see BrowserMainLoop::ShutdownThreadsAndCleanUp(), 2223 // of Mojo communication (see BrowserMainLoop::ShutdownThreadsAndCleanUp(),
2225 // which shuts down Mojo). Hence, passing that MediaStreamManager instance 2224 // which shuts down Mojo). Hence, passing that MediaStreamManager instance
2226 // as a raw pointer here is safe. 2225 // as a raw pointer here is safe.
(...skipping 957 matching lines...) Expand 10 before | Expand all | Expand 10 after
3184 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind( 3183 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind(
3185 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this))); 3184 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this)));
3186 return web_bluetooth_service_.get(); 3185 return web_bluetooth_service_.get();
3187 } 3186 }
3188 3187
3189 void RenderFrameHostImpl::DeleteWebBluetoothService() { 3188 void RenderFrameHostImpl::DeleteWebBluetoothService() {
3190 web_bluetooth_service_.reset(); 3189 web_bluetooth_service_.reset();
3191 } 3190 }
3192 3191
3193 } // namespace content 3192 } // namespace content
OLDNEW
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | device/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698