[go: up one dir, main page]

Fix UnsatisfiedLinkError caused by early histogram recording.

In cases where Omnibox interaction executes a complete cycle (from highlight to
navigate / close) before native code completes loading, we trip UnsatisfiedLinkError
causing application to crash.
This fix ensures we only attempt to record metrics if we know the Native is initialized.

(cherry picked from commit fe9e3c599fdc176e8ed5f45718aabd3c2a93b952)

BUG: 971626
Change-Id: Ic0ef632d6da993516170b943ae20e5cda427fd94
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1662840
Reviewed-by: Ted Choc <tedchoc@chromium.org>
Commit-Queue: Ender <ender@google.com>
Cr-Original-Commit-Position: refs/heads/master@{#669863}
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1663057
Reviewed-by: Sky Malice <skym@chromium.org>
Cr-Commit-Position: refs/branch-heads/3809@{#413}
Cr-Branched-From: d82dec1a818f378c464ba307ddd9c92133eac355-refs/heads/master@{#665002}
1 file changed