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

Unified Diff: ppapi/proxy/resource_reply_thread_registrar.cc

Issue 467303005: Remove implicit conversions from scoped_refptr to T* in ppapi/ (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
Index: ppapi/proxy/resource_reply_thread_registrar.cc
diff --git a/ppapi/proxy/resource_reply_thread_registrar.cc b/ppapi/proxy/resource_reply_thread_registrar.cc
index 0c49cf5c7b5fe6fa2b3a862a7f1f506a7b01e895..13329872aa17c037133ecfd85422e7eca33bc7c2 100644
--- a/ppapi/proxy/resource_reply_thread_registrar.cc
+++ b/ppapi/proxy/resource_reply_thread_registrar.cc
@@ -27,7 +27,7 @@ void ResourceReplyThreadRegistrar::Register(
ProxyLock::AssertAcquiredDebugOnly();
// Use the default thread if |reply_thread_hint| is NULL or blocking.
- if (!reply_thread_hint || reply_thread_hint->is_blocking())
+ if (!reply_thread_hint.get() || reply_thread_hint->is_blocking())
return;
DCHECK(reply_thread_hint->target_loop());
@@ -36,7 +36,7 @@ void ResourceReplyThreadRegistrar::Register(
{
base::AutoLock auto_lock(lock_);
- if (reply_thread == default_thread_)
+ if (reply_thread.get() == default_thread_.get())
return;
map_[resource][sequence_number] = reply_thread;

Powered by Google App Engine
This is Rietveld 408576698