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

Issue 10830173: JavaBridge should use Annotation (Closed)

Created:
8 years, 4 months ago by David Trainor- moved to gerrit
Modified:
8 years, 4 months ago
Reviewers:
palmer, joth, Steve Block, Yaron, gone
CC:
chromium-reviews, hashimoto+watch_chromium.org, aboxhall+watch_chromium.org, yoshiki+watch_chromium.org, jam, yuzo+watch_chromium.org, davidbarr+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, ctguil+watch_chromium.org, zork+watch_chromium.org
Visibility:
Public.

Description

JavaBridge should use Annotation Use an annotation to check whether or not a method should be exposed to JavaScript. This is better than relying on inheritence to determine whether or not to expose a method. BUG=http://b/6910450 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=150406

Patch Set 1 #

Total comments: 33

Patch Set 2 : Make suggested changes #

Total comments: 1

Patch Set 3 : Update comment based on nit. #

Total comments: 1

Patch Set 4 : Move register method to class #

Patch Set 5 : Add new line before private #

Messages

Total messages: 15 (0 generated)
David Trainor- moved to gerrit
ptal
8 years, 4 months ago (2012-08-04 00:17:13 UTC) #1
gone
LGTM, but there's some syntax I'm not super-familiar with.
8 years, 4 months ago (2012-08-04 01:21:27 UTC) #2
joth
+palmer Thanks for adding this, most just some readability suggestions from me. https://chromiumcodereview.appspot.com/10830173/diff/1/content/browser/renderer_host/java/java_bound_object.cc File content/browser/renderer_host/java/java_bound_object.cc ...
8 years, 4 months ago (2012-08-04 20:38:28 UTC) #3
Steve Block
https://chromiumcodereview.appspot.com/10830173/diff/1/content/browser/android/content_view_core_impl.h File content/browser/android/content_view_core_impl.h (right): https://chromiumcodereview.appspot.com/10830173/diff/1/content/browser/android/content_view_core_impl.h#newcode120 content/browser/android/content_view_core_impl.h:120: jboolean require_safe_annotation); Bit of a nit, but referring to ...
8 years, 4 months ago (2012-08-06 12:12:30 UTC) #4
joth
https://chromiumcodereview.appspot.com/10830173/diff/1/content/browser/renderer_host/java/java_bound_object.cc File content/browser/renderer_host/java/java_bound_object.cc (right): https://chromiumcodereview.appspot.com/10830173/diff/1/content/browser/renderer_host/java/java_bound_object.cc#newcode39 content/browser/renderer_host/java/java_bound_object.cc:39: // use different annotations. On 2012/08/06 12:12:30, Steve Block ...
8 years, 4 months ago (2012-08-06 15:59:31 UTC) #5
palmer
lgtm LGTM https://chromiumcodereview.appspot.com/10830173/diff/1/content/browser/android/content_view_core_impl.h File content/browser/android/content_view_core_impl.h (right): https://chromiumcodereview.appspot.com/10830173/diff/1/content/browser/android/content_view_core_impl.h#newcode120 content/browser/android/content_view_core_impl.h:120: jboolean require_safe_annotation); +1; I'd call it |require_annotations|. ...
8 years, 4 months ago (2012-08-06 17:31:26 UTC) #6
David Trainor- moved to gerrit
Let me know if this addresses your comments/concerns. Thanks! https://chromiumcodereview.appspot.com/10830173/diff/1/content/browser/android/content_view_core_impl.h File content/browser/android/content_view_core_impl.h (right): https://chromiumcodereview.appspot.com/10830173/diff/1/content/browser/android/content_view_core_impl.h#newcode120 content/browser/android/content_view_core_impl.h:120: ...
8 years, 4 months ago (2012-08-06 23:42:32 UTC) #7
joth
lgtm https://chromiumcodereview.appspot.com/10830173/diff/9001/content/browser/renderer_host/java/java_bound_object.h File content/browser/renderer_host/java/java_bound_object.h (right): https://chromiumcodereview.appspot.com/10830173/diff/9001/content/browser/renderer_host/java/java_bound_object.h#newcode27 content/browser/renderer_host/java/java_bound_object.h:27: // require_annotation flag specifies whether or not only ...
8 years, 4 months ago (2012-08-06 23:54:16 UTC) #8
Steve Block
lgtm thanks!
8 years, 4 months ago (2012-08-07 10:22:50 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dtrainor@chromium.org/10830173/12001
8 years, 4 months ago (2012-08-07 17:58:01 UTC) #10
commit-bot: I haz the power
Presubmit check for 10830173-12001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 4 months ago (2012-08-07 17:58:06 UTC) #11
David Trainor- moved to gerrit
Yaron: Can I get an owners LGTM? Thanks!
8 years, 4 months ago (2012-08-07 18:01:49 UTC) #12
Yaron
lgtm https://chromiumcodereview.appspot.com/10830173/diff/12001/content/browser/renderer_host/java/java_bound_object.h File content/browser/renderer_host/java/java_bound_object.h (right): https://chromiumcodereview.appspot.com/10830173/diff/12001/content/browser/renderer_host/java/java_bound_object.h#newcode69 content/browser/renderer_host/java/java_bound_object.h:69: bool RegisterJavaBoundObject(JNIEnv* env); Nit: make this a static ...
8 years, 4 months ago (2012-08-07 18:12:35 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dtrainor@chromium.org/10830173/5007
8 years, 4 months ago (2012-08-07 18:42:39 UTC) #14
commit-bot: I haz the power
8 years, 4 months ago (2012-08-07 21:12:03 UTC) #15
Change committed as 150406

Powered by Google App Engine
This is Rietveld 408576698