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

Unified Diff: media/audio/audio_device_thread.cc

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years, 2 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 | « jingle/glue/pseudotcp_adapter_unittest.cc ('k') | media/audio/audio_input_controller_unittest.cc » ('j') | no next file with comments »
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 51d5ecd7d609ad07ee0ad27ae6f6fdef91a88233..15852ee630c24cebc3ee14a854ea92ed4d186b9a 100644
--- a/media/audio/audio_device_thread.cc
+++ b/media/audio/audio_device_thread.cc
@@ -65,21 +65,21 @@ AudioDeviceThread::AudioDeviceThread() {
}
AudioDeviceThread::~AudioDeviceThread() {
- DCHECK(!thread_);
+ DCHECK(!thread_.get());
}
void AudioDeviceThread::Start(AudioDeviceThread::Callback* callback,
base::SyncSocket::Handle socket,
const char* thread_name) {
base::AutoLock auto_lock(thread_lock_);
- CHECK(thread_ == NULL);
+ CHECK(thread_.get() == NULL);
thread_ = new AudioDeviceThread::Thread(callback, socket, thread_name);
thread_->Start();
}
void AudioDeviceThread::Stop(MessageLoop* loop_for_join) {
base::AutoLock auto_lock(thread_lock_);
- if (thread_) {
+ if (thread_.get()) {
thread_->Stop(loop_for_join);
thread_ = NULL;
}
@@ -87,7 +87,7 @@ void AudioDeviceThread::Stop(MessageLoop* loop_for_join) {
bool AudioDeviceThread::IsStopped() {
base::AutoLock auto_lock(thread_lock_);
- return thread_ == NULL;
+ return thread_.get() == NULL;
}
// AudioDeviceThread::Thread implementation
« no previous file with comments | « jingle/glue/pseudotcp_adapter_unittest.cc ('k') | media/audio/audio_input_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698