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

Unified Diff: chrome/browser/chromeos/policy/device_status_collector.cc

Issue 2425233002: Rename policy ReportArcStatus to ReportArcStatusEnabled (Closed)
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/device_status_collector_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/policy/device_status_collector.cc
diff --git a/chrome/browser/chromeos/policy/device_status_collector.cc b/chrome/browser/chromeos/policy/device_status_collector.cc
index 56bbbf3304f8a887063487f756461113a74ef75d..89cdc662bb73366cd48310fd7134bc4decfa2532 100644
--- a/chrome/browser/chromeos/policy/device_status_collector.cc
+++ b/chrome/browser/chromeos/policy/device_status_collector.cc
@@ -472,7 +472,8 @@ DeviceStatusCollector::DeviceStatusCollector(
running_kiosk_app_subscription_ = cros_settings_->AddSettingsObserver(
chromeos::kReportRunningKioskApp, callback);
- report_arc_status_pref_.Init(prefs::kReportArcStatus, local_state_, callback);
+ report_arc_status_pref_.Init(prefs::kReportArcStatusEnabled, local_state_,
+ callback);
// Fetch the current values of the policies.
UpdateReportingSettings();
@@ -500,7 +501,7 @@ DeviceStatusCollector::~DeviceStatusCollector() {
void DeviceStatusCollector::RegisterPrefs(PrefRegistrySimple* registry) {
registry->RegisterDictionaryPref(prefs::kDeviceActivityTimes,
new base::DictionaryValue);
- registry->RegisterBooleanPref(prefs::kReportArcStatus, true);
+ registry->RegisterBooleanPref(prefs::kReportArcStatusEnabled, true);
}
void DeviceStatusCollector::CheckIdleState() {
@@ -554,7 +555,8 @@ void DeviceStatusCollector::UpdateReportingSettings() {
report_kiosk_session_status_ = true;
}
- report_android_status_ = local_state_->GetBoolean(prefs::kReportArcStatus);
+ report_android_status_ =
+ local_state_->GetBoolean(prefs::kReportArcStatusEnabled);
if (!report_hardware_status_) {
ClearCachedResourceUsage();
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/device_status_collector_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698