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

Issue 8480007: Change EXTENSION_PROCESS_CREATED observers to use EXTENSION_HOST_CREATED. (Closed)

Created:
9 years, 1 month ago by Yoyo Zhou
Modified:
9 years, 1 month ago
CC:
chromium-reviews, Aaron Boodman, Erik does not do reviews, yoshiki+watch_chromium.org, mihaip+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Change EXTENSION_PROCESS_CREATED observers to use EXTENSION_HOST_CREATED. Change EXTENSION_HOST_CREATED to be fired on RenderViewReady. Remove the EXTENSION_PROCESS_CREATED notification. This is related to fixing bug 71629, in particular, making the correct things appear in the task manager when the extension host reuses a process. This affects the new reload path (but only for unpacked extensions), but it's also visible when a process isn't created for a popup in lots-of-tabs situations. The extension settings page (the other observer) already listens to enough notifications that it updates properly (too many of them, but that's another story -- see bug). BUG=102950 TEST=TaskManagerBrowserTest.* and also: Open Task Manager. Open an extension popup, extension notification, and extension page in a tab; check that they all appear. Kill an extension with a background page and reload it from the notification bubble; check that it reappears. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=109163

Patch Set 1 #

Total comments: 2

Patch Set 2 : - #

Patch Set 3 : host it #

Total comments: 1

Patch Set 4 : ready #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -51 lines) Patch
M chrome/browser/extensions/extension_browsertest.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/extensions/extension_host.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/extension_host.cc View 1 2 3 3 chunks +7 lines, -10 lines 0 comments Download
M chrome/browser/extensions/extension_process_manager.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_process_manager.cc View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/task_manager/task_manager_resource_providers.cc View 4 chunks +15 lines, -21 lines 0 comments Download
M chrome/browser/ui/webui/options/extension_settings_handler.cc View 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/common/chrome_notification_types.h View 2 chunks +1 line, -5 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Yoyo Zhou
mpcomplete: since we discussed this yesterday. aa: since we discussed this today.
9 years, 1 month ago (2011-11-04 19:25:08 UTC) #1
Matt Perry
lgtm
9 years, 1 month ago (2011-11-04 21:12:22 UTC) #2
Aaron Boodman
http://codereview.chromium.org/8480007/diff/1/chrome/browser/extensions/extension_process_manager.h File chrome/browser/extensions/extension_process_manager.h (right): http://codereview.chromium.org/8480007/diff/1/chrome/browser/extensions/extension_process_manager.h#newcode155 chrome/browser/extensions/extension_process_manager.h:155: Profile* profile_; Elsewhere in this class we get this ...
9 years, 1 month ago (2011-11-06 23:13:16 UTC) #3
Yoyo Zhou
FYI, with this change, I'm hitting a bug exposed by the task manager browsertests, wherein ...
9 years, 1 month ago (2011-11-07 23:23:18 UTC) #4
Yoyo Zhou
Ok, I see what's happening. The task manager gets notified about HOST_CREATED before the extension's ...
9 years, 1 month ago (2011-11-08 00:49:23 UTC) #5
Aaron Boodman
lgtm (still) http://codereview.chromium.org/8480007/diff/6001/chrome/browser/extensions/extension_host.cc File chrome/browser/extensions/extension_host.cc (right): http://codereview.chromium.org/8480007/diff/6001/chrome/browser/extensions/extension_host.cc#newcode802 chrome/browser/extensions/extension_host.cc:802: render_view_host->process()->browser_context()); There's a profile_ pointer in ExtensionHost ...
9 years, 1 month ago (2011-11-08 01:11:52 UTC) #6
Matt Perry
lgtm
9 years, 1 month ago (2011-11-08 01:13:21 UTC) #7
Yoyo Zhou
I just did more testing and I think we actually need to wait for RenderViewReady. ...
9 years, 1 month ago (2011-11-08 01:40:47 UTC) #8
Yoyo Zhou
On 2011/11/08 01:40:47, Yoyo Zhou wrote: > I just did more testing and I think ...
9 years, 1 month ago (2011-11-08 22:13:06 UTC) #9
Matt Perry
9 years, 1 month ago (2011-11-08 22:16:50 UTC) #10
On 2011/11/08 22:13:06, Yoyo Zhou wrote:
> On 2011/11/08 01:40:47, Yoyo Zhou wrote:
> > I just did more testing and I think we actually need to wait for
> > RenderViewReady. But I have to pack my things in order, so I'll come back to
> > this tomorrow.
> 
> I've changed it to notify on RenderViewReady and it seems to work correctly.
If
> the trybots pass (it seems to be adequately covered by
TaskManagerBrowserTest.*)
> then I'll assume it still lgty and I'll commit.

Sounds good.

Powered by Google App Engine
This is Rietveld 408576698