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

Unified Diff: ppapi/proxy/websocket_resource.cc

Issue 12096107: Revert 180093 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 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 | « no previous file | ppapi/shared_impl/var_tracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/websocket_resource.cc
===================================================================
--- ppapi/proxy/websocket_resource.cc (revision 180103)
+++ ppapi/proxy/websocket_resource.cc (working copy)
@@ -423,10 +423,10 @@
return;
// Append received data to queue.
- scoped_refptr<Var> message_var(
- PpapiGlobals::Get()->GetVarTracker()->MakeArrayBufferVar(
+ scoped_refptr<Var> message_var(ArrayBufferVar::FromPPVar(
+ PpapiGlobals::Get()->GetVarTracker()->MakeArrayBufferPPVar(
message.size(),
- &message.front()));
+ &message.front())));
received_messages_.push(message_var);
if (!TrackedCallback::IsPending(receive_callback_))
« no previous file with comments | « no previous file | ppapi/shared_impl/var_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698