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

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

Issue 2370343002: [sensors] Ambient light sensor implementation for ChromeOS and Linux. (Closed)
Patch Set: change SetTaskRunner to SetFileTaskRunner as per offline discussion with Mikhail Created 4 years, 2 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/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 6cf646955b250812eebeab721dc699202f3fab74..423f3efecde4edd8a574eb2516b966ee21714e49 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -2206,7 +2206,8 @@ void RenderFrameHostImpl::RegisterMojoInterfaces() {
#endif
if (base::FeatureList::IsEnabled(features::kGenericSensor)) {
GetInterfaceRegistry()->AddInterface(
- base::Bind(&device::SensorProviderImpl::Create),
+ base::Bind(&device::SensorProviderImpl::Create,
+ BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE)),
BrowserThread::GetTaskRunnerForThread(BrowserThread::IO));
}

Powered by Google App Engine
This is Rietveld 408576698