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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 9221017: Hide BrowsingInstance from all but SiteInstance, as intended by design. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make all methods non-public to help ensure BrowsingInstance design is preserved in future. Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index a110f870e4737b075ad8212b8466f53e85ae4252..ba885ca1fe18bfae010e69154a802f5e81432e6b 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -66,7 +66,6 @@
#include "chrome/common/render_messages.h"
#include "chrome/common/url_constants.h"
#include "content/browser/browser_url_handler.h"
-#include "content/browser/browsing_instance.h"
#include "content/browser/child_process_security_policy.h"
#include "content/browser/gpu/gpu_data_manager.h"
#include "content/browser/gpu/gpu_process_host.h"
@@ -327,7 +326,7 @@ void ChromeContentBrowserClient::RenderViewHostCreated(
SiteInstance* site_instance = render_view_host->site_instance();
Profile* profile = Profile::FromBrowserContext(
- site_instance->browsing_instance()->browser_context());
+ site_instance->GetBrowserContext());
new ChromeRenderViewHostObserver(render_view_host,
profile->GetNetworkPredictor());
@@ -489,7 +488,7 @@ void ChromeContentBrowserClient::SiteInstanceGotProcess(
CHECK(site_instance->HasProcess());
Profile* profile = Profile::FromBrowserContext(
- site_instance->browsing_instance()->browser_context());
+ site_instance->GetBrowserContext());
ExtensionService* service = profile->GetExtensionService();
if (!service)
return;
@@ -518,7 +517,7 @@ void ChromeContentBrowserClient::SiteInstanceDeleting(
return;
Profile* profile = Profile::FromBrowserContext(
- site_instance->browsing_instance()->browser_context());
+ site_instance->GetBrowserContext());
ExtensionService* service = profile->GetExtensionService();
if (!service)
return;

Powered by Google App Engine
This is Rietveld 408576698