forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AW] lookup resource id in AndroidProtocolHandler using getIdentifier
Use android.content.res.Resources#getIdentifier to lookup app resource id and fall back to class look up by reflection if it fails. Looking up resources this way may help fixing this long standing bug b/37102241. This also record a boolean histogram to track lookup success and failure. Bug: 923956, b/37102241 Test: Build an app with gradle and applicationId and test load a resource file in WebView Change-Id: Id42935b763f52572e184ba8564eb95f38df63171 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2288556 Commit-Queue: Hazem Ashmawy <hazems@chromium.org> Reviewed-by: Brian White <bcwhite@chromium.org> Reviewed-by: Changwan Ryu <changwan@chromium.org> Cr-Commit-Position: refs/heads/master@{#787495}
- Loading branch information
1 parent
4b71ef9
commit 7f46ee7
Showing
2 changed files
with
27 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters