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

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

Issue 7622012: Removal of Profile from content part 8. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 9 years, 4 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/render_view_host_delegate_helper.cc
diff --git a/chrome/browser/tab_contents/render_view_host_delegate_helper.cc b/chrome/browser/tab_contents/render_view_host_delegate_helper.cc
index 7a697dba62c71e8f1b29efde1b436e2bd34ab113..78cbf565985dff44932d3ae9d3a1bcf8bcb7138c 100644
--- a/chrome/browser/tab_contents/render_view_host_delegate_helper.cc
+++ b/chrome/browser/tab_contents/render_view_host_delegate_helper.cc
@@ -244,11 +244,9 @@ TabContents* RenderViewHostDelegateViewHelper::CreateNewWindowFromTabContents(
details.source_frame_id = params.opener_frame_id;
details.target_url = params.target_url;
details.target_tab_contents = new_contents;
- Profile* profile =
- Profile::FromBrowserContext(tab_contents->browser_context());
NotificationService::current()->Notify(
content::NOTIFICATION_RETARGETING,
- Source<Profile>(profile),
+ Source<content::BrowserContext>(tab_contents->browser_context()),
Details<content::RetargetingDetails>(&details));
if (tab_contents->delegate())
« no previous file with comments | « chrome/browser/tab_contents/render_view_context_menu.cc ('k') | content/browser/renderer_host/render_view_host_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698