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

Issue 2534973002: android: JavaRef type behaviour improvements. (Closed)

Created:
4 years ago by Torne
Modified:
4 years ago
Reviewers:
rmcilroy
CC:
chromium-reviews, vmpstr+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

android: JavaRef type behaviour improvements. Several improvements to the behaviour of JavaRef types: 1) Make JavaRef's default constructor public. You can get a null JavaRef by conversion from nullptr_t already, so default-constructing one seems fine too. 2) Replace templating on a second generic type U with simply JavaRef<T>. All existing usage works fine with this; it simplifies the implementation and creates fewer ambiguities. 3) Add comments to ScopedJavaLocalRef about the behaviour of the constructor and Reset() overloads that take (JNIEnv*, T) as parameters, as the current behaviour is confusing but can't yet be changed. BUG=519562 Committed: https://crrev.com/7588d910ee25079d1d5687cd3b6c9a39738d84c1 Cr-Commit-Position: refs/heads/master@{#435210}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -37 lines) Patch
M base/android/scoped_java_ref.h View 7 chunks +21 lines, -37 lines 0 comments Download

Messages

Total messages: 13 (6 generated)
Torne
Some misc cleanups I did while thinking about whether to add more combinations of constructor ...
4 years ago (2016-11-28 17:15:26 UTC) #2
rmcilroy
lgtm
4 years ago (2016-11-29 12:16:26 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2534973002/1
4 years ago (2016-11-29 12:32:06 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/189050)
4 years ago (2016-11-29 13:56:15 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2534973002/1
4 years ago (2016-11-30 10:11:07 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-11-30 10:55:54 UTC) #11
commit-bot: I haz the power
4 years ago (2016-11-30 10:58:47 UTC) #13
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/7588d910ee25079d1d5687cd3b6c9a39738d84c1
Cr-Commit-Position: refs/heads/master@{#435210}

Powered by Google App Engine
This is Rietveld 408576698