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

Issue 2618693004: Mojo JS bindings: make sure that console.log() could be used in the bindings. (Closed)

Created:
3 years, 11 months ago by yzshen1
Modified:
3 years, 11 months ago
CC:
Aaron Boodman, abarth-chromium, chromium-apps-reviews_chromium.org, chromium-reviews, creis+watch_chromium.org, darin (slow to review), darin-cc_chromium.org, extensions-reviews_chromium.org, jam, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mojo JS bindings: make sure that console.log() could be used in the bindings. It is convenient for debugging. Although console.log() is supported by chrome directly, mojo bindings currently are loaded using gin. Therefore, console.log() is not always available and needs to be defined as a module. After we move away from gin/AMD, we should be able to get rid of this. BUG=579646 TBR=jochen@chromium.org (deferring to eugenebut) Review-Url: https://codereview.chromium.org/2618693004 Cr-Commit-Position: refs/heads/master@{#442972} Committed: https://chromium.googlesource.com/chromium/src/+/1ff21f95261daa80eeff96b7df798da9b85b5eee

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : . #

Patch Set 8 : . #

Patch Set 9 : . #

Patch Set 10 : . #

Patch Set 11 : . #

Patch Set 12 : . #

Total comments: 2

Patch Set 13 : . #

Patch Set 14 : merge & resolve #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -4 lines) Patch
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +4 lines, -0 lines 0 comments Download
M extensions/renderer/api_test_base.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M ios/web/ios_web_resources.grd View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M ios/web/webui/crw_web_ui_manager.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M ios/web/webui/mojo_js_constants.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ios/web/webui/mojo_js_constants.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A ios/web/webui/resources/console.js View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +25 lines, -0 lines 0 comments Download
M mojo/public/js/router.js View 1 2 3 4 5 6 7 8 10 11 3 chunks +11 lines, -4 lines 0 comments Download

Messages

Total messages: 48 (29 generated)
yzshen1
Hi, Jochen and Eugene. Would you please take a look? Thanks! Jochen: content/renderer/render_frame_impl.cc extensions/renderer/api_test_base.cc Eugene: ...
3 years, 11 months ago (2017-01-09 23:13:08 UTC) #12
Eugene But (OOO till 7-30)
Isn't console.log already supported on iOS?: https://cs.chromium.org/chromium/src/ios/web/web_state/ui/crw_web_controller.mm?sq=package:chromium&l=2772
3 years, 11 months ago (2017-01-09 23:28:35 UTC) #13
yzshen1
On 2017/01/09 23:28:35, Eugene But wrote: > Isn't console.log already supported on iOS?: > https://cs.chromium.org/chromium/src/ios/web/web_state/ui/crw_web_controller.mm?sq=package:chromium&l=2772 ...
3 years, 11 months ago (2017-01-10 00:11:23 UTC) #14
jochen (gone - plz use gerrit)
(deferring to eugenebut)
3 years, 11 months ago (2017-01-10 09:50:38 UTC) #16
Eugene But (OOO till 7-30)
On 2017/01/10 09:50:38, jochen wrote: > (deferring to eugenebut) Per offline discussion, let's keep using ...
3 years, 11 months ago (2017-01-10 18:39:11 UTC) #17
yzshen1
On 2017/01/10 18:39:11, Eugene But wrote: > On 2017/01/10 09:50:38, jochen wrote: > > (deferring ...
3 years, 11 months ago (2017-01-10 18:53:16 UTC) #20
Eugene But (OOO till 7-30)
lgtm https://codereview.chromium.org/2618693004/diff/240001/ios/web/webui/resources/console.js File ios/web/webui/resources/console.js (right): https://codereview.chromium.org/2618693004/diff/240001/ios/web/webui/resources/console.js#newcode10 ios/web/webui/resources/console.js:10: // and the |console| object is not always ...
3 years, 11 months ago (2017-01-10 19:32:52 UTC) #21
yzshen1
https://codereview.chromium.org/2618693004/diff/240001/ios/web/webui/resources/console.js File ios/web/webui/resources/console.js (right): https://codereview.chromium.org/2618693004/diff/240001/ios/web/webui/resources/console.js#newcode10 ios/web/webui/resources/console.js:10: // and the |console| object is not always available. ...
3 years, 11 months ago (2017-01-10 20:13:08 UTC) #23
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/2618693004/260001
3 years, 11 months ago (2017-01-10 20:13:48 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/97178)
3 years, 11 months ago (2017-01-10 21:42:32 UTC) #28
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/2618693004/260001
3 years, 11 months ago (2017-01-10 21:47:09 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/97298)
3 years, 11 months ago (2017-01-10 23:14:03 UTC) #32
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/2618693004/260001
3 years, 11 months ago (2017-01-11 07:39:10 UTC) #34
jochen (gone - plz use gerrit)
lgtm
3 years, 11 months ago (2017-01-11 09:55:59 UTC) #35
commit-bot: I haz the power
Failed to apply patch for content/renderer/render_frame_impl.cc: While running git apply --index -p1; error: patch failed: ...
3 years, 11 months ago (2017-01-11 10:30:43 UTC) #37
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/2618693004/280001
3 years, 11 months ago (2017-01-11 17:27:53 UTC) #40
commit-bot: I haz the power
Prior attempt to commit was detected, but we were not able to check whether the ...
3 years, 11 months ago (2017-01-11 18:38:52 UTC) #43
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/2618693004/280001
3 years, 11 months ago (2017-01-11 18:59:04 UTC) #45
commit-bot: I haz the power
3 years, 11 months ago (2017-01-11 19:06:09 UTC) #48
Message was sent while issue was closed.
Committed patchset #14 (id:280001) as
https://chromium.googlesource.com/chromium/src/+/1ff21f95261daa80eeff96b7df79...

Powered by Google App Engine
This is Rietveld 408576698