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

Unified Diff: chrome/browser/ui/webui/settings/md_settings_ui.cc

Issue 2644713002: cros: Use runtime stylus detection for ash palette. (Closed)
Patch Set: Fix test Created 3 years, 10 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/settings/md_settings_ui.cc
diff --git a/chrome/browser/ui/webui/settings/md_settings_ui.cc b/chrome/browser/ui/webui/settings/md_settings_ui.cc
index 6485df3e98f1ca4ec3155ba799b21e3d4d97d4c4..e5a9ae4d0adaf3aeaa57dfc4fe659f1708d1261c 100644
--- a/chrome/browser/ui/webui/settings/md_settings_ui.cc
+++ b/chrome/browser/ui/webui/settings/md_settings_ui.cc
@@ -159,7 +159,8 @@ MdSettingsUI::MdSettingsUI(content::WebUI* web_ui, const GURL& url)
AddSettingsPageUIHandler(base::WrapUnique(
chromeos::settings::DateTimeHandler::Create(html_source)));
- html_source->AddBoolean("stylusAllowed", ash::IsPaletteFeatureEnabled());
+ AddSettingsPageUIHandler(
+ base::MakeUnique<chromeos::settings::StylusHandler>());
html_source->AddBoolean("pinUnlockEnabled",
chromeos::IsPinUnlockEnabled(profile->GetPrefs()));
html_source->AddBoolean("fingerprintUnlockEnabled",

Powered by Google App Engine
This is Rietveld 408576698