Chromium Code Reviews| Index: chrome/app/breakpad_win.cc |
| diff --git a/chrome/app/breakpad_win.cc b/chrome/app/breakpad_win.cc |
| index ecc12e5ecc871ff664b25aaf670f117ffc95b573..3020fcc872abc9525eb92f1dcaadcb005447ee89 100644 |
| --- a/chrome/app/breakpad_win.cc |
| +++ b/chrome/app/breakpad_win.cc |
| @@ -519,7 +519,12 @@ 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 char* env_var = getenv("CHROME_BREAKPAD_PIPE_NAME"); |
| + if (env_var != NULL) { |
|
cpu_(ooo_6.6-7.5)
2011/08/03 22:38:48
please use GetEnvironmentVariable() which returns
|
| + pipe_name = std::wstring(env_var, env_var + strlen(env_var)); |
| + } else { |
| + pipe_name = kChromePipeName; |
| + } |
| } 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 |