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

Unified Diff: ppapi/shared_impl/tracked_callback.cc

Issue 15806016: Update ppapi/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 | « ppapi/shared_impl/tracked_callback.h ('k') | ppapi/shared_impl/var.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/tracked_callback.cc
diff --git a/ppapi/shared_impl/tracked_callback.cc b/ppapi/shared_impl/tracked_callback.cc
index b4cf9e55e44bd7b78b156fd8ff9b695a0d50354e..c580f50e56388a7f3de5d00ec4ce5d489fd7859e 100644
--- a/ppapi/shared_impl/tracked_callback.cc
+++ b/ppapi/shared_impl/tracked_callback.cc
@@ -123,8 +123,8 @@ void TrackedCallback::Run(int32_t result) {
} else {
// If there's a target_loop_, and we're not on the right thread, we need to
// post to target_loop_.
- if (target_loop_ &&
- target_loop_ != PpapiGlobals::Get()->GetCurrentMessageLoop()) {
+ if (target_loop_.get() &&
+ target_loop_.get() != PpapiGlobals::Get()->GetCurrentMessageLoop()) {
PostRun(result);
return;
}
@@ -152,7 +152,7 @@ void TrackedCallback::PostRun(int32_t result) {
base::Closure callback_closure(
RunWhileLocked(base::Bind(&TrackedCallback::Run, this, result)));
- if (!target_loop_) {
+ if (!target_loop_.get()) {
// We must be running in-process and on the main thread (the Enter
// classes protect against having a null target_loop_ otherwise).
DCHECK(IsMainThread());
« no previous file with comments | « ppapi/shared_impl/tracked_callback.h ('k') | ppapi/shared_impl/var.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698