Index: chrome/app/breakpad_win.cc |
diff --git a/chrome/app/breakpad_win.cc b/chrome/app/breakpad_win.cc |
index ecc12e5ecc871ff664b25aaf670f117ffc95b573..b85312507a11a980544a752387280d18d2cf9b5c 100644 |
--- a/chrome/app/breakpad_win.cc |
+++ b/chrome/app/breakpad_win.cc |
@@ -519,7 +519,15 @@ static DWORD __stdcall InitCrashReporterThread(void* param) { |
std::wstring pipe_name; |
if (use_crash_service) { |
// Crash reporting is done by crash_service.exe. |
- pipe_name = kChromePipeName; |
+ const wchar_t* var_name = L"CHROME_BREAKPAD_PIPE_NAME"; |
+ DWORD value_length = ::GetEnvironmentVariableW(var_name, NULL, 0); |
+ if (value_length == 0) { |
+ pipe_name = kChromePipeName; |
+ } else { |
+ scoped_array<wchar_t> value(new wchar_t[value_length]); |
+ ::GetEnvironmentVariableW(var_name, value.get(), value_length); |
+ pipe_name = value.get(); |
+ } |
} else { |
// We want to use the Google Update crash reporting. We need to check if the |
// user allows it first (in case the administrator didn't already decide |