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

Issue 10113005: Remove EPM:all_hosts_ and use all_extension_views_ instead. (Closed)

Created:
8 years, 8 months ago by benwells
Modified:
8 years, 8 months ago
CC:
chromium-reviews, Avi (use Gerrit), creis+watch_chromium.org, yoshiki+watch_chromium.org, ajwong+watch_chromium.org, kkania, mihaip+watch_chromium.org, Aaron Boodman, robertshield, brettw-cc_chromium.org, darin-cc_chromium.org, Matt Perry, jeremya, asargent_no_longer_on_chrome
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Remove EPM:all_hosts_ and use all_extension_views_ instead. EPM:all_hosts_ is used to look for extension render view hosts, under the assumption it has all of them. This assumption is wrong, and the name is confusing, so we're removing all_hosts_. A different container can be used: all_extension_views, which contains all the RenderViewHosts for extensions. BUG=102617 TEST=Covered by existing tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=134028

Patch Set 1 #

Patch Set 2 : Blank line gone #

Total comments: 4

Patch Set 3 : interactive_ui_tests #

Total comments: 6

Patch Set 4 : Rebase #

Patch Set 5 : Back to RVH #

Patch Set 6 : Cleanup #

Total comments: 19

Patch Set 7 : Tests, comments addressed, cleanup #

Patch Set 8 : Test failures #

Patch Set 9 : Make tests work #

Total comments: 4

Patch Set 10 : Rebased onto platform app background page change #

