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

Issue 1321423005: Allow ConvertJavaStringTo* to be called with (JNIEnv, JavaRef). (Closed)

Created:
5 years, 3 months ago by Torne
Modified:
5 years, 3 months ago
Reviewers:
rmcilroy
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow ConvertJavaStringTo* to be called with (JNIEnv, JavaRef). Lots of places in the code currently call the two-arg version of ConvertJavaStringTo* with a JNI method parameter, which is now relying on the implicit conversion from JavaParamRef<jstring> to jstring. To avoid this, define a two-arg version that takes a JavaRef as the second parameter. If we have the environment it's more efficient to keep it around rather than change all the callers to the one-arg version, since the one-arg version has to call AttachCurrentThread. BUG=506850 R=rmcilroy@chromium.org Committed: https://crrev.com/8a83d34084503b218968d187aa091ec405423477 Cr-Commit-Position: refs/heads/master@{#348874}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -0 lines) Patch
M base/android/jni_string.h View 2 chunks +4 lines, -0 lines 0 comments Download
M base/android/jni_string.cc View 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
Torne
5 years, 3 months ago (2015-09-08 10:55:51 UTC) #1
rmcilroy
Sorry for the delay - totally missed this somehow. LGTM.
5 years, 3 months ago (2015-09-14 15:31:03 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1321423005/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1321423005/1
5 years, 3 months ago (2015-09-14 16:33:12 UTC) #4
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/97377)
5 years, 3 months ago (2015-09-14 16:56:31 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1321423005/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1321423005/1
5 years, 3 months ago (2015-09-15 11:50:34 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 3 months ago (2015-09-15 12:22:44 UTC) #9
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/8a83d34084503b218968d187aa091ec405423477 Cr-Commit-Position: refs/heads/master@{#348874}
5 years, 3 months ago (2015-09-15 12:23:33 UTC) #10
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 12:44:21 UTC) #11
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/8a83d34084503b218968d187aa091ec405423477
Cr-Commit-Position: refs/heads/master@{#348874}

Powered by Google App Engine
This is Rietveld 408576698