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

Unified Diff: chrome/browser/chromeos/device_settings_provider.cc

Issue 10103029: Add device location reporting (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Nits addressed. Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/device_settings_provider.cc
diff --git a/chrome/browser/chromeos/device_settings_provider.cc b/chrome/browser/chromeos/device_settings_provider.cc
index c24d778e6cb51a8bfbbd1e3f4e9917b2badcb766..60faf48866e53e65fcad6dc51a34b3bae346de67 100644
--- a/chrome/browser/chromeos/device_settings_provider.cc
+++ b/chrome/browser/chromeos/device_settings_provider.cc
@@ -53,6 +53,7 @@ const char* kKnownSettings[] = {
kReleaseChannelDelegated,
kReportDeviceActivityTimes,
kReportDeviceBootMode,
+ kReportDeviceLocation,
kReportDeviceVersionInfo,
kScreenSaverExtensionId,
kScreenSaverTimeout,
@@ -287,14 +288,15 @@ void DeviceSettingsProvider::SetInPolicy() {
// The remaining settings don't support Set(), since they are not
// intended to be customizable by the user:
// kAppPack
- // kIdleLogoutTimeout,
- // kIdleLogoutWarningDuration,
- // kReleaseChannelDelegated,
+ // kIdleLogoutTimeout
+ // kIdleLogoutWarningDuration
+ // kReleaseChannelDelegated
// kReportDeviceVersionInfo
// kReportDeviceActivityTimes
// kReportDeviceBootMode
- // kScreenSaverExtensionId,
- // kScreenSaverTimeout,
+ // kReportDeviceLocation
+ // kScreenSaverExtensionId
+ // kScreenSaverTimeout
// kStartUpUrls
NOTREACHED();
@@ -490,6 +492,11 @@ void DeviceSettingsProvider::DecodeReportingPolicies(
kReportDeviceBootMode,
policy.device_reporting().report_boot_mode());
}
+ if (policy.device_reporting().has_report_location()) {
+ new_values_cache->SetBoolean(
+ kReportDeviceLocation,
+ policy.device_reporting().report_location());
+ }
}
}
« no previous file with comments | « chrome/browser/chromeos/cros_settings_names.cc ('k') | chrome/browser/chromeos/login/version_info_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698