| Index: components/crash/content/app/crashpad.cc
|
| diff --git a/components/crash/content/app/crashpad.cc b/components/crash/content/app/crashpad.cc
|
| index 2ac5a8c4892128dc106169841e108b14d53ed758..1c0c49936dddb46e5645116276923c81215fb11b 100644
|
| --- a/components/crash/content/app/crashpad.cc
|
| +++ b/components/crash/content/app/crashpad.cc
|
| @@ -22,6 +22,7 @@
|
| #include "base/debug/dump_without_crashing.h"
|
| #include "base/logging.h"
|
| #include "base/macros.h"
|
| +#include "base/path_service.h"
|
| #include "base/strings/string_number_conversions.h"
|
| #include "base/strings/string_piece.h"
|
| #include "base/strings/stringprintf.h"
|
| @@ -367,11 +368,8 @@
|
|
|
| // The executable name is the same for the browser process and the crash
|
| // reporter.
|
| - wchar_t exe_file[MAX_PATH] = {};
|
| - CHECK(::GetModuleFileName(nullptr, exe_file, arraysize(exe_file)));
|
| -
|
| - base::FilePath exe_path(exe_file);
|
| -
|
| + base::FilePath exe_path;
|
| + base::PathService::Get(base::FILE_EXE, &exe_path);
|
| HMODULE module = GetModuleInProcess(process_handle.Get(),
|
| exe_path.BaseName().value().c_str());
|
| if (!module)
|
|
|