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

Unified Diff: chrome/browser/tab_contents/render_view_context_menu.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_context_menu.cc
diff --git a/chrome/browser/tab_contents/render_view_context_menu.cc b/chrome/browser/tab_contents/render_view_context_menu.cc
index b1190a4729f718b1787732f2720d0c31b5ea01fb..351bbbebf91e940a2ce78bc450e4868fe4f18de8 100644
--- a/chrome/browser/tab_contents/render_view_context_menu.cc
+++ b/chrome/browser/tab_contents/render_view_context_menu.cc
@@ -1808,11 +1808,10 @@ void RenderViewContextMenu::OpenURL(
details.source_frame_id = frame_id;
details.target_url = url;
details.target_tab_contents = new_contents;
- Profile* profile =
- Profile::FromBrowserContext(source_tab_contents_->browser_context());
NotificationService::current()->Notify(
content::NOTIFICATION_RETARGETING,
- Source<Profile>(profile),
+ Source<content::BrowserContext>(
+ source_tab_contents_->browser_context()),
Details<content::RetargetingDetails>(&details));
}
}

Powered by Google App Engine
This is Rietveld 408576698