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

Unified Diff: chrome/browser/nacl_host/nacl_process_host.cc

Issue 9662055: Test for --nacl-gdb functionality. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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
Index: chrome/browser/nacl_host/nacl_process_host.cc
===================================================================
--- chrome/browser/nacl_host/nacl_process_host.cc (revision 126069)
+++ chrome/browser/nacl_host/nacl_process_host.cc (working copy)
@@ -279,7 +279,12 @@
}
#if defined(OS_WIN)
if (RunningOnWOW64()) {
- NaClBrokerService::GetInstance()->OnLoaderDied();
+ // If nacl-gdb switch is not empty, NaCl loader have been launched
Mark Seaborn 2012/03/13 01:05:20 'have' -> 'has' Aha, --nacl-gdb already got broke
halyavin 2012/03/13 12:48:27 Done.
+ // without broker and so we shouldn't inform broker about its termination.
+ if (CommandLine::ForCurrentProcess()->GetSwitchValuePath(
+ switches::kNaClGdb).empty()) {
Mark Seaborn 2012/03/13 01:05:20 This line needs indenting
halyavin 2012/03/13 12:48:27 Done.
+ NaClBrokerService::GetInstance()->OnLoaderDied();
+ }
} else {
debug_context_->SetChildProcessHost(NULL);
}

Powered by Google App Engine
This is Rietveld 408576698