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

Side by Side Diff: ppapi/native_client/src/trusted/plugin/sel_ldr_launcher_chrome.cc

Issue 11761025: When launching PNaCl helper nexes, explicitly disable IRT loading. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "native_client/src/trusted/plugin/sel_ldr_launcher_chrome.h" 5 #include "native_client/src/trusted/plugin/sel_ldr_launcher_chrome.h"
6 6
7 #include "native_client/src/trusted/plugin/nacl_entry_points.h" 7 #include "native_client/src/trusted/plugin/nacl_entry_points.h"
8 8
9 LaunchNaClProcessFunc launch_nacl_process = NULL; 9 LaunchNaClProcessFunc launch_nacl_process = NULL;
10 10
11 namespace plugin { 11 namespace plugin {
12 12
13 bool SelLdrLauncherChrome::Start(const char* url) { 13 bool SelLdrLauncherChrome::Start(const char* url) {
14 return Start(0, url, true, false); 14 return Start(0, url, true, false, true);
15 } 15 }
16 16
17 bool SelLdrLauncherChrome::Start(PP_Instance instance, 17 bool SelLdrLauncherChrome::Start(PP_Instance instance,
18 const char* url, 18 const char* url,
19 bool uses_ppapi, 19 bool uses_ppapi,
20 bool enable_ppapi_dev) { 20 bool enable_ppapi_dev,
21 bool uses_irt) {
21 if (!launch_nacl_process) 22 if (!launch_nacl_process)
22 return false; 23 return false;
23 // send a synchronous message to the browser process 24 // send a synchronous message to the browser process
24 // TODO(sehr): This is asserted to be one. Remove this parameter. 25 // TODO(sehr): This is asserted to be one. Remove this parameter.
25 static const int kNumberOfChannelsToBeCreated = 1; 26 static const int kNumberOfChannelsToBeCreated = 1;
26 if (launch_nacl_process(instance, 27 if (launch_nacl_process(instance,
27 url, 28 url,
28 PP_FromBool(uses_ppapi), 29 PP_FromBool(uses_ppapi),
29 PP_FromBool(enable_ppapi_dev), 30 PP_FromBool(enable_ppapi_dev),
30 kNumberOfChannelsToBeCreated, 31 kNumberOfChannelsToBeCreated,
32 PP_FromBool(uses_irt),
31 &channel_) != PP_NACL_OK) { 33 &channel_) != PP_NACL_OK) {
32 return false; 34 return false;
33 } 35 }
34 return true; 36 return true;
35 } 37 }
36 38
37 } // namespace plugin 39 } // namespace plugin
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698