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

Unified Diff: chrome/nacl/nacl_main_platform_delegate_win.cc

Issue 10828023: PPAPI/NaCl: Make NaClIPCAdapter transfer handles more generally (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ready for review? Created 8 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: chrome/nacl/nacl_main_platform_delegate_win.cc
diff --git a/chrome/nacl/nacl_main_platform_delegate_win.cc b/chrome/nacl/nacl_main_platform_delegate_win.cc
index 5fd9b220c51a02cdff28a8c905b2c522b7cf9430..66322a022a463176a11822ea57e887014da14020 100644
--- a/chrome/nacl/nacl_main_platform_delegate_win.cc
+++ b/chrome/nacl/nacl_main_platform_delegate_win.cc
@@ -9,6 +9,8 @@
#include "base/logging.h"
#include "base/native_library.h"
#include "chrome/common/chrome_switches.h"
+#include "native_client/src/shared/srpc/nacl_srpc.h"
+#include "native_client/src/trusted/desc/nrd_all_modules.h"
#include "sandbox/win/src/sandbox.h"
NaClMainPlatformDelegate::NaClMainPlatformDelegate(
@@ -22,9 +24,14 @@ NaClMainPlatformDelegate::~NaClMainPlatformDelegate() {
void NaClMainPlatformDelegate::PlatformInitialize() {
// Be mindful of what resources you acquire here. They can be used by
// malicious code if the renderer gets compromised.
+
+ NaClNrdAllModulesInit();
+ NaClSrpcModuleInit();
dmichael (off chromium) 2012/08/16 21:23:17 This fixes (or just works around?) a problem we're
}
void NaClMainPlatformDelegate::PlatformUninitialize() {
+ NaClSrpcModuleFini();
+ NaClNrdAllModulesFini();
}
void NaClMainPlatformDelegate::InitSandboxTests(bool no_sandbox) {

Powered by Google App Engine
This is Rietveld 408576698