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

Unified Diff: chrome/browser/tab_contents/background_contents.cc

Issue 7464009: Removal of Profile from content part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: slight tweaking for comments Created 9 years, 5 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/tab_contents/background_contents.cc
diff --git a/chrome/browser/tab_contents/background_contents.cc b/chrome/browser/tab_contents/background_contents.cc
index dbd0dfb94c167d1fc1adb975c84415db61dd882b..66c20a933616b44d92b062f1d283c14310e94e63 100644
--- a/chrome/browser/tab_contents/background_contents.cc
+++ b/chrome/browser/tab_contents/background_contents.cc
@@ -26,7 +26,8 @@ BackgroundContents::BackgroundContents(SiteInstance* site_instance,
int routing_id,
Delegate* delegate)
: delegate_(delegate) {
- Profile* profile = site_instance->browsing_instance()->profile();
+ Profile* profile = Profile::FromBrowserContext(
+ site_instance->browsing_instance()->browser_context());
// TODO(rafaelw): Implement correct session storage.
render_view_host_ = new RenderViewHost(site_instance, this, routing_id, NULL);
@@ -171,7 +172,8 @@ void BackgroundContents::RenderViewGone(RenderViewHost* rvh,
}
RendererPreferences BackgroundContents::GetRendererPrefs(
- Profile* profile) const {
+ content::BrowserContext* browser_context) const {
+ Profile* profile = Profile::FromBrowserContext(browser_context);
RendererPreferences preferences;
renderer_preferences_util::UpdateFromSystemSettings(&preferences, profile);
return preferences;
« no previous file with comments | « chrome/browser/tab_contents/background_contents.h ('k') | chrome/browser/tab_contents/render_view_host_delegate_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698