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

Unified Diff: tests/ppapi_proxy/basic_object.cc

Issue 3391010: Update the PPAPI DEPS revision. This change included parameter profile chang... (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 10 years, 3 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 | « tests/fake_browser_ppapi/test_scriptable.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/ppapi_proxy/basic_object.cc
===================================================================
--- tests/ppapi_proxy/basic_object.cc (revision 3312)
+++ tests/ppapi_proxy/basic_object.cc (working copy)
@@ -383,7 +383,7 @@
const char kLocation[] = "location";
const uint32_t kLocationLength = static_cast<uint32_t>(strlen(kLocation));
PP_Var location_name =
- g_var_interface->VarFromUtf8(kLocation, kLocationLength);
+ g_var_interface->VarFromUtf8(g_module_id, kLocation, kLocationLength);
PP_Var location =
g_var_interface->GetProperty(argv[0], location_name, exception);
if (location.type != PP_VARTYPE_OBJECT ||
@@ -394,7 +394,8 @@
// Get the href property on the returned object.
const char kHref[] = "href";
const uint32_t kHrefLength = static_cast<uint32_t>(strlen(kHref));
- PP_Var href_name = g_var_interface->VarFromUtf8(kHref, kHrefLength);
+ PP_Var href_name =
+ g_var_interface->VarFromUtf8(g_module_id, kHref, kHrefLength);
PP_Var href = g_var_interface->GetProperty(location, href_name, exception);
printf("window.location.href = ");
PrintPpVar(href);
@@ -480,7 +481,8 @@
printf(" g_var_interface = %p\n",
reinterpret_cast<const void*>(g_var_interface));
PP_Var retval =
- g_var_interface->CreateObject(&object_class,
+ g_var_interface->CreateObject(g_module_id,
+ &object_class,
static_cast<void*>(new TestObject));
return retval;
}
« no previous file with comments | « tests/fake_browser_ppapi/test_scriptable.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698