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

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

Issue 1411863002: Use kMetricsReportingEnabled instead of kStatsReporingPref on metrics side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Delete settings pref ref from priviate_api + Added comments Created 5 years, 2 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 "base/prefs/pref_service.h" 7 #include "base/prefs/pref_service.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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 (*s_whitelist)["settings.a11y.sticky_keys_enabled"] = 143 (*s_whitelist)["settings.a11y.sticky_keys_enabled"] =
144 settings_private::PrefType::PREF_TYPE_BOOLEAN; 144 settings_private::PrefType::PREF_TYPE_BOOLEAN;
145 (*s_whitelist)["settings.a11y.virtual_keyboard"] = 145 (*s_whitelist)["settings.a11y.virtual_keyboard"] =
146 settings_private::PrefType::PREF_TYPE_BOOLEAN; 146 settings_private::PrefType::PREF_TYPE_BOOLEAN;
147 (*s_whitelist)["settings.clock.use_24hour_clock"] = 147 (*s_whitelist)["settings.clock.use_24hour_clock"] =
148 settings_private::PrefType::PREF_TYPE_BOOLEAN; 148 settings_private::PrefType::PREF_TYPE_BOOLEAN;
149 (*s_whitelist)["settings.language.preferred_languages"] = 149 (*s_whitelist)["settings.language.preferred_languages"] =
150 settings_private::PrefType::PREF_TYPE_STRING; 150 settings_private::PrefType::PREF_TYPE_STRING;
151 (*s_whitelist)["settings.touchpad.enable_tap_dragging"] = 151 (*s_whitelist)["settings.touchpad.enable_tap_dragging"] =
152 settings_private::PrefType::PREF_TYPE_BOOLEAN; 152 settings_private::PrefType::PREF_TYPE_BOOLEAN;
153 (*s_whitelist)["cros.metrics.reportingEnabled"] =
154 settings_private::PrefType::PREF_TYPE_BOOLEAN;
155 (*s_whitelist)["cros.device.attestation_for_content_protection_enabled"] = 153 (*s_whitelist)["cros.device.attestation_for_content_protection_enabled"] =
156 settings_private::PrefType::PREF_TYPE_BOOLEAN; 154 settings_private::PrefType::PREF_TYPE_BOOLEAN;
157 (*s_whitelist)["settings.internet.wake_on_wifi_ssid"] = 155 (*s_whitelist)["settings.internet.wake_on_wifi_ssid"] =
158 settings_private::PrefType::PREF_TYPE_BOOLEAN; 156 settings_private::PrefType::PREF_TYPE_BOOLEAN;
159 #else 157 #else
160 (*s_whitelist)["intl.accept_languages"] = 158 (*s_whitelist)["intl.accept_languages"] =
161 settings_private::PrefType::PREF_TYPE_STRING; 159 settings_private::PrefType::PREF_TYPE_STRING;
162 #endif 160 #endif
163 161
164 return *s_whitelist; 162 return *s_whitelist;
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 495
498 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) { 496 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) {
499 #if defined(OS_CHROMEOS) 497 #if defined(OS_CHROMEOS)
500 return CrosSettings::Get()->IsCrosSettings(pref_name); 498 return CrosSettings::Get()->IsCrosSettings(pref_name);
501 #else 499 #else
502 return false; 500 return false;
503 #endif 501 #endif
504 } 502 }
505 503
506 } // namespace extensions 504 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698