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

Unified Diff: chrome/browser/ui/webui/options/chromeos/options_stylus_handler.cc

Issue 2644713002: cros: Use runtime stylus detection for ash palette. (Closed)
Patch Set: Initial upload Created 3 years, 11 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: chrome/browser/ui/webui/options/chromeos/options_stylus_handler.cc
diff --git a/chrome/browser/ui/webui/options/chromeos/options_stylus_handler.cc b/chrome/browser/ui/webui/options/chromeos/options_stylus_handler.cc
index d832ba9f4ca39872344dc3608055bff4d4ef7ab5..a478e0e6c6e8243b3b91caefa5a3146f790800b6 100644
--- a/chrome/browser/ui/webui/options/chromeos/options_stylus_handler.cc
+++ b/chrome/browser/ui/webui/options/chromeos/options_stylus_handler.cc
@@ -61,8 +61,7 @@ void OptionsStylusHandler::GetLocalizedValues(
l10n_util::GetStringUTF16(
IDS_OPTIONS_STYLUS_NOTE_TAKING_APP_WAITING_FOR_ANDROID));
- localized_strings->SetBoolean("showStylusSettings",
- ash::IsPaletteFeatureEnabled());
+ localized_strings->SetBoolean("showStylusSettings", ash::HasStylusInput());
stevenjb 2017/01/21 00:23:50 Do we need an observer now to set this if it chang
jdufault 2017/01/25 00:53:15 Technically, yes, but I think the only time this w
stevenjb 2017/01/25 01:12:13 Custom flags are not too uncommon, so this really
jdufault 2017/02/03 20:30:19 If Chrome browser process crashed and immediately
}
void OptionsStylusHandler::InitializePage() {

Powered by Google App Engine
This is Rietveld 408576698