Patch Set 11 : Comments addressed #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+259 lines, -176 lines) Patch
M chrome/browser/automation/automation_provider_observers.cc View 1 2 3 4 5 6 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/browser/automation/automation_util.h View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/automation/automation_util.cc View 1 2 3 4 5 chunks +12 lines, -10 lines 0 comments Download
M chrome/browser/automation/testing_automation_provider.cc View 1 2 3 4 5 6 7 8 9 4 chunks +26 lines, -17 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 chunk +4 lines, -6 lines 0 comments Download
M chrome/browser/debugger/devtools_sanity_unittest.cc View 1 2 3 4 5 6 3 chunks +9 lines, -8 lines 0 comments Download
M chrome/browser/extensions/extension_browsertest.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 9 chunks +19 lines, -16 lines 0 comments Download
M chrome/browser/extensions/extension_browsertests_misc.cc View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_crash_recovery_browsertest.cc View 1 2 3 4 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_devtools_browsertests.cc View 1 2 3 4 5 6 3 chunks +18 lines, -11 lines 1 comment Download
M chrome/browser/extensions/extension_process_manager.h View 1 2 3 4 5 6 4 chunks +22 lines, -11 lines 0 comments Download
M chrome/browser/extensions/extension_process_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 chunks +37 lines, -19 lines 1 comment Download
M chrome/browser/extensions/platform_app_browsertest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/extensions/process_management_browsertest.cc View 1 2 3 4 5 6 1 chunk +4 lines, -7 lines 0 comments Download
M chrome/browser/tab_contents/render_view_context_menu.cc View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -15 lines 0 comments Download
M chrome/browser/task_manager/task_manager.cc View 1 chunk +6 lines, -7 lines 0 comments Download
M chrome/browser/task_manager/task_manager_resource_providers.h View 4 chunks +9 lines, -7 lines 0 comments Download
M chrome/browser/task_manager/task_manager_resource_providers.cc View 1 2 3 4 5 6 10 chunks +54 lines, -24 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/browser/render_widget_host.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
benwells
This is continuing https://chromiumcodereview.appspot.com/10116017/, using WebContents instead of RenderViewHost.
8 years, 8 months ago (2012-04-19 07:36:03 UTC) #1
benwells
https://chromiumcodereview.appspot.com/10113005/diff/8001/chrome/browser/renderer_host/chrome_render_view_host_observer.cc File chrome/browser/renderer_host/chrome_render_view_host_observer.cc (right): https://chromiumcodereview.appspot.com/10113005/diff/8001/chrome/browser/renderer_host/chrome_render_view_host_observer.cc#newcode23 chrome/browser/renderer_host/chrome_render_view_host_observer.cc:23: #include "content/browser/web_contents/web_contents_impl.h" This causes a build error due to ...
8 years, 8 months ago (2012-04-19 11:34:02 UTC) #2
Matt Perry
https://chromiumcodereview.appspot.com/10113005/diff/8001/chrome/browser/renderer_host/chrome_render_view_host_observer.cc File chrome/browser/renderer_host/chrome_render_view_host_observer.cc (right): https://chromiumcodereview.appspot.com/10113005/diff/8001/chrome/browser/renderer_host/chrome_render_view_host_observer.cc#newcode194 chrome/browser/renderer_host/chrome_render_view_host_observer.cc:194: return static_cast<WebContentsImpl*>(rvh->GetDelegate()); On 2012/04/19 11:34:02, benwells wrote: > How ...
8 years, 8 months ago (2012-04-19 20:53:19 UTC) #3
Charlie Reis
I don't think this change is safe. See below for details, but a WebContents can ...
8 years, 8 months ago (2012-04-19 21:42:10 UTC) #4
Aaron Boodman
Ben and I looked into a different approach where we leave EPM containing RVH. This ...
8 years, 8 months ago (2012-04-20 01:00:55 UTC) #5
benwells
https://chromiumcodereview.appspot.com/10113005/diff/2001/chrome/browser/automation/automation_util.cc File chrome/browser/automation/automation_util.cc (right): https://chromiumcodereview.appspot.com/10113005/diff/2001/chrome/browser/automation/automation_util.cc#newcode489 chrome/browser/automation/automation_util.cc:489: contents_set.begin(); iter != contents_set.end(); On 2012/04/20 01:00:55, Aaron Boodman ...
8 years, 8 months ago (2012-04-20 01:08:50 UTC) #6
Aaron Boodman
https://chromiumcodereview.appspot.com/10113005/diff/2001/chrome/browser/automation/automation_util.cc File chrome/browser/automation/automation_util.cc (right): https://chromiumcodereview.appspot.com/10113005/diff/2001/chrome/browser/automation/automation_util.cc#newcode489 chrome/browser/automation/automation_util.cc:489: contents_set.begin(); iter != contents_set.end(); On 2012/04/20 01:08:51, benwells wrote: ...
8 years, 8 months ago (2012-04-20 01:15:11 UTC) #7
Matt Perry
https://chromiumcodereview.appspot.com/10113005/diff/2001/chrome/browser/automation/automation_util.cc File chrome/browser/automation/automation_util.cc (right): https://chromiumcodereview.appspot.com/10113005/diff/2001/chrome/browser/automation/automation_util.cc#newcode489 chrome/browser/automation/automation_util.cc:489: contents_set.begin(); iter != contents_set.end(); On 2012/04/20 01:08:51, benwells wrote: ...
8 years, 8 months ago (2012-04-20 01:15:52 UTC) #8
benwells
Back to RVH, running try jobs now.... https://chromiumcodereview.appspot.com/10113005/diff/22001/chrome/browser/automation/automation_provider_observers.cc File chrome/browser/automation/automation_provider_observers.cc (right): https://chromiumcodereview.appspot.com/10113005/diff/22001/chrome/browser/automation/automation_provider_observers.cc#newcode511 chrome/browser/automation/automation_provider_observers.cc:511: manager->background_hosts().begin(); This ...
8 years, 8 months ago (2012-04-20 03:55:14 UTC) #9
Aaron Boodman
https://chromiumcodereview.appspot.com/10113005/diff/22001/chrome/browser/automation/automation_provider_observers.cc File chrome/browser/automation/automation_provider_observers.cc (right): https://chromiumcodereview.appspot.com/10113005/diff/22001/chrome/browser/automation/automation_provider_observers.cc#newcode511 chrome/browser/automation/automation_provider_observers.cc:511: manager->background_hosts().begin(); On 2012/04/20 03:55:14, benwells wrote: > This logic ...
8 years, 8 months ago (2012-04-20 06:34:56 UTC) #10
benwells
http://codereview.chromium.org/10113005/diff/22001/chrome/browser/automation/automation_provider_observers.cc File chrome/browser/automation/automation_provider_observers.cc (right): http://codereview.chromium.org/10113005/diff/22001/chrome/browser/automation/automation_provider_observers.cc#newcode511 chrome/browser/automation/automation_provider_observers.cc:511: manager->background_hosts().begin(); On 2012/04/20 06:34:56, Aaron Boodman wrote: > On ...
8 years, 8 months ago (2012-04-23 05:00:26 UTC) #11
Charlie Reis
I like this approach much better! One minor comment below. https://chromiumcodereview.appspot.com/10113005/diff/45001/chrome/browser/extensions/extension_process_manager.cc File chrome/browser/extensions/extension_process_manager.cc (right): https://chromiumcodereview.appspot.com/10113005/diff/45001/chrome/browser/extensions/extension_process_manager.cc#newcode325 ...
8 years, 8 months ago (2012-04-23 20:21:49 UTC) #12
Matt Perry
https://chromiumcodereview.appspot.com/10113005/diff/22001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://chromiumcodereview.appspot.com/10113005/diff/22001/content/browser/renderer_host/render_widget_host_impl.cc#newcode246 content/browser/renderer_host/render_widget_host_impl.cc:246: bool RenderWidgetHostImpl::IsLoading() const { On 2012/04/23 05:00:26, benwells wrote: ...
8 years, 8 months ago (2012-04-23 21:53:04 UTC) #13
benwells
Comments addressed. +avi for contents/ changes https://chromiumcodereview.appspot.com/10113005/diff/45001/chrome/browser/extensions/extension_browsertest.cc File chrome/browser/extensions/extension_browsertest.cc (right): https://chromiumcodereview.appspot.com/10113005/diff/45001/chrome/browser/extensions/extension_browsertest.cc#newcode410 chrome/browser/extensions/extension_browsertest.cc:410: iter = all_views.begin(); ...
8 years, 8 months ago (2012-04-24 04:31:26 UTC) #14
Matt Perry
lgtm
8 years, 8 months ago (2012-04-24 23:22:59 UTC) #15
Charlie Reis
LGTM http://codereview.chromium.org/10113005/diff/53001/chrome/browser/extensions/extension_devtools_browsertests.cc File chrome/browser/extensions/extension_devtools_browsertests.cc (right): http://codereview.chromium.org/10113005/diff/53001/chrome/browser/extensions/extension_devtools_browsertests.cc#newcode32 chrome/browser/extensions/extension_devtools_browsertests.cc:32: // Looks for an background ExtensionHost whose URL ...
8 years, 8 months ago (2012-04-25 00:04:12 UTC) #16
benwells
-avi, +jam for content/
8 years, 8 months ago (2012-04-25 01:42:52 UTC) #17
jam
content lgtm
8 years, 8 months ago (2012-04-25 01:52:36 UTC) #18
Aaron Boodman
LGTM Up to you as to whether to get rid of platform_hosts_ now or in ...
8 years, 8 months ago (2012-04-25 21:27:05 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benwells@chromium.org/10113005/53001
8 years, 8 months ago (2012-04-25 23:08:12 UTC) #20
commit-bot: I haz the power
8 years, 8 months ago (2012-04-26 00:47:37 UTC) #21
Change committed as 134028

Powered by Google App Engine
This is Rietveld 408576698