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

Unified Diff: chrome/renderer/render_process_impl.cc

Issue 3039016: Part 2 of Make NaCl/Chromium startup interface easier to maintain (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: Use new RegisterInternalNaClPlugin() Created 10 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/nacl/sel_main.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_process_impl.cc
diff --git a/chrome/renderer/render_process_impl.cc b/chrome/renderer/render_process_impl.cc
index e610df9201c02d336f8293233c77eb25fd85beb5..0085ae76437c118f8c2bce951d078a4b246629e3 100644
--- a/chrome/renderer/render_process_impl.cc
+++ b/chrome/renderer/render_process_impl.cc
@@ -154,8 +154,12 @@ RenderProcessImpl::RenderProcessImpl()
}
#ifndef DISABLE_NACL
- if (command_line.HasSwitch(switches::kInternalNaCl))
- RegisterInternalNaClPlugin(LaunchNaClProcess);
+ if (command_line.HasSwitch(switches::kInternalNaCl)) {
+ std::map<std::string, uintptr_t> funcs;
+ funcs["launch_nacl_process"] =
+ reinterpret_cast<uintptr_t>(LaunchNaClProcess);
+ RegisterInternalNaClPlugin(funcs);
+ }
#endif
if (!command_line.HasSwitch(switches::kDisableByteRangeSupport)) {
« no previous file with comments | « chrome/nacl/sel_main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698