Fix microphone button not working from widget on home screen.
When tapping the microphone button on the search widget on the home screen, #isVoiceSearchEnabled would return false because we were trying to get WindowAndroid from the Tab, which doesn't exist in this case. We now rely on getting the WindowAndroid from the LocationBar so the two agree. What happened as a result is that recording metrics would fail almost every startup, if the call to RecordHistogram.record* was called before native was initialized, so CachedMetrics is used now. Bug: 831985 Change-Id: I34c4dbe46afd42c1d793e737a48c45dc3430701d Reviewed-on: https://chromium-review.googlesource.com/1010772 Commit-Queue: Troy Hildebrandt <thildebr@chromium.org> Reviewed-by:Maria Khomenko <mariakhomenko@chromium.org> Cr-Commit-Position: refs/heads/master@{#550353}
Showing
Please register or sign in to comment