| 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() {
|
|
|