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

Unified Diff: ppapi/proxy/ppb_flash_tcp_socket_proxy.cc

Issue 7608030: Convert the PluginResource to be refcounted. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 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/ppb_flash_tcp_socket_proxy.cc
diff --git a/ppapi/proxy/ppb_flash_tcp_socket_proxy.cc b/ppapi/proxy/ppb_flash_tcp_socket_proxy.cc
index 6a6ab50e9411898b93633fcda7bd5468f023aeac..c474ed00dd92e46d1e889b792c037cad2e92087a 100644
--- a/ppapi/proxy/ppb_flash_tcp_socket_proxy.cc
+++ b/ppapi/proxy/ppb_flash_tcp_socket_proxy.cc
@@ -9,7 +9,6 @@
#include <map>
#include "base/logging.h"
-#include "base/memory/linked_ptr.h"
#include "base/message_loop.h"
#include "base/scoped_ptr.h"
#include "base/task.h"
@@ -375,9 +374,8 @@ PP_Resource PPB_Flash_TCPSocket_Proxy::CreateProxyResource(
if (socket_id == 0)
return 0;
- linked_ptr<FlashTCPSocket> object(new FlashTCPSocket(
- HostResource::MakeInstanceOnly(instance), socket_id));
- return PluginResourceTracker::GetInstance()->AddResource(object);
+ return PluginResourceTracker::GetInstance()->AddResource(
+ new FlashTCPSocket(HostResource::MakeInstanceOnly(instance), socket_id));
}
bool PPB_Flash_TCPSocket_Proxy::OnMessageReceived(const IPC::Message& msg) {

Powered by Google App Engine
This is Rietveld 408576698