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 60c8a3e7a6cbe5b4aafd98902e0b30462254a914..b9376447477fde133122179be79d196f91bfa3e1 100644 |
--- a/media/audio/mac/audio_manager_mac.cc |
+++ b/media/audio/mac/audio_manager_mac.cc |
@@ -226,20 +226,20 @@ class AudioManagerMac::AudioPowerObserver : public base::PowerObserver { |
public: |
AudioPowerObserver() |
: is_suspending_(false), |
- is_monitoring_(base::PowerMonitor::Get()) { |
+ is_monitoring_(base::PowerMonitor::IsInitialized()) { |
// 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::Get()->AddObserver(this); |
+ base::PowerMonitor::AddObserver(this); |
} |
virtual ~AudioPowerObserver() { |
DCHECK(thread_checker_.CalledOnValidThread()); |
if (!is_monitoring_) |
return; |
- base::PowerMonitor::Get()->RemoveObserver(this); |
+ base::PowerMonitor::RemoveObserver(this); |
} |
bool ShouldDeferOutputStreamStart() { |