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; |
} |
} |