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

Issue 2688453002: NTP: simplify mojo connection setup (Closed)

Created:
3 years, 10 months ago by tibell
Modified:
3 years, 10 months ago
Reviewers:
Marc Treib, dcheng
CC:
chromium-reviews, skanuj+watch_chromium.org, melevin+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, donnd+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, jfweitz+watch_chromium.org, David Black, samarth+watch_chromium.org, kmadhusu+watch_chromium.org, darin (slow to review), Jered
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

NTP: simplify mojo connection setup Both the browser (SearchIPCRouter) and the frame (SearchBox) needs to be able to be able to send messages to the other side (i.e. using mojo methods with replies is not enough). Previously this was achieved by having each side separate creating a connection to the other. Now only the frame initiates the connection, passing an interface to the browser which the browser can use to talk back to the frame. This removes complicated frame connection logic on the browser side. BUG=653373 Review-Url: https://codereview.chromium.org/2688453002 Cr-Commit-Position: refs/heads/master@{#452684} Committed: https://chromium.googlesource.com/chromium/src/+/2e6a9ebbc75837e1f7986ecc7f16e5d59d70299a

Patch Set 1 #

Patch Set 2 : Merge #

Patch Set 3 : Restore IsRenderedInInstantProcess check #

Total comments: 13

Patch Set 4 : Address review comments #

Patch Set 5 : Get rid of more references to NTP #

Total comments: 4

Patch Set 6 : Check connections on a per-frame basis #

Patch Set 7 : Merge #

Patch Set 8 : Fix botched merge #

Total comments: 7

Patch Set 9 : Address review comments #

Patch Set 10 : Merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -133 lines) Patch
M chrome/browser/ui/search/search_ipc_router.h View 1 2 3 4 5 6 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/ui/search/search_ipc_router.cc View 1 2 3 4 5 6 7 8 14 chunks +51 lines, -72 lines 0 comments Download
M chrome/browser/ui/search/search_ipc_router_unittest.cc View 1 2 3 4 5 6 7 2 chunks +0 lines, -56 lines 0 comments Download
M chrome/common/instant.mojom View 1 2 3 4 5 6 3 chunks +21 lines, -0 lines 0 comments Download
M chrome/renderer/searchbox/searchbox.cc View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -4 lines 0 comments Download

Messages

