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

Unified Diff: chrome/browser/background/background_contents_service.cc

Issue 7464009: Removal of Profile from content part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: works now 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/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..cf9b10bbf519a887e0b05e2c08ab690e0fda1528 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->context()));
if (!browser)
return;
browser->AddTabContents(new_contents, disposition, initial_pos, user_gesture);

Powered by Google App Engine
This is Rietveld 408576698