| Index: media/audio/mac/audio_manager_mac.cc
|
| diff --git a/media/audio/mac/audio_manager_mac.cc b/media/audio/mac/audio_manager_mac.cc
|
| index b9376447477fde133122179be79d196f91bfa3e1..60c8a3e7a6cbe5b4aafd98902e0b30462254a914 100644
|
| --- a/media/audio/mac/audio_manager_mac.cc
|
| +++ b/media/audio/mac/audio_manager_mac.cc
|
| @@ -226,20 +226,20 @@
|
| public:
|
| AudioPowerObserver()
|
| : is_suspending_(false),
|
| - is_monitoring_(base::PowerMonitor::IsInitialized()) {
|
| + is_monitoring_(base::PowerMonitor::Get()) {
|
| // The PowerMonitor requires signifcant setup (a CFRunLoop and preallocated
|
| // IO ports) so it's not available under unit tests. See the OSX impl of
|
| // base::PowerMonitorDeviceSource for more details.
|
| if (!is_monitoring_)
|
| return;
|
| - base::PowerMonitor::AddObserver(this);
|
| + base::PowerMonitor::Get()->AddObserver(this);
|
| }
|
|
|
| virtual ~AudioPowerObserver() {
|
| DCHECK(thread_checker_.CalledOnValidThread());
|
| if (!is_monitoring_)
|
| return;
|
| - base::PowerMonitor::RemoveObserver(this);
|
| + base::PowerMonitor::Get()->RemoveObserver(this);
|
| }
|
|
|
| bool ShouldDeferOutputStreamStart() {
|
|
|