commit | e1f14701408e9174a4cd5251106ddd8a00d25f87 | [log] [tgz] |
---|---|---|
author | jdduke <jdduke@chromium.org> | Tue Aug 04 20:35:59 2015 |
committer | Commit bot <commit-bot@chromium.org> | Tue Aug 04 20:38:46 2015 |
tree | ce70b014fc32b46dcaa8a4c52fb77dc3b2be0d53 | |
parent | 8a68e6ae1f1eab523d52c469ecc380c3f50ab0a7 [diff] |
[Android] Avoid unnecessary JNI calls for empty string conversions There's no need to fetch/release the characters for an empty Java string when converting it to native. Shortcut such cases by simply returning an empty C++ string. BUG=457748 NOTRY=true Review URL: https://codereview.chromium.org/1263333003 Cr-Commit-Position: refs/heads/master@{#341782}