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

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

Issue 2813053002: MD Settings: Internet: Cellular: Add data roaming toggle (Closed)
Patch Set: . Created 3 years, 8 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/extensions/settings_api_helpers.h" 10 #include "chrome/browser/extensions/settings_api_helpers.h"
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 (*s_whitelist)[chromeos::kAttestationForContentProtectionEnabled] = 272 (*s_whitelist)[chromeos::kAttestationForContentProtectionEnabled] =
273 settings_private::PrefType::PREF_TYPE_BOOLEAN; 273 settings_private::PrefType::PREF_TYPE_BOOLEAN;
274 274
275 // Bluetooth & Internet settings. 275 // Bluetooth & Internet settings.
276 (*s_whitelist)[chromeos::kAllowBluetooth] = 276 (*s_whitelist)[chromeos::kAllowBluetooth] =
277 settings_private::PrefType::PREF_TYPE_BOOLEAN; 277 settings_private::PrefType::PREF_TYPE_BOOLEAN;
278 (*s_whitelist)[proxy_config::prefs::kUseSharedProxies] = 278 (*s_whitelist)[proxy_config::prefs::kUseSharedProxies] =
279 settings_private::PrefType::PREF_TYPE_BOOLEAN; 279 settings_private::PrefType::PREF_TYPE_BOOLEAN;
280 (*s_whitelist)[::prefs::kWakeOnWifiDarkConnect] = 280 (*s_whitelist)[::prefs::kWakeOnWifiDarkConnect] =
281 settings_private::PrefType::PREF_TYPE_BOOLEAN; 281 settings_private::PrefType::PREF_TYPE_BOOLEAN;
282 (*s_whitelist)[::chromeos::kSignedDataRoamingEnabled] =
283 settings_private::PrefType::PREF_TYPE_BOOLEAN;
282 284
283 // Timezone settings. 285 // Timezone settings.
284 (*s_whitelist)[chromeos::kSystemTimezone] = 286 (*s_whitelist)[chromeos::kSystemTimezone] =
285 settings_private::PrefType::PREF_TYPE_BOOLEAN; 287 settings_private::PrefType::PREF_TYPE_BOOLEAN;
286 (*s_whitelist)[::prefs::kResolveTimezoneByGeolocation] = 288 (*s_whitelist)[::prefs::kResolveTimezoneByGeolocation] =
287 settings_private::PrefType::PREF_TYPE_BOOLEAN; 289 settings_private::PrefType::PREF_TYPE_BOOLEAN;
288 290
289 // Ash settings. 291 // Ash settings.
290 (*s_whitelist)[::prefs::kEnableStylusTools] = 292 (*s_whitelist)[::prefs::kEnableStylusTools] =
291 settings_private::PrefType::PREF_TYPE_BOOLEAN; 293 settings_private::PrefType::PREF_TYPE_BOOLEAN;
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
767 ExtensionPrefValueMapFactory::GetForBrowserContext(profile_) 769 ExtensionPrefValueMapFactory::GetForBrowserContext(profile_)
768 ->GetExtensionControllingPref(pref_object.key); 770 ->GetExtensionControllingPref(pref_object.key);
769 if (extension_id.empty()) 771 if (extension_id.empty())
770 return nullptr; 772 return nullptr;
771 773
772 return ExtensionRegistry::Get(profile_)->GetExtensionById( 774 return ExtensionRegistry::Get(profile_)->GetExtensionById(
773 extension_id, ExtensionRegistry::ENABLED); 775 extension_id, ExtensionRegistry::ENABLED);
774 } 776 }
775 777
776 } // namespace extensions 778 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/app/settings_strings.grdp ('k') | chrome/browser/resources/settings/internet_page/internet_detail_page.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698