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..620ca36d831e4a4ed99a26a655475901157b06b5 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 = |
+ static_cast<Profile*>(site_instance->browsing_instance()->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* context) const { |
+ Profile* profile = static_cast<Profile*>(context); |
RendererPreferences preferences; |
renderer_preferences_util::UpdateFromSystemSettings(&preferences, profile); |
return preferences; |