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

Unified Diff: ipc/ipc_sync_message_filter.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 | « gpu/gles2_conform_support/egl/display.cc ('k') | ipc/ipc_tests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_sync_message_filter.cc
diff --git a/ipc/ipc_sync_message_filter.cc b/ipc/ipc_sync_message_filter.cc
index 347a68c4c48cf3d725bb05fb987fb6229ca34bba..d92f64e7fdad89f4436e94ceb0ed9e233bbe570f 100644
--- a/ipc/ipc_sync_message_filter.cc
+++ b/ipc/ipc_sync_message_filter.cc
@@ -24,7 +24,7 @@ SyncMessageFilter::SyncMessageFilter(base::WaitableEvent* shutdown_event)
bool SyncMessageFilter::Send(Message* message) {
{
base::AutoLock auto_lock(lock_);
- if (!io_loop_) {
+ if (!io_loop_.get()) {
delete message;
return false;
}
@@ -46,8 +46,8 @@ bool SyncMessageFilter::Send(Message* message) {
base::AutoLock auto_lock(lock_);
// Can't use this class on the main thread or else it can lead to deadlocks.
// Also by definition, can't use this on IO thread since we're blocking it.
- DCHECK(MessageLoopProxy::current() != listener_loop_);
- DCHECK(MessageLoopProxy::current() != io_loop_);
+ DCHECK(MessageLoopProxy::current().get() != listener_loop_.get());
+ DCHECK(MessageLoopProxy::current().get() != io_loop_.get());
pending_sync_messages_.insert(&pending_message);
}
« no previous file with comments | « gpu/gles2_conform_support/egl/display.cc ('k') | ipc/ipc_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698