Total messages: 85 (52 generated)
tibell
treib@ is main reviewer. jam@ for OWNERS.
3 years, 10 months ago (2017-02-08 03:44:43 UTC) #4
tibell
Adding dcheng@ for security review.
3 years, 10 months ago (2017-02-08 03:46:16 UTC) #8
tibell
Marc, I'd like to separate rename these interfaces to something better. The methods currently exposed ...
3 years, 10 months ago (2017-02-08 03:54:42 UTC) #11
tibell
Merge
3 years, 10 months ago (2017-02-08 04:05:51 UTC) #12
tibell
Restore IsRenderedInInstantProcess check
3 years, 10 months ago (2017-02-08 05:52:12 UTC) #17
dcheng
Also, can you help me understand why the checks had to be restored? https://codereview.chromium.org/2688453002/diff/40001/chrome/browser/ui/search/search_ipc_router.cc File ...
3 years, 10 months ago (2017-02-08 09:01:39 UTC) #23
Marc Treib
On 2017/02/08 03:54:42, tibell wrote: > Marc, > > I'd like to separate rename these ...
3 years, 10 months ago (2017-02-08 09:50:08 UTC) #24
Marc Treib
This generally lg tm, with the usual caveat that I know next to nothing about ...
3 years, 10 months ago (2017-02-08 10:00:36 UTC) #25
jam
On 2017/02/08 03:44:43, tibell wrote: > treib@ is main reviewer. jam@ for OWNERS. treib is ...
3 years, 10 months ago (2017-02-08 17:10:55 UTC) #26
tibell
Address review comments
3 years, 10 months ago (2017-02-09 03:32:47 UTC) #27
tibell
PTAL > Also, can you help me understand why the checks had to be restored? ...
3 years, 10 months ago (2017-02-09 03:35:28 UTC) #31
tibell
Get rid of more references to NTP
3 years, 10 months ago (2017-02-09 03:39:01 UTC) #32
tibell
Re-adding jam@ as treib@ is not in OWNERS.
3 years, 10 months ago (2017-02-09 03:41:57 UTC) #36
Marc Treib
lgtm Thanks! (I *am* in owners for everything except the .mojom file. Rietveld just doesn't ...
3 years, 10 months ago (2017-02-09 09:30:47 UTC) #41
tibell
On 2017/02/09 09:30:47, Marc Treib wrote: > lgtm > > Thanks! > > (I *am* ...
3 years, 10 months ago (2017-02-09 22:31:37 UTC) #42
tibell
dcheng, I need your security review. https://codereview.chromium.org/2688453002/diff/80001/chrome/common/instant.mojom File chrome/common/instant.mojom (right): https://codereview.chromium.org/2688453002/diff/80001/chrome/common/instant.mojom#newcode120 chrome/common/instant.mojom:120: // the correspnding ...
3 years, 10 months ago (2017-02-09 22:32:01 UTC) #43
dcheng
https://codereview.chromium.org/2688453002/diff/80001/chrome/browser/ui/search/search_ipc_router.cc File chrome/browser/ui/search/search_ipc_router.cc (right): https://codereview.chromium.org/2688453002/diff/80001/chrome/browser/ui/search/search_ipc_router.cc#newcode79 chrome/browser/ui/search/search_ipc_router.cc:79: if (!IsRenderedInInstantProcess(web_contents_)) { One thing I was wondering... once ...
3 years, 10 months ago (2017-02-10 10:24:14 UTC) #45
tibell
https://codereview.chromium.org/2688453002/diff/80001/chrome/browser/ui/search/search_ipc_router.cc File chrome/browser/ui/search/search_ipc_router.cc (right): https://codereview.chromium.org/2688453002/diff/80001/chrome/browser/ui/search/search_ipc_router.cc#newcode79 chrome/browser/ui/search/search_ipc_router.cc:79: if (!IsRenderedInInstantProcess(web_contents_)) { On 2017/02/10 10:24:14, dcheng wrote: > ...
3 years, 10 months ago (2017-02-12 23:15:26 UTC) #46
tibell
Check connections on a per-frame basis
3 years, 10 months ago (2017-02-13 00:37:48 UTC) #47
tibell
PTAL I've uploaded a version that does the "is instant process" check correctly on a ...
3 years, 10 months ago (2017-02-13 00:41:31 UTC) #52
tibell
Merge
3 years, 10 months ago (2017-02-13 00:45:43 UTC) #53
Marc Treib
https://codereview.chromium.org/2688453002/diff/130001/chrome/browser/ui/search/search_ipc_router.cc File chrome/browser/ui/search/search_ipc_router.cc (right): https://codereview.chromium.org/2688453002/diff/130001/chrome/browser/ui/search/search_ipc_router.cc#newcode24 chrome/browser/ui/search/search_ipc_router.cc:24: bool IsInstantProcess(content::RenderFrameHost* render_frame) { nit: IsInInstantProcess maybe? https://codereview.chromium.org/2688453002/diff/130001/chrome/browser/ui/search/search_ipc_router.cc#newcode42 chrome/browser/ui/search/search_ipc_router.cc:42: ...
3 years, 10 months ago (2017-02-13 09:35:57 UTC) #62
dcheng
I think I'm largely with OK with this change. I think it does slightly change ...
3 years, 10 months ago (2017-02-13 21:06:58 UTC) #63
tibell
On 2017/02/13 21:06:58, dcheng wrote: > I think I'm largely with OK with this change. ...
3 years, 10 months ago (2017-02-19 23:18:33 UTC) #66
tibell
PTAL https://codereview.chromium.org/2688453002/diff/130001/chrome/browser/ui/search/search_ipc_router.cc File chrome/browser/ui/search/search_ipc_router.cc (right): https://codereview.chromium.org/2688453002/diff/130001/chrome/browser/ui/search/search_ipc_router.cc#newcode24 chrome/browser/ui/search/search_ipc_router.cc:24: bool IsInstantProcess(content::RenderFrameHost* render_frame) { On 2017/02/13 09:35:56, Marc ...
3 years, 10 months ago (2017-02-19 23:18:45 UTC) #67
tibell
Merge
3 years, 10 months ago (2017-02-20 00:14:54 UTC) #70
Marc Treib
https://codereview.chromium.org/2688453002/diff/130001/chrome/browser/ui/search/search_ipc_router_unittest.cc File chrome/browser/ui/search/search_ipc_router_unittest.cc (left): https://codereview.chromium.org/2688453002/diff/130001/chrome/browser/ui/search/search_ipc_router_unittest.cc#oldcode447 chrome/browser/ui/search/search_ipc_router_unittest.cc:447: // Navigate away from the NTP. Afterwards, all messages ...
3 years, 10 months ago (2017-02-20 10:14:52 UTC) #75
dcheng
On 2017/02/19 23:18:45, tibell wrote: > PTAL > > https://codereview.chromium.org/2688453002/diff/130001/chrome/browser/ui/search/search_ipc_router.cc > File chrome/browser/ui/search/search_ipc_router.cc (right): > ...
3 years, 10 months ago (2017-02-21 23:29:34 UTC) #76
tibell
On 2017/02/20 10:14:52, Marc Treib wrote: > > What we could test is that a ...
3 years, 10 months ago (2017-02-23 02:49:54 UTC) #77
tibell
On 2017/02/21 23:29:34, dcheng wrote: > On 2017/02/19 23:18:45, tibell wrote: > > PTAL > ...
3 years, 10 months ago (2017-02-23 02:52:41 UTC) #78
Marc Treib
On 2017/02/23 02:49:54, tibell wrote: > On 2017/02/20 10:14:52, Marc Treib wrote: > > > ...
3 years, 10 months ago (2017-02-23 10:27:00 UTC) #79
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/2688453002/170001
3 years, 10 months ago (2017-02-23 23:06:02 UTC) #82
commit-bot: I haz the power
3 years, 10 months ago (2017-02-24 00:13:01 UTC) #85
Message was sent while issue was closed.
Committed patchset #10 (id:170001) as
https://chromium.googlesource.com/chromium/src/+/2e6a9ebbc75837e1f7986ecc7f16...

Powered by Google App Engine
This is Rietveld 408576698