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

Unified Diff: ppapi/proxy/message_handler.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/message_handler.cc
diff --git a/ppapi/proxy/message_handler.cc b/ppapi/proxy/message_handler.cc
index 6e44d0e018ef063b222fc5c1a665b7146126c251..fff878811fcb3a9d028cf379836676a150a3c101 100644
--- a/ppapi/proxy/message_handler.cc
+++ b/ppapi/proxy/message_handler.cc
@@ -85,7 +85,7 @@ scoped_ptr<MessageHandler> MessageHandler::Create(
MessageHandler::~MessageHandler() {
// It's possible the message_loop_proxy is NULL if that loop has been quit.
// In that case, we unfortunately just can't call Destroy.
- if (message_loop_->message_loop_proxy()) {
+ if (message_loop_->message_loop_proxy().get()) {
// The posted task won't have the proxy lock, but that's OK, it doesn't
// touch any internal state; it's a direct call on the plugin's function.
message_loop_->message_loop_proxy()->PostTask(FROM_HERE,
@@ -96,7 +96,7 @@ MessageHandler::~MessageHandler() {
}
bool MessageHandler::LoopIsValid() const {
- return !!message_loop_->message_loop_proxy();
+ return !!message_loop_->message_loop_proxy().get();
}
void MessageHandler::HandleMessage(ScopedPPVar var) {

Powered by Google App Engine
This is Rietveld 408576698