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

Side by Side Diff: chrome/browser/extensions/api/settings_private/prefs_util.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, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/extensions/api/settings_private/prefs_util.h" 5 #include "chrome/browser/extensions/api/settings_private/prefs_util.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 #include "chrome/browser/browser_process.h" 8 #include "chrome/browser/browser_process.h"
9 #include "chrome/browser/extensions/chrome_extension_function.h" 9 #include "chrome/browser/extensions/chrome_extension_function.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 (*s_whitelist)["settings.internet.wake_on_wifi_darkconnect"] = 250 (*s_whitelist)["settings.internet.wake_on_wifi_darkconnect"] =
251 settings_private::PrefType::PREF_TYPE_BOOLEAN; 251 settings_private::PrefType::PREF_TYPE_BOOLEAN;
252 (*s_whitelist)["settings.enable_screen_lock"] = 252 (*s_whitelist)["settings.enable_screen_lock"] =
253 settings_private::PrefType::PREF_TYPE_BOOLEAN; 253 settings_private::PrefType::PREF_TYPE_BOOLEAN;
254 254
255 // Input method settings. 255 // Input method settings.
256 (*s_whitelist)["settings.language.preload_engines"] = 256 (*s_whitelist)["settings.language.preload_engines"] =
257 settings_private::PrefType::PREF_TYPE_STRING; 257 settings_private::PrefType::PREF_TYPE_STRING;
258 (*s_whitelist)["settings.language.enabled_extension_imes"] = 258 (*s_whitelist)["settings.language.enabled_extension_imes"] =
259 settings_private::PrefType::PREF_TYPE_STRING; 259 settings_private::PrefType::PREF_TYPE_STRING;
260 (*s_whitelist)["settings.launch_note_app_on_eject_event"] =
261 settings_private::PrefType::PREF_TYPE_BOOLEAN;
260 262
261 // Device settings. 263 // Device settings.
262 (*s_whitelist)["settings.touchpad.enable_tap_to_click"] = 264 (*s_whitelist)["settings.touchpad.enable_tap_to_click"] =
263 settings_private::PrefType::PREF_TYPE_BOOLEAN; 265 settings_private::PrefType::PREF_TYPE_BOOLEAN;
264 (*s_whitelist)["settings.touchpad.natural_scroll"] = 266 (*s_whitelist)["settings.touchpad.natural_scroll"] =
265 settings_private::PrefType::PREF_TYPE_BOOLEAN; 267 settings_private::PrefType::PREF_TYPE_BOOLEAN;
266 (*s_whitelist)["settings.touchpad.sensitivity2"] = 268 (*s_whitelist)["settings.touchpad.sensitivity2"] =
267 settings_private::PrefType::PREF_TYPE_NUMBER; 269 settings_private::PrefType::PREF_TYPE_NUMBER;
268 (*s_whitelist)["settings.mouse.primary_right"] = 270 (*s_whitelist)["settings.mouse.primary_right"] =
269 settings_private::PrefType::PREF_TYPE_BOOLEAN; 271 settings_private::PrefType::PREF_TYPE_BOOLEAN;
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
649 651
650 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) { 652 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) {
651 #if defined(OS_CHROMEOS) 653 #if defined(OS_CHROMEOS)
652 return CrosSettings::Get()->IsCrosSettings(pref_name); 654 return CrosSettings::Get()->IsCrosSettings(pref_name);
653 #else 655 #else
654 return false; 656 return false;
655 #endif 657 #endif
656 } 658 }
657 659
658 } // namespace extensions 660 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/preferences.cc ('k') | chrome/browser/resources/settings/device_page/compiled_resources2.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698