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

Side by Side Diff: chromeos/audio/audio_devices_pref_handler_stub.cc

Issue 817013002: cros: Remove system-level policy for audio capture allowed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: (allow-audio) rebase Created 5 years, 11 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
« no previous file with comments | « chromeos/audio/audio_devices_pref_handler_stub.h ('k') | chromeos/audio/cras_audio_handler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "chromeos/audio/audio_devices_pref_handler_stub.h" 5 #include "chromeos/audio/audio_devices_pref_handler_stub.h"
6 6
7 #include "base/stl_util.h" 7 #include "base/stl_util.h"
8 #include "chromeos/audio/audio_device.h" 8 #include "chromeos/audio/audio_device.h"
9 9
10 namespace chromeos { 10 namespace chromeos {
(...skipping 27 matching lines...) Expand all
38 bool AudioDevicesPrefHandlerStub::GetMuteValue( 38 bool AudioDevicesPrefHandlerStub::GetMuteValue(
39 const AudioDevice& device) { 39 const AudioDevice& device) {
40 return audio_device_mute_map_[device.id]; 40 return audio_device_mute_map_[device.id];
41 } 41 }
42 42
43 void AudioDevicesPrefHandlerStub::SetMuteValue(const AudioDevice& device, 43 void AudioDevicesPrefHandlerStub::SetMuteValue(const AudioDevice& device,
44 bool mute_on) { 44 bool mute_on) {
45 audio_device_mute_map_[device.id] = mute_on; 45 audio_device_mute_map_[device.id] = mute_on;
46 } 46 }
47 47
48 bool AudioDevicesPrefHandlerStub::GetAudioCaptureAllowedValue() {
49 return true;
50 }
51
52 bool AudioDevicesPrefHandlerStub::GetAudioOutputAllowedValue() { 48 bool AudioDevicesPrefHandlerStub::GetAudioOutputAllowedValue() {
53 return true; 49 return true;
54 } 50 }
55 51
56 void AudioDevicesPrefHandlerStub::AddAudioPrefObserver( 52 void AudioDevicesPrefHandlerStub::AddAudioPrefObserver(
57 AudioPrefObserver* observer) { 53 AudioPrefObserver* observer) {
58 } 54 }
59 55
60 void AudioDevicesPrefHandlerStub::RemoveAudioPrefObserver( 56 void AudioDevicesPrefHandlerStub::RemoveAudioPrefObserver(
61 AudioPrefObserver* observer) { 57 AudioPrefObserver* observer) {
62 } 58 }
63 59
64 } // namespace chromeos 60 } // namespace chromeos
65 61
OLDNEW
« no previous file with comments | « chromeos/audio/audio_devices_pref_handler_stub.h ('k') | chromeos/audio/cras_audio_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698