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

Issue 7612016: Tie extension/app initialization to RenderView creation, not RenderViewHost creation (Closed)

Created:
9 years, 4 months ago by Mihai Parparita -not on Chrome
Modified:
9 years, 4 months ago
CC:
chromium-reviews, Avi (use Gerrit), Erik does not do reviews, Paweł Hajdan Jr., jam, mihaip+watch_chromium.org, joi+watch-content_chromium.org, Aaron Boodman, brettw-cc_chromium.org, Yoyo Zhou
Visibility:
Public.

Description

InitRenderViewHostForExtensions would only be called when a new RenderViewHost was created, but when reloading a crashed tab we would be reusing the RVH and just making a new RenderView, the process would not be sent the ActivateExtension/Application IPCs. Move the process-specific initialization to ChromeRenderViewHostObserver::RenderViewHostInitialized, which is called every time a new renderer process is created. BUG=89607 TEST=no R=creis@chromium.org,jam@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=96505

Patch Set 1 #

Patch Set 2 : Switch to initializing extensions when a RenderView is created, as opposed to a RenderViewHost. #

Total comments: 3

Patch Set 3 : Move initialization to ChromeRenderViewHostObserver. #

Total comments: 2

Patch Set 4 : Move all extension-related RVH initialization to ChromeRenderViewHostObserver. #

Patch Set 5 : Move all extension-related RVH initialization to ChromeRenderViewHostObserver. #

Total comments: 1

Patch Set 6 : Fix IsolatedAppApiTest.CookieIsolation. #

Patch Set 7 : Fix comment.x #

Unified diffs Side-by-side diffs Delta from patch set Stats (+173 lines, -81 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 chunks +0 lines, -68 lines 0 comments Download
M chrome/browser/extensions/app_process_apitest.cc View 1 chunk +30 lines, -0 lines 0 comments Download
M chrome/browser/extensions/isolated_app_apitest.cc View 1 2 3 4 5 1 chunk +20 lines, -11 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_view_host_observer.h View 1 2 3 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_view_host_observer.cc View 1 2 3 4 5 6 3 chunks +111 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Mihai Parparita -not on Chrome
9 years, 4 months ago (2011-08-11 00:25:49 UTC) #1
Charlie Reis
This seems kind of indirect. Should we be doing the extension-specific RenderViewHostCreated logic as part ...
9 years, 4 months ago (2011-08-11 00:35:53 UTC) #2
Mihai Parparita -not on Chrome
+jam since this now touches content/browser/* On 2011/08/11 00:35:53, creis wrote: > This seems kind ...
9 years, 4 months ago (2011-08-11 01:33:10 UTC) #3
Charlie Reis
This looks great. If we find a way around the AllowBindings issue, I think we'll ...
9 years, 4 months ago (2011-08-11 16:53:43 UTC) #4
jam
http://codereview.chromium.org/7612016/diff/2002/content/browser/renderer_host/render_view_host.cc File content/browser/renderer_host/render_view_host.cc (right): http://codereview.chromium.org/7612016/diff/2002/content/browser/renderer_host/render_view_host.cc#newcode195 content/browser/renderer_host/render_view_host.cc:195: content::GetContentClient()->browser()->RenderViewCreated(this); It's best to avoid adding methods to ContentBrowserClient ...
9 years, 4 months ago (2011-08-11 18:13:36 UTC) #5
Mihai Parparita -not on Chrome
On 2011/08/11 16:53:43, creis wrote: > Looks like this is causing test failures because the ...
9 years, 4 months ago (2011-08-11 18:46:53 UTC) #6
jam
lgtm
9 years, 4 months ago (2011-08-11 18:52:56 UTC) #7
Charlie Reis
Thanks-- just one more question inline. http://codereview.chromium.org/7612016/diff/4009/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (left): http://codereview.chromium.org/7612016/diff/4009/chrome/browser/chrome_content_browser_client.cc#oldcode108 chrome/browser/chrome_content_browser_client.cc:108: site_instance->GetProcess()->mark_is_extension_process(); Ah yes, ...
9 years, 4 months ago (2011-08-11 19:10:55 UTC) #8
Mihai Parparita -not on Chrome
On Thu, Aug 11, 2011 at 12:10 PM, <creis@chromium.org> wrote: > I wonder if it's ...
9 years, 4 months ago (2011-08-11 20:40:38 UTC) #9
Charlie Reis
Great-- LGTM! http://codereview.chromium.org/7612016/diff/12001/chrome/browser/renderer_host/chrome_render_view_host_observer.cc File chrome/browser/renderer_host/chrome_render_view_host_observer.cc (right): http://codereview.chromium.org/7612016/diff/12001/chrome/browser/renderer_host/chrome_render_view_host_observer.cc#newcode59 chrome/browser/renderer_host/chrome_render_view_host_observer.cc:59: const Extension* extension = GetExtension(); Please add ...
9 years, 4 months ago (2011-08-11 21:02:23 UTC) #10
Mihai Parparita -not on Chrome
On 2011/08/11 21:02:23, creis wrote: > chrome/browser/renderer_host/chrome_render_view_host_observer.cc:59: const > Extension* extension = GetExtension(); > Please ...
9 years, 4 months ago (2011-08-11 21:40:34 UTC) #11
Charlie Reis
On 2011/08/11 21:40:34, Mihai Parparita wrote: > I already have those comments in the header ...
9 years, 4 months ago (2011-08-11 22:24:58 UTC) #12
commit-bot: I haz the power
9 years, 4 months ago (2011-08-12 03:59:26 UTC) #13
Change committed as 96505

Powered by Google App Engine
This is Rietveld 408576698