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

Issue 9221017: Hide BrowsingInstance from all but SiteInstance, as intended by design. (Closed)

Created:
8 years, 11 months ago by Jói
Modified:
8 years, 11 months ago
CC:
chromium-reviews, Avi (use Gerrit), creis+watch_chromium.org, ajwong+watch_chromium.org, jam, mihaip+watch_chromium.org, dpranke-watch+content_chromium.org, joi+watch-content_chromium.org, Aaron Boodman, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Hide BrowsingInstance from all but SiteInstance, as intended by design. See comment on BrowsingInstance class that explains it should only be visible to SiteInstance. By restoring this design, we also eliminate one Chrome->Content dependency. TBR=ben@chromium.org BUG=98716 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=118090

Patch Set 1 #

Patch Set 2 : Make all methods non-public to help ensure BrowsingInstance design is preserved in future. #

Total comments: 2

Patch Set 3 : Introduce ExtensionProcessManager::GetProfile method. #

Patch Set 4 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -54 lines) Patch
M chrome/browser/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/debugger/devtools_window.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_host.cc View 1 2 3 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/extensions/extension_process_manager.h View 1 2 3 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_process_manager.cc View 1 2 10 chunks +14 lines, -21 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_view_host_observer.cc View 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/tab_contents/background_contents.cc View 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/ui/gtk/web_intent_picker_gtk.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options/extension_settings_handler.cc View 1 2 3 2 chunks +1 line, -2 lines 0 comments Download
M content/browser/browsing_instance.h View 1 3 chunks +9 lines, -7 lines 0 comments Download
M content/browser/browsing_instance.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/debugger/devtools_manager_impl.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/site_instance.h View 3 chunks +6 lines, -3 lines 0 comments Download
M content/browser/site_instance.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/site_instance_unittest.cc View 1 1 chunk +8 lines, -0 lines 0 comments Download
M content/browser/tab_contents/render_view_host_manager_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Jói
jam: Main reviewer. mpcomplete: chrome/browser/extensions ben: chrome/browser/ui/OWNERS rubber stamp Cheers, Jói
8 years, 11 months ago (2012-01-17 17:36:38 UTC) #1
Jói
FYI, I updated the change description and subject, which previously said "Hide BrowsingInstance from all ...
8 years, 11 months ago (2012-01-17 17:37:29 UTC) #2
Charlie Reis
Drive-by: Thanks for this change. I think it makes a lot of practical sense to ...
8 years, 11 months ago (2012-01-17 19:27:44 UTC) #3
Matt Perry
lgtm http://codereview.chromium.org/9221017/diff/18/chrome/browser/extensions/extension_process_manager.cc File chrome/browser/extensions/extension_process_manager.cc (right): http://codereview.chromium.org/9221017/diff/18/chrome/browser/extensions/extension_process_manager.cc#newcode159 chrome/browser/extensions/extension_process_manager.cc:159: Profile::FromBrowserContext(site_instance_->GetBrowserContext()); nit: since you're in here, if you ...
8 years, 11 months ago (2012-01-17 19:35:09 UTC) #4
jam
sweet, lgtm
8 years, 11 months ago (2012-01-17 19:37:01 UTC) #5
Jói
http://codereview.chromium.org/9221017/diff/18/chrome/browser/extensions/extension_process_manager.cc File chrome/browser/extensions/extension_process_manager.cc (right): http://codereview.chromium.org/9221017/diff/18/chrome/browser/extensions/extension_process_manager.cc#newcode159 chrome/browser/extensions/extension_process_manager.cc:159: Profile::FromBrowserContext(site_instance_->GetBrowserContext()); On 2012/01/17 19:35:09, Matt Perry wrote: > nit: ...
8 years, 11 months ago (2012-01-18 10:29:11 UTC) #6
Jói
I'm marking this TBR=ben@chromium.org and asking the CQ to do its thing, since the chrome/browser/ui ...
8 years, 11 months ago (2012-01-18 12:29:58 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joi@chromium.org/9221017/7019
8 years, 11 months ago (2012-01-18 12:30:16 UTC) #8
commit-bot: I haz the power
8 years, 11 months ago (2012-01-18 13:39:04 UTC) #9
Change committed as 118090

Powered by Google App Engine
This is Rietveld 408576698