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

Unified Diff: trunk/src/chrome/nacl/nacl_main.cc

Issue 14320030: Revert 195190 "Set up NaClChromeMainArgs number_of_cores member ..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 8 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 | « trunk/src/chrome/nacl/nacl_listener.cc ('k') | trunk/src/chrome/test/data/nacl/nacl_test_data.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/chrome/nacl/nacl_main.cc
===================================================================
--- trunk/src/chrome/nacl/nacl_main.cc (revision 195212)
+++ trunk/src/chrome/nacl/nacl_main.cc (working copy)
@@ -33,12 +33,6 @@
bool no_sandbox = parsed_command_line.HasSwitch(switches::kNoSandbox);
platform.InitSandboxTests(no_sandbox);
-#if defined(OS_POSIX)
- // The number of cores must be obtained before the invocation of
- // platform.EnableSandbox(), so cannot simply be inlined below.
- int number_of_cores = sysconf(_SC_NPROCESSORS_ONLN);
-#endif
-
if (!no_sandbox) {
platform.EnableSandbox();
}
@@ -46,9 +40,6 @@
if (sandbox_test_result) {
NaClListener listener;
-#if defined(OS_POSIX)
- listener.set_number_of_cores(number_of_cores);
-#endif
listener.Listen();
} else {
// This indirectly prevents the test-harness-success-cookie from being set,
« no previous file with comments | « trunk/src/chrome/nacl/nacl_listener.cc ('k') | trunk/src/chrome/test/data/nacl/nacl_test_data.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698