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

Issue 1211003006: [Extensions OOPI] Update app window bindings for OOPI (Closed)

Created:
5 years, 5 months ago by Devlin
Modified:
5 years, 5 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, extensions-reviews_chromium.org, michaelpg+watch-options_chromium.org, creis+watch_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, chromium-apps-reviews_chromium.org, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Extensions OOPI] Update app window bindings for OOPI Update the app window custom bindings to use render frame logic instead of render view logic. This involves changes to the custom bindings themselves, as well as app window creation logic. And, for fun, a few small cleanups while I was in the area. BUG=455776 TBR=dbeam@chromium.org (webui) Committed: https://crrev.com/c3d6ba1b13ec1f050178e4f97c121b528c07520d Cr-Commit-Position: refs/heads/master@{#338076}

Patch Set 1 : #

Total comments: 14

Patch Set 2 : Ben's #

Patch Set 3 : #

Total comments: 4

Patch Set 4 : s/int32/int #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+173 lines, -284 lines) Patch
M chrome/browser/extensions/extension_tab_util.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/options_handlers_helper.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/public/renderer/render_frame.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 1 chunk +6 lines, -1 line 0 comments Download
M extensions/browser/api/app_window/app_window_api.cc View 1 2 5 chunks +22 lines, -21 lines 0 comments Download
M extensions/browser/app_window/app_window_contents.h View 2 chunks +2 lines, -2 lines 0 comments Download
M extensions/browser/app_window/app_window_contents.cc View 2 chunks +7 lines, -7 lines 0 comments Download
M extensions/browser/app_window/app_window_registry.h View 4 chunks +11 lines, -8 lines 0 comments Download
M extensions/browser/app_window/app_window_registry.cc View 1 7 chunks +18 lines, -38 lines 0 comments Download
M extensions/extensions.gypi View 5 chunks +11 lines, -11 lines 0 comments Download
M extensions/renderer/app_window_custom_bindings.h View 1 1 chunk +6 lines, -5 lines 0 comments Download
M extensions/renderer/app_window_custom_bindings.cc View 1 4 chunks +41 lines, -38 lines 0 comments Download
M extensions/renderer/dispatcher.cc View 1 2 3 4 3 chunks +8 lines, -5 lines 0 comments Download
A + extensions/renderer/render_frame_observer_natives.h View 1 chunk +9 lines, -8 lines 0 comments Download
A + extensions/renderer/render_frame_observer_natives.cc View 2 chunks +21 lines, -24 lines 0 comments Download
D extensions/renderer/render_view_observer_natives.h View 1 chunk +0 lines, -28 lines 0 comments Download
D extensions/renderer/render_view_observer_natives.cc View 1 chunk +0 lines, -79 lines 0 comments Download
M extensions/renderer/resources/app_window_custom_bindings.js View 3 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 18 (7 generated)
Devlin
5 years, 5 months ago (2015-07-08 15:38:09 UTC) #3
not at google - send to devlin
lg but a couple of questions. https://codereview.chromium.org/1211003006/diff/20001/extensions/browser/api/app_window/app_window_api.cc File extensions/browser/api/app_window/app_window_api.cc (right): https://codereview.chromium.org/1211003006/diff/20001/extensions/browser/api/app_window/app_window_api.cc#newcode181 extensions/browser/api/app_window/app_window_api.cc:181: created_frame->GetProcess()->GetID()) { Why ...
5 years, 5 months ago (2015-07-08 20:22:20 UTC) #4
Devlin
https://codereview.chromium.org/1211003006/diff/20001/extensions/browser/api/app_window/app_window_api.cc File extensions/browser/api/app_window/app_window_api.cc (right): https://codereview.chromium.org/1211003006/diff/20001/extensions/browser/api/app_window/app_window_api.cc#newcode181 extensions/browser/api/app_window/app_window_api.cc:181: created_frame->GetProcess()->GetID()) { On 2015/07/08 20:22:19, kalman wrote: > Why ...
5 years, 5 months ago (2015-07-08 21:08:47 UTC) #5
not at google - send to devlin
lgtm https://codereview.chromium.org/1211003006/diff/20001/extensions/browser/api/app_window/app_window_api.cc File extensions/browser/api/app_window/app_window_api.cc (right): https://codereview.chromium.org/1211003006/diff/20001/extensions/browser/api/app_window/app_window_api.cc#newcode177 extensions/browser/api/app_window/app_window_api.cc:177: content::RenderFrameHost* created_frame = "created_frame" is actually a lie. ...
5 years, 5 months ago (2015-07-08 21:34:29 UTC) #6
Devlin
https://codereview.chromium.org/1211003006/diff/20001/extensions/browser/api/app_window/app_window_api.cc File extensions/browser/api/app_window/app_window_api.cc (right): https://codereview.chromium.org/1211003006/diff/20001/extensions/browser/api/app_window/app_window_api.cc#newcode177 extensions/browser/api/app_window/app_window_api.cc:177: content::RenderFrameHost* created_frame = On 2015/07/08 21:34:29, kalman wrote: > ...
5 years, 5 months ago (2015-07-08 21:47:01 UTC) #7
Devlin
+Charlie for content/
5 years, 5 months ago (2015-07-08 21:48:29 UTC) #9
Charlie Reis
content/ LGTM with nits. https://codereview.chromium.org/1211003006/diff/60001/content/public/renderer/render_frame.h File content/public/renderer/render_frame.h (right): https://codereview.chromium.org/1211003006/diff/60001/content/public/renderer/render_frame.h#newcode59 content/public/renderer/render_frame.h:59: static RenderFrame* FromRoutingID(int32 routing_id); Is ...
5 years, 5 months ago (2015-07-08 22:52:18 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1211003006/120001
5 years, 5 months ago (2015-07-09 17:06:25 UTC) #15
commit-bot: I haz the power
Committed patchset #5 (id:120001)
5 years, 5 months ago (2015-07-09 17:37:06 UTC) #16
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/c3d6ba1b13ec1f050178e4f97c121b528c07520d Cr-Commit-Position: refs/heads/master@{#338076}
5 years, 5 months ago (2015-07-09 17:39:12 UTC) #17
Devlin
5 years, 5 months ago (2015-07-09 20:09:11 UTC) #18
Message was sent while issue was closed.
Whoops, forgot to mention the nits were done.

https://codereview.chromium.org/1211003006/diff/60001/content/public/renderer...
File content/public/renderer/render_frame.h (right):

https://codereview.chromium.org/1211003006/diff/60001/content/public/renderer...
content/public/renderer/render_frame.h:59: static RenderFrame*
FromRoutingID(int32 routing_id);
On 2015/07/08 22:52:18, Charlie Reis wrote:
> Is there a reason to explicitly use int32 here rather than int?  We use int in
> both RenderView::FromRoutingID and RenderFrameImpl::FromRoutingID, as well as
> GetRoutingID below.

Apparently I copied the one place it was int32 (the .cc file). Changed.

https://codereview.chromium.org/1211003006/diff/60001/content/renderer/render...
File content/renderer/render_frame_impl.cc (right):

https://codereview.chromium.org/1211003006/diff/60001/content/renderer/render...
content/renderer/render_frame_impl.cc:535: RenderFrame*
RenderFrame::FromRoutingID(int32 routing_id) {
On 2015/07/08 22:52:18, Charlie Reis wrote:
> nit: int
> 
> (The one below should be int as well to match the .h file.)

Done.

Powered by Google App Engine
This is Rietveld 408576698