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

Issue 86973002: Clean up ChromeContentBrowserClient::ShouldSwapProcessesForNavigation. (Closed)

Created:
7 years ago by Charlie Reis
Modified:
7 years ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Clean up ChromeContentBrowserClient::ShouldSwapProcessesForNavigation. The current logic forces a BrowsingInstance swap when going to/from hosted apps, which breaks postMessage. Rely on RenderViewHostManager to do a SiteInstance swap instead. BUG=123007 TEST=postMessage works after navigating a hosted app popup cross-process. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=238304

Patch Set 1 #

Patch Set 2 : Initial patch #

Total comments: 2

Patch Set 3 : Rebase #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -25 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 1 2 2 chunks +25 lines, -25 lines 2 comments Download
M chrome/browser/extensions/app_process_apitest.cc View 3 chunks +47 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Charlie Reis
@kalman, would you be able to take a look? Normally I would ask @mpcomplete but ...
7 years ago (2013-11-26 05:46:16 UTC) #1
Charlie Reis
Matt, can you review instead?
7 years ago (2013-12-02 20:02:54 UTC) #2
Matt Perry
LGTM, but see below about whether it could be simpler. https://codereview.chromium.org/86973002/diff/20001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/86973002/diff/20001/chrome/browser/chrome_content_browser_client.cc#newcode1325 ...
7 years ago (2013-12-02 21:45:20 UTC) #3
Charlie Reis
https://codereview.chromium.org/86973002/diff/20001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/86973002/diff/20001/chrome/browser/chrome_content_browser_client.cc#newcode1325 chrome/browser/chrome_content_browser_client.cc:1325: bool ChromeContentBrowserClient::ShouldSwapProcessesForNavigation( On 2013/12/02 21:45:20, Matt Perry wrote: > ...
7 years ago (2013-12-02 21:59:03 UTC) #4
Matt Perry
OK, sounds good. LGTM
7 years ago (2013-12-02 22:01:44 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/creis@chromium.org/86973002/40001
7 years ago (2013-12-02 22:04:29 UTC) #6
not at google - send to devlin
Sorry that I didn't manage to get to this.
7 years ago (2013-12-02 23:40:09 UTC) #7
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=195590
7 years ago (2013-12-03 00:08:32 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/creis@chromium.org/86973002/40001
7 years ago (2013-12-03 02:01:31 UTC) #9
commit-bot: I haz the power
Change committed as 238304
7 years ago (2013-12-03 05:16:11 UTC) #10
nasko
https://codereview.chromium.org/86973002/diff/40001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/86973002/diff/40001/chrome/browser/chrome_content_browser_client.cc#newcode1330 chrome/browser/chrome_content_browser_client.cc:1330: // in RenderViewHostManager to decide when to swap. drive-by ...
7 years ago (2013-12-03 18:06:58 UTC) #11
Charlie Reis
7 years ago (2013-12-03 19:22:55 UTC) #12
Message was sent while issue was closed.
https://codereview.chromium.org/86973002/diff/40001/chrome/browser/chrome_con...
File chrome/browser/chrome_content_browser_client.cc (right):

https://codereview.chromium.org/86973002/diff/40001/chrome/browser/chrome_con...
chrome/browser/chrome_content_browser_client.cc:1330: // in
RenderViewHostManager to decide when to swap.
On 2013/12/03 18:06:59, nasko wrote:
> drive-by nit: There is no RenderViewHostManager anymore. Same in the new
comment
> below.

Oops!  I'll fix those comments in another CL.  Thanks for catching it.

Powered by Google App Engine
This is Rietveld 408576698