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