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

Unified Diff: ash/accelerators/accelerator_controller.cc

Issue 2825383003: Fix stylus tools palette. (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « no previous file | ash/ash_switches.h » ('j') | ash/system/status_area_widget.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/accelerators/accelerator_controller.cc
diff --git a/ash/accelerators/accelerator_controller.cc b/ash/accelerators/accelerator_controller.cc
index 4e06455c59a0d117434af3e32157e1a62d03a814..4686fb4f57157fe4367aee38b70f488827d2d570 100644
--- a/ash/accelerators/accelerator_controller.cc
+++ b/ash/accelerators/accelerator_controller.cc
@@ -520,7 +520,8 @@ void HandleShowStylusTools() {
bool CanHandleShowStylusTools() {
return Shell::Get()->palette_delegate() &&
- Shell::Get()->palette_delegate()->ShouldShowPalette();
+ Shell::Get()->palette_delegate()->ShouldShowPalette() &&
+ palette_utils::ShouldCreatePalette();
jdufault 2017/04/19 22:58:38 Check this first
wutao 2017/04/20 16:17:51 Done.
}
void HandleSuspend() {
« no previous file with comments | « no previous file | ash/ash_switches.h » ('j') | ash/system/status_area_widget.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698