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

Issue 10873038: Replacing WebUIBindings use of CPPBoundClass with v8::Extension. (Closed)

Created:
8 years, 4 months ago by Shishir
Modified:
8 years ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, mihaip-chromium-reviews_chromium.org, jam, Aaron Boodman
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Replacing WebUIBindings use of CPPBoundClass with v8::Extension. Currently WebUIBindings replace the entire chrome.* js namespace which will be fixed by this CL. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=169747

Patch Set 1 #

Total comments: 8

Patch Set 2 : Ensure WebUIBinding variables are available in all frames. #

Total comments: 2

Patch Set 3 : Changing variable storage to use UTF8 instead of UTF16. #

Total comments: 12

Patch Set 4 : Addressing estade's comments. #

Total comments: 7

Patch Set 5 : Installing WebUIExtension only when WebUIBindings is enabled. #

Patch Set 6 : Fixing content_browsertest. #

Total comments: 2

Patch Set 7 : Minor fix. #

Total comments: 20

Patch Set 8 : Addressing Sreeram's comments #

Patch Set 9 : Rebaselining. #

Patch Set 10 : Fix javascript exception occuring when WebUIBindings were not enabled in tests. #

Patch Set 11 : Using typeof == "function" #

Unified diffs Side-by-side diffs Delta from patch set Stats (+310 lines, -221 lines) Patch
M chrome/browser/resources/certificate_viewer.js View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/cloud_print/cloud_print_setup_flow.js View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/resources/http_auth.html View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/shared/js/cr.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/resources/tab_modal_confirm_dialog.html View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/sync/resources/gaia_login.js View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/docs/examples/api/fontSettings/js/cr.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/common/extensions/docs/examples/extensions/plugin_settings/domui/js/cr.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/test/data/webui/certificate_viewer_dialog_test.js View 1 1 chunk +1 line, -1 line 0 comments Download
M content/content_renderer.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -2 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 5 6 7 8 9 4 chunks +1 line, -9 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 5 chunks +8 lines, -25 lines 0 comments Download
D content/renderer/web_ui_bindings.h View 1 1 chunk +0 lines, -59 lines 0 comments Download
D content/renderer/web_ui_bindings.cc View 1 1 chunk +0 lines, -113 lines 0 comments Download
A content/renderer/web_ui_extension.h View 1 2 3 4 5 6 7 1 chunk +28 lines, -0 lines 0 comments Download
A content/renderer/web_ui_extension.cc View 1 2 3 4 5 6 7 1 chunk +166 lines, -0 lines 0 comments Download
A content/renderer/web_ui_extension_data.h View 1 2 3 4 5 6 7 1 chunk +41 lines, -0 lines 0 comments Download
A content/renderer/web_ui_extension_data.cc View 1 2 3 4 5 6 7 1 chunk +42 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (0 generated)
abarth-chromium
https://chromiumcodereview.appspot.com/10873038/diff/1/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://chromiumcodereview.appspot.com/10873038/diff/1/content/renderer/render_view_impl.cc#newcode4650 content/renderer/render_view_impl.cc:4650: if (enabled_bindings_ & content::BINDINGS_POLICY_WEB_UI) { What happened to the ...
8 years, 4 months ago (2012-08-23 20:13:24 UTC) #1
Shishir
Sorry this became de-prioritized for a bit. Adding: piman for content/renderer changes. estade for webui ...
8 years, 1 month ago (2012-11-06 20:08:38 UTC) #2
piman
LGTM for renderer, modulo abarth's or some security person to look at it to verify ...
8 years, 1 month ago (2012-11-07 00:02:41 UTC) #3
Evan Stade
http://codereview.chromium.org/10873038/diff/5001/content/renderer/web_ui_extension_data.h File content/renderer/web_ui_extension_data.h (right): http://codereview.chromium.org/10873038/diff/5001/content/renderer/web_ui_extension_data.h#newcode35 content/renderer/web_ui_extension_data.h:35: std::map<string16, string16> variable_map_; why is this UTF16 instead of ...
8 years, 1 month ago (2012-11-07 00:33:54 UTC) #4
Shishir
PTAL. http://codereview.chromium.org/10873038/diff/5001/content/renderer/web_ui_extension_data.h File content/renderer/web_ui_extension_data.h (right): http://codereview.chromium.org/10873038/diff/5001/content/renderer/web_ui_extension_data.h#newcode35 content/renderer/web_ui_extension_data.h:35: std::map<string16, string16> variable_map_; On 2012/11/07 00:33:54, Evan Stade ...
8 years, 1 month ago (2012-11-07 01:53:29 UTC) #5
Evan Stade
http://codereview.chromium.org/10873038/diff/5003/content/renderer/web_ui_extension.cc File content/renderer/web_ui_extension.cc (right): http://codereview.chromium.org/10873038/diff/5003/content/renderer/web_ui_extension.cc#newcode42 content/renderer/web_ui_extension.cc:42: static const char* const kWebUIExtensionJS = document http://codereview.chromium.org/10873038/diff/5003/content/renderer/web_ui_extension.cc#newcode54 content/renderer/web_ui_extension.cc:54: ...
8 years, 1 month ago (2012-11-07 23:09:39 UTC) #6
Shishir
PTAL. http://codereview.chromium.org/10873038/diff/5003/content/renderer/web_ui_extension.cc File content/renderer/web_ui_extension.cc (right): http://codereview.chromium.org/10873038/diff/5003/content/renderer/web_ui_extension.cc#newcode42 content/renderer/web_ui_extension.cc:42: static const char* const kWebUIExtensionJS = On 2012/11/07 ...
8 years, 1 month ago (2012-11-08 00:10:38 UTC) #7
Evan Stade
lgtm http://codereview.chromium.org/10873038/diff/14022/content/renderer/web_ui_extension.cc File content/renderer/web_ui_extension.cc (right): http://codereview.chromium.org/10873038/diff/14022/content/renderer/web_ui_extension.cc#newcode40 content/renderer/web_ui_extension.cc:40: // name as the first argument and can ...
8 years, 1 month ago (2012-11-08 01:37:59 UTC) #8
abarth-chromium
https://codereview.chromium.org/10873038/diff/14022/content/renderer/web_ui_extension.cc File content/renderer/web_ui_extension.cc (right): https://codereview.chromium.org/10873038/diff/14022/content/renderer/web_ui_extension.cc#newcode28 content/renderer/web_ui_extension.cc:28: return UTF16ToUTF8(string16(reinterpret_cast<const char16*>(*s), s.length())); I don't think this is ...
8 years, 1 month ago (2012-11-09 18:19:43 UTC) #9
Shishir
PTAL. http://codereview.chromium.org/10873038/diff/14022/content/renderer/web_ui_extension.cc File content/renderer/web_ui_extension.cc (right): http://codereview.chromium.org/10873038/diff/14022/content/renderer/web_ui_extension.cc#newcode28 content/renderer/web_ui_extension.cc:28: return UTF16ToUTF8(string16(reinterpret_cast<const char16*>(*s), s.length())); On 2012/11/09 18:19:43, abarth ...
8 years, 1 month ago (2012-11-09 19:20:08 UTC) #10
Evan Stade
http://codereview.chromium.org/10873038/diff/15023/content/renderer/web_ui_extension.cc File content/renderer/web_ui_extension.cc (right): http://codereview.chromium.org/10873038/diff/15023/content/renderer/web_ui_extension.cc#newcode158 content/renderer/web_ui_extension.cc:158: const std::string& value = the const& doesn't do anything ...
8 years, 1 month ago (2012-11-09 22:53:27 UTC) #11
Shishir
PTAL. http://codereview.chromium.org/10873038/diff/15023/content/renderer/web_ui_extension.cc File content/renderer/web_ui_extension.cc (right): http://codereview.chromium.org/10873038/diff/15023/content/renderer/web_ui_extension.cc#newcode158 content/renderer/web_ui_extension.cc:158: const std::string& value = On 2012/11/09 22:53:27, Evan ...
8 years, 1 month ago (2012-11-09 22:58:55 UTC) #12
abarth-chromium
LGTM https://codereview.chromium.org/10873038/diff/13010/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/10873038/diff/13010/content/renderer/render_view_impl.cc#newcode5004 content/renderer/render_view_impl.cc:5004: void RenderViewImpl::OnAllowBindings(int enabled_bindings_flags) { I take it there ...
8 years, 1 month ago (2012-11-09 23:07:44 UTC) #13
Shishir
https://codereview.chromium.org/10873038/diff/13010/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/10873038/diff/13010/content/renderer/render_view_impl.cc#newcode5004 content/renderer/render_view_impl.cc:5004: void RenderViewImpl::OnAllowBindings(int enabled_bindings_flags) { On 2012/11/09 23:07:44, abarth wrote: ...
8 years, 1 month ago (2012-11-09 23:47:47 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shishir@chromium.org/10873038/13010
8 years, 1 month ago (2012-11-12 18:51:44 UTC) #15
commit-bot: I haz the power
Presubmit check for 10873038-13010 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 1 month ago (2012-11-12 18:51:59 UTC) #16
Shishir
Adding atwilson for chrome/browser/sync/... cduvall for chrome/common/extensions/docs/... PTAL.
8 years, 1 month ago (2012-11-12 18:58:56 UTC) #17
sreeram
http://codereview.chromium.org/10873038/diff/14022/content/renderer/web_ui_extension.cc File content/renderer/web_ui_extension.cc (right): http://codereview.chromium.org/10873038/diff/14022/content/renderer/web_ui_extension.cc#newcode28 content/renderer/web_ui_extension.cc:28: return UTF16ToUTF8(string16(reinterpret_cast<const char16*>(*s), s.length())); On 2012/11/09 19:20:08, Shishir wrote: ...
8 years, 1 month ago (2012-11-12 19:42:44 UTC) #18
cduvall
c/c/e/docs/ lgtm
8 years, 1 month ago (2012-11-12 22:19:06 UTC) #19
Andrew T Wilson (Slow)
browser/sync lgtm
8 years, 1 month ago (2012-11-13 08:35:49 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shishir@chromium.org/10873038/13010
8 years, 1 month ago (2012-11-13 18:31:12 UTC) #21
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
8 years, 1 month ago (2012-11-13 18:39:52 UTC) #22
sreeram
LGTM with nits third_party/trace-viewer/src/base.js contains references to chrome.toolkit. Could you file a bug or upstream ...
8 years, 1 month ago (2012-11-14 17:18:00 UTC) #23
Shishir
http://codereview.chromium.org/10873038/diff/13010/content/renderer/web_ui_extension.cc File content/renderer/web_ui_extension.cc (right): http://codereview.chromium.org/10873038/diff/13010/content/renderer/web_ui_extension.cc#newcode72 content/renderer/web_ui_extension.cc:72: else if (name->Equals(v8::String::New("GetVariableValue"))) On 2012/11/14 17:18:01, sreeram wrote: > ...
8 years, 1 month ago (2012-11-14 19:32:34 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shishir@chromium.org/10873038/19010
8 years, 1 month ago (2012-11-14 19:37:45 UTC) #25
commit-bot: I haz the power
Retried try job too often for step(s) browser_tests
8 years, 1 month ago (2012-11-14 20:52:21 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shishir@chromium.org/10873038/18025
8 years, 1 month ago (2012-11-15 19:19:42 UTC) #27
commit-bot: I haz the power
Retried try job too often for step(s) browser_tests
8 years, 1 month ago (2012-11-15 21:48:23 UTC) #28
sreeram
On 2012/11/15 21:48:23, I haz the power (commit-bot) wrote: > Retried try job too often ...
8 years ago (2012-11-26 10:13:02 UTC) #29
Shishir
On 2012/11/26 10:13:02, sreeram wrote: > On 2012/11/15 21:48:23, I haz the power (commit-bot) wrote: ...
8 years ago (2012-11-26 21:25:01 UTC) #30
sreeram
On 2012/11/26 21:25:01, Shishir wrote: > It was a JS issue: > > /GTK/.test(chrome.toolkit) will ...
8 years ago (2012-11-26 21:34:47 UTC) #31
Shishir
On 2012/11/26 21:34:47, sreeram wrote: > On 2012/11/26 21:25:01, Shishir wrote: > > It was ...
8 years ago (2012-11-26 21:40:50 UTC) #32
sreeram
lgtm
8 years ago (2012-11-26 21:46:08 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shishir@chromium.org/10873038/29005
8 years ago (2012-11-26 22:54:00 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shishir@chromium.org/10873038/29005
8 years ago (2012-11-27 21:00:34 UTC) #35
commit-bot: I haz the power
8 years ago (2012-11-27 21:03:23 UTC) #36
Message was sent while issue was closed.
Change committed as 169747

Powered by Google App Engine
This is Rietveld 408576698