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

Issue 131573003: Convert DomAutomationController from CppBoundClass to gin::Wrappable (Closed)

Created:
6 years, 11 months ago by jochen (gone - plz use gerrit)
Modified:
6 years, 11 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Convert DomAutomationController from CppBoundClass to gin::Wrappable BUG=297480 R=jam@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=244394

Patch Set 1 #

Patch Set 2 : updates #

Total comments: 13

Patch Set 3 : updates #

Total comments: 1

Patch Set 4 : updates #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -188 lines) Patch
M chrome/browser/extensions/extension_keybinding_apitest.cc View 1 2 3 4 chunks +4 lines, -0 lines 0 comments Download
M content/renderer/dom_automation_controller.h View 1 2 4 chunks +34 lines, -41 lines 1 comment Download
M content/renderer/dom_automation_controller.cc View 1 2 2 chunks +68 lines, -130 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 2 chunks +0 lines, -5 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 1 chunk +5 lines, -12 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
jochen (gone - plz use gerrit)
plz review
6 years, 11 months ago (2014-01-09 12:53:36 UTC) #1
jam
On 2014/01/09 12:53:36, jochen wrote: > plz review I trust that the code is right, ...
6 years, 11 months ago (2014-01-09 18:14:18 UTC) #2
jochen (gone - plz use gerrit)
Aaron, can you have a look plz
6 years, 11 months ago (2014-01-09 18:18:13 UTC) #3
Aaron Boodman
https://codereview.chromium.org/131573003/diff/50001/content/renderer/dom_automation_controller.cc File content/renderer/dom_automation_controller.cc (right): https://codereview.chromium.org/131573003/diff/50001/content/renderer/dom_automation_controller.cc#newcode68 content/renderer/dom_automation_controller.cc:68: if (args->PeekNext()->IsString()) { Weird API is weird. Why just ...
6 years, 11 months ago (2014-01-09 20:11:06 UTC) #4
Aaron Boodman
https://codereview.chromium.org/131573003/diff/50001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/131573003/diff/50001/content/renderer/render_view_impl.cc#newcode3665 content/renderer/render_view_impl.cc:3665: void RenderViewImpl::didClearWindowObject(WebFrame* frame) { Does this get called for ...
6 years, 11 months ago (2014-01-09 20:19:20 UTC) #5
jochen (gone - plz use gerrit)
https://codereview.chromium.org/131573003/diff/50001/content/renderer/dom_automation_controller.cc File content/renderer/dom_automation_controller.cc (right): https://codereview.chromium.org/131573003/diff/50001/content/renderer/dom_automation_controller.cc#newcode69 content/renderer/dom_automation_controller.cc:69: std::string str; On 2014/01/09 20:11:06, Aaron Boodman wrote: > ...
6 years, 11 months ago (2014-01-09 20:30:37 UTC) #6
Aaron Boodman
https://codereview.chromium.org/131573003/diff/50001/content/renderer/dom_automation_controller.cc File content/renderer/dom_automation_controller.cc (right): https://codereview.chromium.org/131573003/diff/50001/content/renderer/dom_automation_controller.cc#newcode69 content/renderer/dom_automation_controller.cc:69: std::string str; On 2014/01/09 20:30:38, jochen wrote: > On ...
6 years, 11 months ago (2014-01-09 20:41:25 UTC) #7
jochen (gone - plz use gerrit)
ptal
6 years, 11 months ago (2014-01-10 10:03:56 UTC) #8
Aaron Boodman
Very nice. LGTM. https://codereview.chromium.org/131573003/diff/220001/content/renderer/dom_automation_controller.cc File content/renderer/dom_automation_controller.cc (right): https://codereview.chromium.org/131573003/diff/220001/content/renderer/dom_automation_controller.cc#newcode71 content/renderer/dom_automation_controller.cc:71: V8ValueConverterImpl conv; cool
6 years, 11 months ago (2014-01-11 05:41:18 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jochen@chromium.org/131573003/220001
6 years, 11 months ago (2014-01-11 06:21:27 UTC) #10
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=210817
6 years, 11 months ago (2014-01-11 06:59:36 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jochen@chromium.org/131573003/460001
6 years, 11 months ago (2014-01-11 11:50:50 UTC) #12
commit-bot: I haz the power
Change committed as 244394
6 years, 11 months ago (2014-01-11 23:30:52 UTC) #13
abarth-chromium
https://codereview.chromium.org/131573003/diff/460001/content/renderer/dom_automation_controller.h File content/renderer/dom_automation_controller.h (right): https://codereview.chromium.org/131573003/diff/460001/content/renderer/dom_automation_controller.h#newcode112 content/renderer/dom_automation_controller.h:112: blink::WebFrame* frame_; What keeps this pointer from becoming stale?
6 years, 11 months ago (2014-01-12 01:51:55 UTC) #14
jochen (gone - plz use gerrit)
A revert of this CL has been created in https://codereview.chromium.org/135983002/ by jochen@chromium.org. The reason for ...
6 years, 11 months ago (2014-01-12 17:52:16 UTC) #15
Aaron Boodman
6 years, 11 months ago (2014-01-15 19:17:53 UTC) #16
Message was sent while issue was closed.
https://codereview.chromium.org/131573003/diff/50001/content/renderer/dom_aut...
File content/renderer/dom_automation_controller.h (right):

https://codereview.chromium.org/131573003/diff/50001/content/renderer/dom_aut...
content/renderer/dom_automation_controller.h:97: bool Send(gin::Arguments*
args);
On 2014/01/09 20:41:25, Aaron Boodman wrote:
> On 2014/01/09 20:30:38, jochen wrote:
> > On 2014/01/09 20:11:06, Aaron Boodman wrote:
> > > Did you try const gin::Arguments& ? I thought that worked too, and would
be
> > more
> > > stylistically correct.
> > 
> > GetNext() is non-const :-/
> 
> Ugh. I have hit that problem several times. The fact that Arguments behaves as
> an iterator always bothered me. Perhaps I will separate out the iterator
aspect,
> or just get rid of it.

Following up on this: I looked into factoring out iteration of arguments so that
this could be const, but I realized there is another thing preventing constness:
SetReturnValue().

With that, it looks like passing gin::Arguments by pointer is the right thing.

Powered by Google App Engine
This is Rietveld 408576698