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

Unified Diff: chromeos/audio/audio_devices_pref_handler_impl.h

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/audio/audio_devices_pref_handler.h ('k') | chromeos/audio/audio_devices_pref_handler_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/audio/audio_devices_pref_handler_impl.h
diff --git a/chromeos/audio/audio_devices_pref_handler_impl.h b/chromeos/audio/audio_devices_pref_handler_impl.h
index ccb423639160691b058d186906fc25d6b2a81c4d..8b760b72b3cffda6ecb37d76f659dae709357b01 100644
--- a/chromeos/audio/audio_devices_pref_handler_impl.h
+++ b/chromeos/audio/audio_devices_pref_handler_impl.h
@@ -23,8 +23,8 @@ namespace chromeos {
class CHROMEOS_EXPORT AudioDevicesPrefHandlerImpl
: public AudioDevicesPrefHandler {
public:
- AudioDevicesPrefHandlerImpl(PrefService* local_state,
- const std::string& audio_capture_allowed_pref);
+ // |local_state| is the device-wide preference service.
+ explicit AudioDevicesPrefHandlerImpl(PrefService* local_state);
// Overridden from AudioDevicesPrefHandler.
virtual double GetOutputVolumeValue(const AudioDevice* device) override;
@@ -35,15 +35,13 @@ class CHROMEOS_EXPORT AudioDevicesPrefHandlerImpl
virtual bool GetMuteValue(const AudioDevice& device) override;
virtual void SetMuteValue(const AudioDevice& device, bool mute_on) override;
- virtual bool GetAudioCaptureAllowedValue() override;
virtual bool GetAudioOutputAllowedValue() override;
virtual void AddAudioPrefObserver(AudioPrefObserver* observer) override;
virtual void RemoveAudioPrefObserver(AudioPrefObserver* observer) override;
// Registers volume and mute preferences.
- static void RegisterPrefs(PrefRegistrySimple* registry,
- const std::string& audio_capture_allowed_pref);
+ static void RegisterPrefs(PrefRegistrySimple* registry);
protected:
virtual ~AudioDevicesPrefHandlerImpl();
@@ -78,10 +76,6 @@ class CHROMEOS_EXPORT AudioDevicesPrefHandlerImpl
PrefService* local_state_; // not owned
- // The name of the preferences to check if audio capture is allowed or the
- // empty string if audio capture is always allowed.
- const std::string audio_capture_allowed_pref_;
-
PrefChangeRegistrar pref_change_registrar_;
ObserverList<AudioPrefObserver> observers_;
« no previous file with comments | « chromeos/audio/audio_devices_pref_handler.h ('k') | chromeos/audio/audio_devices_pref_handler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698