Index: ppapi/proxy/ppb_file_chooser_proxy.cc |
diff --git a/ppapi/proxy/ppb_file_chooser_proxy.cc b/ppapi/proxy/ppb_file_chooser_proxy.cc |
index d8ea705542e5ab70106ed98e8b787f8231b385b2..a5bb7455a034955a64129bd1d4c57c5a09332cfe 100644 |
--- a/ppapi/proxy/ppb_file_chooser_proxy.cc |
+++ b/ppapi/proxy/ppb_file_chooser_proxy.cc |
@@ -163,8 +163,8 @@ PP_Resource PPB_FileChooser_Proxy::CreateProxyResource( |
if (result.is_null()) |
return 0; |
- linked_ptr<FileChooser> object(new FileChooser(result)); |
- return PluginResourceTracker::GetInstance()->AddResource(object); |
+ return PluginResourceTracker::GetInstance()->AddResource( |
+ new FileChooser(result)); |
} |
bool PPB_FileChooser_Proxy::OnMessageReceived(const IPC::Message& msg) { |