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

Side by Side Diff: chrome/browser/extensions/api/settings_private/prefs_util.cc

Issue 1707613002: MD Settings: Start device page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixup Created 4 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 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 (*s_whitelist)["settings.language.preferred_languages"] = 213 (*s_whitelist)["settings.language.preferred_languages"] =
214 settings_private::PrefType::PREF_TYPE_STRING; 214 settings_private::PrefType::PREF_TYPE_STRING;
215 (*s_whitelist)["settings.touchpad.enable_tap_dragging"] = 215 (*s_whitelist)["settings.touchpad.enable_tap_dragging"] =
216 settings_private::PrefType::PREF_TYPE_BOOLEAN; 216 settings_private::PrefType::PREF_TYPE_BOOLEAN;
217 (*s_whitelist)["cros.metrics.reportingEnabled"] = 217 (*s_whitelist)["cros.metrics.reportingEnabled"] =
218 settings_private::PrefType::PREF_TYPE_BOOLEAN; 218 settings_private::PrefType::PREF_TYPE_BOOLEAN;
219 (*s_whitelist)["cros.device.attestation_for_content_protection_enabled"] = 219 (*s_whitelist)["cros.device.attestation_for_content_protection_enabled"] =
220 settings_private::PrefType::PREF_TYPE_BOOLEAN; 220 settings_private::PrefType::PREF_TYPE_BOOLEAN;
221 (*s_whitelist)["settings.internet.wake_on_wifi_darkconnect"] = 221 (*s_whitelist)["settings.internet.wake_on_wifi_darkconnect"] =
222 settings_private::PrefType::PREF_TYPE_BOOLEAN; 222 settings_private::PrefType::PREF_TYPE_BOOLEAN;
223
224 // Input settings.
225 (*s_whitelist)["settings.touchpad.enable_tap_to_click"] =
226 settings_private::PrefType::PREF_TYPE_BOOLEAN;
227 (*s_whitelist)["settings.touchpad.natural_scroll"] =
228 settings_private::PrefType::PREF_TYPE_BOOLEAN;
223 #else 229 #else
224 (*s_whitelist)["intl.accept_languages"] = 230 (*s_whitelist)["intl.accept_languages"] =
225 settings_private::PrefType::PREF_TYPE_STRING; 231 settings_private::PrefType::PREF_TYPE_STRING;
226 #endif 232 #endif
227 233
228 #if defined(GOOGLE_CHROME_BUILD) 234 #if defined(GOOGLE_CHROME_BUILD)
229 (*s_whitelist)["media_router.cloudservices.enabled"] = 235 (*s_whitelist)["media_router.cloudservices.enabled"] =
230 settings_private::PrefType::PREF_TYPE_BOOLEAN; 236 settings_private::PrefType::PREF_TYPE_BOOLEAN;
231 #endif // defined(GOOGLE_CHROME_BUILD) 237 #endif // defined(GOOGLE_CHROME_BUILD)
232 238
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 575
570 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) { 576 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) {
571 #if defined(OS_CHROMEOS) 577 #if defined(OS_CHROMEOS)
572 return CrosSettings::Get()->IsCrosSettings(pref_name); 578 return CrosSettings::Get()->IsCrosSettings(pref_name);
573 #else 579 #else
574 return false; 580 return false;
575 #endif 581 #endif
576 } 582 }
577 583
578 } // namespace extensions 584 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698