Index: chrome/browser/background/background_contents_service.cc |
diff --git a/chrome/browser/background/background_contents_service.cc b/chrome/browser/background/background_contents_service.cc |
index 065b892d7e56f03d5b4015a44a85be70fc42eb00..76bbb474ad88ba56d4645200d665a0f7685359e3 100644 |
--- a/chrome/browser/background/background_contents_service.cc |
+++ b/chrome/browser/background/background_contents_service.cc |
@@ -573,7 +573,7 @@ void BackgroundContentsService::AddTabContents( |
const gfx::Rect& initial_pos, |
bool user_gesture) { |
Browser* browser = BrowserList::GetLastActiveWithProfile( |
- new_contents->profile()); |
+ static_cast<Profile*>(new_contents->browser_context())); |
if (!browser) |
return; |
browser->AddTabContents(new_contents, disposition, initial_pos, user_gesture); |