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

Unified Diff: base/process/launch_win.cc

Issue 411223002: Block on LaunchProcess failing on specific bot (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process/launch_win.cc
diff --git a/base/process/launch_win.cc b/base/process/launch_win.cc
index 9e4db384ebb401a967a68fb30157826906549845..fdaa5eb10e3195cda85880bd45b5889224e6bea1 100644
--- a/base/process/launch_win.cc
+++ b/base/process/launch_win.cc
@@ -10,6 +10,7 @@
#include <windows.h>
#include <userenv.h>
#include <psapi.h>
+#include <stdlib.h>
#include <ios>
#include <limits>
@@ -205,6 +206,16 @@ bool LaunchProcess(const string16& cmdline,
startup_info, &temp_process_info)) {
DPLOG(ERROR) << "Command line:" << std::endl << UTF16ToUTF8(cmdline)
<< std::endl;;
+ // TODO(scottmg): Temporary code for debugging http://crbug.com/340422.
+ if (getenv("CHROME_HEADLESS") &&
+ strcmp(getenv("CHROME_HEADLESS"), "1") == 0 &&
+ getenv("COMPUTERNAME") &&
+ strcmp(getenv("COMPUTERNAME"), "VM898-M1") == 0) {
+ for (;;) {
+ DLOG(ERROR) << "Failed CreateProcess, waiting for debugger";
+ ::Sleep(1000);
+ }
+ }
return false;
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698