Index: components/nacl/renderer/ppb_nacl_private_impl.cc |
diff --git a/components/nacl/renderer/ppb_nacl_private_impl.cc b/components/nacl/renderer/ppb_nacl_private_impl.cc |
index a4020d98a2107166603d2ff9f0f9e684db40a14e..dc2ccf69a1b17cd05cc714f754b50a29c8965159 100644 |
--- a/components/nacl/renderer/ppb_nacl_private_impl.cc |
+++ b/components/nacl/renderer/ppb_nacl_private_impl.cc |
@@ -501,7 +501,13 @@ int32_t GetNumberOfProcessors() { |
} |
PP_Bool IsNonSFIModeEnabled() { |
-#if defined(OS_LINUX) |
+ // Note that this only indicates whether non-sfi mode *can* run for a given |
+ // platform and if nonsfi manifest entries are preferred. There can be other |
+ // restrictions which prevent a particular module from launching. See |
+ // NaClProcessHost::Launch which makes the final determination. |
+#if defined(OS_CHROMEOS) |
+ return PP_TRUE; |
Mark Seaborn
2014/05/03 01:37:59
Hmm, really the browser should tell the renderer w
elijahtaylor1
2014/05/06 05:56:15
It's not incredibly difficult to plumb this IPC, b
Mark Seaborn
2014/05/08 01:06:02
OK. Can you comment this limitation somewhere app
|
+#elif defined(OS_LINUX) |
return PP_FromBool(CommandLine::ForCurrentProcess()->HasSwitch( |
switches::kEnableNaClNonSfiMode)); |
#else |