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

Unified Diff: ppapi/proxy/ppb_input_event_proxy.cc

Issue 7578001: Unify var tracking between webkit and the proxy. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
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
« no previous file with comments | « ppapi/proxy/ppb_font_proxy.cc ('k') | ppapi/proxy/ppb_url_util_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/ppb_input_event_proxy.cc
===================================================================
--- ppapi/proxy/ppb_input_event_proxy.cc (revision 96002)
+++ ppapi/proxy/ppb_input_event_proxy.cc (working copy)
@@ -10,6 +10,7 @@
#include "ppapi/proxy/plugin_var_tracker.h"
#include "ppapi/proxy/ppapi_messages.h"
#include "ppapi/shared_impl/input_event_impl.h"
+#include "ppapi/shared_impl/var.h"
#include "ppapi/thunk/thunk.h"
using ppapi::InputEventData;
@@ -48,10 +49,7 @@
}
PP_Var InputEvent::StringToPPVar(const std::string& str) {
- PP_Var ret;
- ret.type = PP_VARTYPE_STRING;
- ret.value.as_id = PluginVarTracker::GetInstance()->MakeString(str);
- return ret;
+ return ppapi::StringVar::StringToPPVar(0, str);
}
namespace {
« no previous file with comments | « ppapi/proxy/ppb_font_proxy.cc ('k') | ppapi/proxy/ppb_url_util_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698