Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Issue 1263333003: [Android] Avoid unnecessary JNI calls for empty string conversions (Closed)

Created:
5 years, 4 months ago by jdduke (slow)
Modified:
5 years, 4 months ago
Reviewers:
nyquist
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[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 Committed: https://crrev.com/e1f14701408e9174a4cd5251106ddd8a00d25f87 Cr-Commit-Position: refs/heads/master@{#341782}

Patch Set 1 #

Patch Set 2 : Test #

Total comments: 2

Patch Set 3 : Check exceptions... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -2 lines) Patch
M base/android/jni_string.cc View 1 2 2 chunks +14 lines, -2 lines 0 comments Download
M base/android/jni_string_unittest.cc View 1 2 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
jdduke (slow)
nyquist@: PTAL, thanks. I was thinking of ways we could consolidate logic between UTF8/UTF16 here ...
5 years, 4 months ago (2015-08-04 17:57:52 UTC) #2
nyquist
https://codereview.chromium.org/1263333003/diff/20001/base/android/jni_string.cc File base/android/jni_string.cc (right): https://codereview.chromium.org/1263333003/diff/20001/base/android/jni_string.cc#newcode35 base/android/jni_string.cc:35: return; Do we need CheckException(env) here, since we're using ...
5 years, 4 months ago (2015-08-04 18:05:30 UTC) #3
jdduke (slow)
https://codereview.chromium.org/1263333003/diff/20001/base/android/jni_string.cc File base/android/jni_string.cc (right): https://codereview.chromium.org/1263333003/diff/20001/base/android/jni_string.cc#newcode35 base/android/jni_string.cc:35: return; On 2015/08/04 18:05:29, nyquist wrote: > Do we ...
5 years, 4 months ago (2015-08-04 18:10:44 UTC) #4
nyquist
lgtm
5 years, 4 months ago (2015-08-04 18:19:43 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1263333003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1263333003/40001
5 years, 4 months ago (2015-08-04 18:19:51 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/104600) cast_shell_android on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 4 months ago (2015-08-04 18:48:56 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1263333003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1263333003/40001
5 years, 4 months ago (2015-08-04 19:08:28 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/88391)
5 years, 4 months ago (2015-08-04 20:10:31 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1263333003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1263333003/40001
5 years, 4 months ago (2015-08-04 20:27:12 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 4 months ago (2015-08-04 20:36:08 UTC) #16
commit-bot: I haz the power
5 years, 4 months ago (2015-08-04 20:39:09 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/e1f14701408e9174a4cd5251106ddd8a00d25f87
Cr-Commit-Position: refs/heads/master@{#341782}

Powered by Google App Engine
This is Rietveld 408576698