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

Unified Diff: media/audio/audio_device_thread.cc

Issue 506683002: Remove implicit conversions from scoped_refptr to T* in media/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 | « no previous file | media/audio/audio_output_proxy_unittest.cc » ('j') | media/cast/test/utility/udp_proxy.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_device_thread.cc
diff --git a/media/audio/audio_device_thread.cc b/media/audio/audio_device_thread.cc
index daf908556d8edf221f61fda6d4cd38fc41d9fbd2..b8ae3f903196320800c25bf176bae17ec382c21e 100644
--- a/media/audio/audio_device_thread.cc
+++ b/media/audio/audio_device_thread.cc
@@ -72,7 +72,7 @@ void AudioDeviceThread::Start(AudioDeviceThread::Callback* callback,
const char* thread_name,
bool synchronized_buffers) {
base::AutoLock auto_lock(thread_lock_);
- CHECK(!thread_);
+ CHECK(!thread_.get());
thread_ = new AudioDeviceThread::Thread(
callback, socket, thread_name, synchronized_buffers);
thread_->Start();
@@ -88,7 +88,7 @@ void AudioDeviceThread::Stop(base::MessageLoop* loop_for_join) {
bool AudioDeviceThread::IsStopped() {
base::AutoLock auto_lock(thread_lock_);
- return !thread_;
+ return !thread_.get();
}
// AudioDeviceThread::Thread implementation
« no previous file with comments | « no previous file | media/audio/audio_output_proxy_unittest.cc » ('j') | media/cast/test/utility/udp_proxy.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698