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

Unified Diff: chrome/nacl/nacl_main.cc

Issue 7230057: Revert 90805 - I am submitting this with LGTMs from agl@ and evanm@. I'm marking this as TBR=jam@... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 6 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/nacl_listener.cc ('k') | content/browser/child_process_launcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/nacl/nacl_main.cc
===================================================================
--- chrome/nacl/nacl_main.cc (revision 90812)
+++ chrome/nacl/nacl_main.cc (working copy)
@@ -15,15 +15,13 @@
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/logging_chrome.h"
-#include "chrome/nacl/nacl_listener.h"
+#include "chrome/nacl/nacl_launcher_thread.h"
#include "chrome/nacl/nacl_main_platform_delegate.h"
#include "content/common/child_process.h"
-#include "content/common/child_process_info.h"
#include "content/common/hi_res_timer_manager.h"
#include "content/common/main_function_params.h"
#include "content/common/result_codes.h"
#include "content/common/sandbox_policy.h"
-#include "ipc/ipc_switches.h"
#if defined(OS_WIN)
#include "chrome/nacl/broker_thread.h"
@@ -119,8 +117,10 @@
bool sandbox_test_result = platform.RunSandboxTests();
if (sandbox_test_result) {
- NaClListener listener;
- listener.Listen();
+ ChildProcess nacl_process;
+ bool debug = parsed_command_line.HasSwitch(switches::kEnableNaClDebug);
+ nacl_process.set_main_thread(new NaClLauncherThread(debug));
+ MessageLoop::current()->Run();
} else {
// This indirectly prevents the test-harness-success-cookie from being set,
// as a way of communicating test failure, because the nexe won't reply.
Property changes on: chrome/nacl/nacl_main.cc
___________________________________________________________________
Added: svn:mergeinfo
« no previous file with comments | « chrome/nacl/nacl_listener.cc ('k') | content/browser/child_process_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698