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