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

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

Issue 2736903004: Add sound volume to device attribute reporting (Closed)
Patch Set: Fixed tests (initialize CrasAudioHandler), added sound volume test Created 3 years, 9 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/policy/device_policy_decoder_chromeos.cc
diff --git a/chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc b/chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc
index 6d92f46a9b8ae70289f11ba1fc6116bf25566cd9..e142611e18aeff4e469a2739d978e30aa2c4ed3f 100644
--- a/chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc
+++ b/chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc
@@ -491,6 +491,13 @@ void DecodeReportingPolicies(const em::ChromeDeviceSettingsProto& policy,
DecodeIntegerValue(container.device_status_frequency()),
nullptr);
}
+ if (container.has_report_sound_volume()) {
+ policies->Set(
+ key::kReportSoundVolume, POLICY_LEVEL_MANDATORY,
Andrew T Wilson (Slow) 2017/03/09 15:56:34 I wouldn't build a separate control for this - jus
+ POLICY_SCOPE_MACHINE, POLICY_SOURCE_CLOUD,
+ base::MakeUnique<base::Value>(container.report_sound_volume()),
+ nullptr);
+ }
}
if (policy.has_device_heartbeat_settings()) {

Powered by Google App Engine
This is Rietveld 408576698