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

Unified Diff: chrome/browser/tab_contents/render_view_context_menu.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/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 bb0177fc1f4bf612e2f2db093d4f58d4e2c2339c..289dea3a0275474afb758dc6208be41c80ea2cd6 100644
--- a/chrome/browser/tab_contents/render_view_context_menu.cc
+++ b/chrome/browser/tab_contents/render_view_context_menu.cc
@@ -188,14 +188,13 @@ RenderViewContextMenu::RenderViewContextMenu(
const ContextMenuParams& params)
: params_(params),
source_tab_contents_(tab_contents),
- profile_(tab_contents->profile()),
+ profile_(static_cast<Profile*>(tab_contents->context())),
ALLOW_THIS_IN_INITIALIZER_LIST(menu_model_(this)),
external_(false),
ALLOW_THIS_IN_INITIALIZER_LIST(spellcheck_submenu_model_(this)),
ALLOW_THIS_IN_INITIALIZER_LIST(bidi_submenu_model_(this)),
ALLOW_THIS_IN_INITIALIZER_LIST(protocol_handler_submenu_model_(this)),
- protocol_handler_registry_(
- tab_contents->profile()->GetProtocolHandlerRegistry()) {
+ protocol_handler_registry_(profile_->GetProtocolHandlerRegistry()) {
}
RenderViewContextMenu::~RenderViewContextMenu() {

Powered by Google App Engine
This is Rietveld 408576698