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

Unified Diff: chrome/test/data/nacl/nonsfi/libc_free.c

Issue 381883002: Non-SFI NaCl: Fix browser_tests based on libc_free.c (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment update Created 6 years, 5 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 | « chrome/test/data/nacl/nacl_test_data.gyp ('k') | chrome/test/nacl/nacl_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/nacl/nonsfi/libc_free.c
diff --git a/chrome/test/data/nacl/nonsfi/libc_free.c b/chrome/test/data/nacl/nonsfi/libc_free.c
index ff3aef032a3e10a55bccddc65b00d5bee4b359af..cc8eb839ab039e564b8046bf45244000743b782c 100644
--- a/chrome/test/data/nacl/nonsfi/libc_free.c
+++ b/chrome/test/data/nacl/nonsfi/libc_free.c
@@ -221,24 +221,17 @@ void _start(uintptr_t info[]) {
/* This is local as a workaround to avoid having to apply
* relocations to global variables. */
- struct PP_StartFunctions start_funcs = {
- MyPPP_InitializeModule,
- MyPPP_ShutdownModule,
- MyPPP_GetInterface,
- };
- /* Similarly, initialise some global variables, avoiding relocations. */
- struct PPP_Instance_1_0 local_ppp_instance = {
- DidCreate,
- DidDestroy,
- DidChangeView,
- DidChangeFocus,
- HandleDocumentLoad,
- };
- ppp_instance = local_ppp_instance;
- struct PPP_Messaging_1_0 local_ppp_messaging = {
- HandleMessage,
- };
- ppp_messaging = local_ppp_messaging;
+ struct PP_StartFunctions start_funcs;
+ start_funcs.PPP_InitializeModule = MyPPP_InitializeModule;
+ start_funcs.PPP_ShutdownModule = MyPPP_ShutdownModule;
+ start_funcs.PPP_GetInterface = MyPPP_GetInterface;
+ /* Similarly, initialize some global variables, avoiding relocations. */
+ ppp_instance.DidCreate = DidCreate;
+ ppp_instance.DidDestroy = DidDestroy;
+ ppp_instance.DidChangeView = DidChangeView;
+ ppp_instance.DidChangeFocus = DidChangeFocus;
+ ppp_instance.HandleDocumentLoad = HandleDocumentLoad;
+ ppp_messaging.HandleMessage = HandleMessage;
ppapihook.ppapi_start(&start_funcs);
« no previous file with comments | « chrome/test/data/nacl/nacl_test_data.gyp ('k') | chrome/test/nacl/nacl_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698