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

Unified Diff: ppapi/proxy/ppp_messaging_proxy.cc

Issue 1864293002: Convert //ppapi to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more nullptr Created 4 years, 8 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/proxy/ppp_instance_proxy.h ('k') | ppapi/proxy/proxy_channel.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/ppp_messaging_proxy.cc
diff --git a/ppapi/proxy/ppp_messaging_proxy.cc b/ppapi/proxy/ppp_messaging_proxy.cc
index 75614ae08b2266da602f448112e0bba83ac6e7b0..e1b1f4da10117c9819dcf73a1f054a4fa3bf46ca 100644
--- a/ppapi/proxy/ppp_messaging_proxy.cc
+++ b/ppapi/proxy/ppp_messaging_proxy.cc
@@ -6,6 +6,7 @@
#include <algorithm>
+#include "base/memory/ptr_util.h"
#include "ppapi/c/ppp_messaging.h"
#include "ppapi/proxy/host_dispatcher.h"
#include "ppapi/proxy/message_handler.h"
@@ -119,8 +120,8 @@ void PPP_Messaging_Proxy::OnMsgHandleBlockingMessage(
MessageHandler* message_handler = GetMessageHandler(dispatcher(), instance);
if (message_handler) {
if (message_handler->LoopIsValid()) {
- message_handler->HandleBlockingMessage(
- received_var, scoped_ptr<IPC::Message>(reply_msg));
+ message_handler->HandleBlockingMessage(received_var,
+ base::WrapUnique(reply_msg));
return;
} else {
// If the MessageHandler's loop has been quit, then we should treat it as
« no previous file with comments | « ppapi/proxy/ppp_instance_proxy.h ('k') | ppapi/proxy/proxy_channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698