| Index: ui/views/touchui/touch_selection_menu_runner_views.cc
|
| diff --git a/ui/views/touchui/touch_selection_menu_runner_views.cc b/ui/views/touchui/touch_selection_menu_runner_views.cc
|
| index 6f44e526957c84f4f8ac1b2e7d82f29eb5755926..f154d988d24cff49bc9c8d448494fa6515a21095 100644
|
| --- a/ui/views/touchui/touch_selection_menu_runner_views.cc
|
| +++ b/ui/views/touchui/touch_selection_menu_runner_views.cc
|
| @@ -140,6 +140,10 @@ TouchSelectionMenuRunnerViews::Menu::~Menu() {
|
| }
|
|
|
| void TouchSelectionMenuRunnerViews::Menu::CreateButtons() {
|
| +#if defined(OS_ANDROID)
|
| + if (!client_)
|
| + return;
|
| +#endif
|
| for (size_t i = 0; i < arraysize(kMenuCommands); i++) {
|
| int command_id = kMenuCommands[i];
|
| if (!client_->IsCommandIdEnabled(command_id))
|
|
|