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

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

Issue 2178213002: Add note page to settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@stylus-add-switch
Patch Set: Address comments and add utility method Created 4 years, 5 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 fec14589a673af671830b3d72bca82c1c8a6ca28..7f90eb249835800bf55325b25eed57dcf1151090 100644
--- a/chrome/browser/ui/webui/settings/md_settings_ui.cc
+++ b/chrome/browser/ui/webui/settings/md_settings_ui.cc
@@ -36,6 +36,7 @@
#include "grit/settings_resources_map.h"
#if defined(OS_CHROMEOS)
+#include "ash/common/system/chromeos/palette/palette_utils.h"
#include "chrome/browser/chromeos/login/quick_unlock/quick_unlock_utils.h"
#include "chrome/browser/ui/webui/settings/chromeos/change_picture_handler.h"
#include "chrome/browser/ui/webui/settings/chromeos/device_keyboard_handler.h"
@@ -106,6 +107,7 @@ MdSettingsUI::MdSettingsUI(content::WebUI* web_ui, const GURL& url)
if (easy_unlock_handler)
AddSettingsPageUIHandler(easy_unlock_handler);
+ html_source->AddBoolean("noteAllowed", ash::IsPaletteEnabled());
html_source->AddBoolean("quickUnlockEnabled",
chromeos::IsQuickUnlockEnabled());
#endif
« no previous file with comments | « chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698