| Index: chrome/browser/ui/views/toolbar/toolbar_action_view.cc
|
| diff --git a/chrome/browser/ui/views/toolbar/toolbar_action_view.cc b/chrome/browser/ui/views/toolbar/toolbar_action_view.cc
|
| index f7e78445bf0cff82c7c51a016b5fde3d611aafff..bf5b3f00270f366cc7c6346a0f142a209c2ed25d 100644
|
| --- a/chrome/browser/ui/views/toolbar/toolbar_action_view.cc
|
| +++ b/chrome/browser/ui/views/toolbar/toolbar_action_view.cc
|
| @@ -43,10 +43,6 @@ namespace {
|
| // handled directly by the Image.
|
| const int kBorderInset = 0;
|
|
|
| -// The callback to call directly before showing the context menu.
|
| -ToolbarActionView::ContextMenuCallback* context_menu_callback_for_test =
|
| - nullptr;
|
| -
|
| } // namespace
|
|
|
| ////////////////////////////////////////////////////////////////////////////////
|
| @@ -178,11 +174,6 @@ gfx::ImageSkia ToolbarActionView::GetIconForTest() {
|
| return GetImage(views::Button::STATE_NORMAL);
|
| }
|
|
|
| -void ToolbarActionView::set_context_menu_callback_for_testing(
|
| - base::Callback<void(ToolbarActionView*)>* callback) {
|
| - context_menu_callback_for_test = callback;
|
| -}
|
| -
|
| gfx::Size ToolbarActionView::GetPreferredSize() const {
|
| return gfx::Size(ToolbarActionsBar::IconWidth(false),
|
| ToolbarActionsBar::IconHeight());
|
| @@ -302,8 +293,6 @@ void ToolbarActionView::DoShowContextMenu(
|
| menu_ = menu_adapter_->CreateMenu();
|
| menu_runner_.reset(new views::MenuRunner(menu_, run_types));
|
|
|
| - if (context_menu_callback_for_test)
|
| - context_menu_callback_for_test->Run(this);
|
| ignore_result(
|
| menu_runner_->RunMenuAt(parent, this, gfx::Rect(screen_loc, size()),
|
| views::MENU_ANCHOR_TOPLEFT, source_type));
|
|
|