commit | c8c23733cfb99f7360d6c660402313490107dcf9 | [log] [tgz] |
---|---|---|
author | Tibor Goldschwendt <tiborg@chromium.org> | Fri Jul 13 20:03:37 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Jul 13 20:03:37 2018 |
tree | 5d1ea958fec599582ab6bbc166ae38d14dcfd030 | |
parent | 2a578d4484584a4b6eff0e66ce1dbf449229e1e5 [diff] |
[vr] Register VR assets component from native If running component updates in a background task we won't instantiate an activity. As a consequence we won't register the VR assets component and never get updates for it in the background. To solve this, register the component in native. The component gets only registered if the user has a Daydream headset paired. Checking this is expensive. Thus, we save whether the component should be registered in user preferences. At Chrome startup (which may happen when running an update task in the background) read this flag and conditionally register the component. Reading the flag took less than 1 ms in my tests. Change-Id: I1e9d0f6caab094307f8f3397c913cc1b7431d8fa Reviewed-on: https://chromium-review.googlesource.com/1132147 Reviewed-by: Lei Zhang <thestig@chromium.org> Reviewed-by: Tommy Nyquist <nyquist@chromium.org> Reviewed-by: Joshua Pawlicki <waffles@chromium.org> Commit-Queue: Tibor Goldschwendt <tiborg@chromium.org> Cr-Commit-Position: refs/heads/master@{#575038}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .