[sensor] Fix origin in SensorProviderProxyImpl::CheckPermission()

Origin must be extracted from the URL before it is passed to
GetPermissionStatusForFrame().

Bug: 750018
Change-Id: Iffffbf4ec516cb1a798c3604333a71d3bdac5e9e
Reviewed-on: https://chromium-review.googlesource.com/998160
Reviewed-by: Alexander Shalamov <alexander.shalamov@intel.com>
Commit-Queue: Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com>
Cr-Commit-Position: refs/heads/master@{#548781}
1 file changed