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

Issue 11788005: Switch Android code to use ExecuteJavascriptInWebFrameCallbackResult. (Closed)

Created:
7 years, 11 months ago by Avi (use Gerrit)
Modified:
7 years, 11 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, android-webview-reviews_chromium.org, nilesh
Visibility:
Public.

Description

Switch Android code to use ExecuteJavascriptInWebFrameCallbackResult. BUG=168169 TEST=should all pass Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175489 Reverted: https://src.chromium.org/viewvc/chrome?view=rev&revision=175491 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=176773

Patch Set 1 #

Patch Set 2 : new way #

Patch Set 3 : new approach with Messages #

Total comments: 11

Patch Set 4 : will it blend? #

Patch Set 5 : no header no cry #

Patch Set 6 : the findbugs the #

Total comments: 10

Patch Set 7 : todo #

Patch Set 8 : missed an override #

Patch Set 9 : fix #

Patch Set 10 : tweaky #

Total comments: 4

Patch Set 11 : tweaks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -109 lines) Patch
M android_webview/javatests/src/org/chromium/android_webview/test/TestAwContentsClient.java View 1 2 1 chunk +0 lines, -6 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/util/JSUtils.java View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/android/content_view_core_impl.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -1 line 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 4 5 6 7 8 9 5 chunks +37 lines, -36 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentView.java View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -8 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewClient.java View 1 2 1 chunk +0 lines, -9 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 2 3 4 5 6 7 8 9 10 3 chunks +20 lines, -10 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/accessibility/AccessibilityInjector.java View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/accessibility/JellyBeanAccessibilityInjector.java View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TestCallbackHelperContainer.java View 1 2 3 4 5 6 7 8 4 chunks +13 lines, -20 lines 0 comments Download
M content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TestContentViewClient.java View 1 2 3 1 chunk +2 lines, -7 lines 0 comments Download
M content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TestContentViewClientWrapper.java View 1 2 3 4 5 6 7 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
joth
Nice :-) https://codereview.chromium.org/11788005/diff/3009/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/11788005/diff/3009/content/browser/android/content_view_core_impl.cc#newcode1226 content/browser/android/content_view_core_impl.cc:1226: base::Unretained(this), make JavaScriptResultCallback into a static (e.g. ...
7 years, 11 months ago (2013-01-05 00:54:42 UTC) #1
Avi (use Gerrit)
I uploaded this snapshot as a 'work in progress', so you caught a few broken ...
7 years, 11 months ago (2013-01-05 01:03:34 UTC) #2
Avi (use Gerrit)
https://codereview.chromium.org/11788005/diff/3009/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java File content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java (right): https://codereview.chromium.org/11788005/diff/3009/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#newcode2501 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:2501: private native void nativeEvaluateJavaScript(String script, Message message); That was ...
7 years, 11 months ago (2013-01-05 01:05:47 UTC) #3
Avi (use Gerrit)
For future reference, I'm getting errors in FindBugs: -------------------------------------------------------------------------------- H C BC: Impossible cast from ...
7 years, 11 months ago (2013-01-05 20:47:49 UTC) #4
Avi (use Gerrit)
Woot! To Jonathan for review since he so aggressively grabbed it, Nilesh FYI. https://codereview.chromium.org/11788005/diff/12003/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java File ...
7 years, 11 months ago (2013-01-05 21:57:08 UTC) #5
mkosiba (inactive)
Me like too. https://codereview.chromium.org/11788005/diff/12003/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TestCallbackHelperContainer.java File content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TestCallbackHelperContainer.java (right): https://codereview.chromium.org/11788005/diff/12003/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TestCallbackHelperContainer.java#newcode96 content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TestCallbackHelperContainer.java:96: Message message = Message.obtain(new Handler() { ...
7 years, 11 months ago (2013-01-07 10:42:09 UTC) #6
Avi (use Gerrit)
Thanks! As I mentioned to joth in email, there's probably more cleanup to do here. ...
7 years, 11 months ago (2013-01-07 15:10:26 UTC) #7
mkosiba (inactive)
It shouldn't be too hard to get rid of it - there are only few ...
7 years, 11 months ago (2013-01-07 15:37:11 UTC) #8
nilesh
https://codereview.chromium.org/11788005/diff/12003/content/public/android/java/src/org/chromium/content/browser/ContentView.java File content/public/android/java/src/org/chromium/content/browser/ContentView.java (right): https://codereview.chromium.org/11788005/diff/12003/content/public/android/java/src/org/chromium/content/browser/ContentView.java#newcode428 content/public/android/java/src/org/chromium/content/browser/ContentView.java:428: * TODO(nileshagrawal): Remove this method from the public interface. ...
7 years, 11 months ago (2013-01-07 18:46:03 UTC) #9
Avi (use Gerrit)
https://codereview.chromium.org/11788005/diff/12003/content/public/android/java/src/org/chromium/content/browser/ContentView.java File content/public/android/java/src/org/chromium/content/browser/ContentView.java (right): https://codereview.chromium.org/11788005/diff/12003/content/public/android/java/src/org/chromium/content/browser/ContentView.java#newcode428 content/public/android/java/src/org/chromium/content/browser/ContentView.java:428: * TODO(nileshagrawal): Remove this method from the public interface. ...
7 years, 11 months ago (2013-01-07 18:50:53 UTC) #10
joth
lgtm https://codereview.chromium.org/11788005/diff/12003/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java File content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java (right): https://codereview.chromium.org/11788005/diff/12003/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#newcode1055 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:1055: * result will be json encoded in the ...
7 years, 11 months ago (2013-01-07 19:43:27 UTC) #11
Avi (use Gerrit)
The notification is coming back on the main thread, so base::android::AttachCurrentThread() should get that, and ...
7 years, 11 months ago (2013-01-07 19:47:44 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/avi@chromium.org/11788005/17014
7 years, 11 months ago (2013-01-07 19:52:02 UTC) #13
joth
On 2013/01/07 19:47:44, Avi wrote: > The notification is coming back on the main thread, ...
7 years, 11 months ago (2013-01-07 20:03:30 UTC) #14
Avi (use Gerrit)
Slick!
7 years, 11 months ago (2013-01-07 20:09:21 UTC) #15
commit-bot: I haz the power
Retried try job too often on win_aura for step(s) interactive_ui_tests
7 years, 11 months ago (2013-01-07 21:57:40 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/avi@chromium.org/11788005/17014
7 years, 11 months ago (2013-01-07 21:59:27 UTC) #17
commit-bot: I haz the power
Retried try job too often on win_aura for step(s) interactive_ui_tests
7 years, 11 months ago (2013-01-08 01:08:11 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/avi@chromium.org/11788005/17014
7 years, 11 months ago (2013-01-08 03:07:20 UTC) #19
commit-bot: I haz the power
Change committed as 175489
7 years, 11 months ago (2013-01-08 06:09:44 UTC) #20
Avi (use Gerrit)
This fails miserably on real bots. Yay trybots? https://codereview.chromium.org/11778034/ Will update and try again.
7 years, 11 months ago (2013-01-08 15:42:44 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/avi@chromium.org/11788005/26001
7 years, 11 months ago (2013-01-08 16:21:21 UTC) #22
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) browser_tests
7 years, 11 months ago (2013-01-08 18:40:31 UTC) #23
Avi (use Gerrit)
Turns out this is not true for the JavascriptAppModalDialog tests; if the main looper isn't ...
7 years, 11 months ago (2013-01-13 18:55:30 UTC) #24
Avi (use Gerrit)
OK, try this new version and let me know what you think.
7 years, 11 months ago (2013-01-13 20:43:30 UTC) #25
joth
lgtm. sorry about the Message headaches. Agree the synchronous callback i/f seems fine here and ...
7 years, 11 months ago (2013-01-14 17:21:28 UTC) #26
Avi (use Gerrit)
Re Message, yeah... I should have gone with this method from day one. Oh well. ...
7 years, 11 months ago (2013-01-14 17:28:54 UTC) #27
joth
lgtm On 2013/01/14 17:28:54, Avi wrote: > Re Message, yeah... I should have gone with ...
7 years, 11 months ago (2013-01-14 17:37:15 UTC) #28
Avi (use Gerrit)
On 2013/01/14 17:21:28, joth wrote: > Agree the synchronous callback i/f seems fine > here ...
7 years, 11 months ago (2013-01-14 17:45:29 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/avi@chromium.org/11788005/41004
7 years, 11 months ago (2013-01-14 17:49:13 UTC) #30
commit-bot: I haz the power
7 years, 11 months ago (2013-01-15 01:32:18 UTC) #31
Message was sent while issue was closed.
Change committed as 176773

Powered by Google App Engine
This is Rietveld 408576698