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

Unified Diff: extensions/browser/api/audio/audio_service_chromeos.cc

Issue 2688773002: Restrict deprecated parts of audio API usage to whitelisted apps (Closed)
Patch Set: . Created 3 years, 10 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 | « extensions/browser/api/audio/audio_apitest.cc ('k') | extensions/common/api/_behavior_features.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/audio/audio_service_chromeos.cc
diff --git a/extensions/browser/api/audio/audio_service_chromeos.cc b/extensions/browser/api/audio/audio_service_chromeos.cc
index 7ed9508e963f046fd8b9384acb7e86703bf287d5..161241412e8f5acced2c9369603fac1db0e2289f 100644
--- a/extensions/browser/api/audio/audio_service_chromeos.cc
+++ b/extensions/browser/api/audio/audio_service_chromeos.cc
@@ -351,14 +351,10 @@ AudioDeviceInfo AudioServiceImpl::ToAudioDeviceInfo(
info.stream_type = device.is_input
? extensions::api::audio::STREAM_TYPE_INPUT
: extensions::api::audio::STREAM_TYPE_OUTPUT;
- info.is_input = device.is_input;
info.device_type = GetAsAudioApiDeviceType(device.type);
info.display_name = device.display_name;
info.device_name = device.device_name;
info.is_active = device.active;
- info.is_muted = device.is_input
- ? cras_audio_handler_->IsInputMutedForDevice(device.id)
- : cras_audio_handler_->IsOutputMutedForDevice(device.id);
info.level =
device.is_input
? cras_audio_handler_->GetOutputVolumePercentForDevice(device.id)
« no previous file with comments | « extensions/browser/api/audio/audio_apitest.cc ('k') | extensions/common/api/_behavior_features.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698