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

Unified Diff: webkit/plugins/ppapi/ppb_input_event_impl.cc

Issue 7629017: Add a unified resource tracker shared between the proxy and the impl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments 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: webkit/plugins/ppapi/ppb_input_event_impl.cc
diff --git a/webkit/plugins/ppapi/ppb_input_event_impl.cc b/webkit/plugins/ppapi/ppb_input_event_impl.cc
index ffb6cba69a18fc1a0c206c12922b5e94c30467ca..f2383b040d32303b0c27b515c18828ff28f33049 100644
--- a/webkit/plugins/ppapi/ppb_input_event_impl.cc
+++ b/webkit/plugins/ppapi/ppb_input_event_impl.cc
@@ -25,9 +25,7 @@ PPB_InputEvent_Impl::PPB_InputEvent_Impl(PluginInstance* instance,
// static
PP_Resource PPB_InputEvent_Impl::Create(PluginInstance* instance,
const InputEventData& data) {
- scoped_refptr<PPB_InputEvent_Impl> event(
- new PPB_InputEvent_Impl(instance, data));
- return event->GetReference();
+ return (new PPB_InputEvent_Impl(instance, data))->GetReference();
}
PPB_InputEvent_API* PPB_InputEvent_Impl::AsPPB_InputEvent_API() {

Powered by Google App Engine
This is Rietveld 408576698