sensors: Make SensorProviderProxy supplement Document, not LocalFrame
Supplementing LocalFrame causes the same SensorProviderProxy to be used across navigations, and so is the connection to the actual sensor provider via mojo. Making SensorProviderProxy supplement Document also helps with testing: as described in the related bug, running a manual test (which does not use sensor mocks) and then a regular test causes the latter to fail because we never establish a connection to the mock we need, but rather try to use an actual sensor that is not present. Bug: 861675 Change-Id: Ic3d2ea42f5b4654ba5ef42b6ad757a49d3e5ef08 Reviewed-on: https://chromium-review.googlesource.com/1160161Reviewed-by:Reilly Grant <reillyg@chromium.org> Reviewed-by:
Kentaro Hara <haraken@chromium.org> Commit-Queue: Raphael Kubo da Costa (CET) <raphael.kubo.da.costa@intel.com> Cr-Commit-Position: refs/heads/master@{#589514}
Showing
Please register or sign in to comment