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

Unified Diff: ui/views/touchui/touch_selection_menu_runner_views.cc

Issue 1391893003: NOT FOR REVIEW: Aura on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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: 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))

Powered by Google App Engine
This is Rietveld 408576698