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

Unified Diff: ppapi/shared_impl/tracked_callback.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
« ppapi/proxy/file_io_resource.cc ('K') | « ppapi/proxy/video_decoder_resource.cc ('k') | no next file » | 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 70565a19d1974cff60de56b734d7e7a1549b8a92..7ddfd39c13cb9b2edc626146d64e98238c97f6e9 100644
--- a/ppapi/shared_impl/tracked_callback.cc
+++ b/ppapi/shared_impl/tracked_callback.cc
@@ -167,7 +167,7 @@ void TrackedCallback::PostRun(int32_t result) {
} else {
base::Closure callback_closure(
RunWhileLocked(base::Bind(&TrackedCallback::Run, this, result)));
- if (target_loop_) {
+ if (target_loop_.get()) {
target_loop_->PostClosure(FROM_HERE, callback_closure, 0);
} else {
// We must be running in-process and on the main thread (the Enter
« ppapi/proxy/file_io_resource.cc ('K') | « ppapi/proxy/video_decoder_resource.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698