Chromium Code Reviews| 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..562343f96bdb484edfb3efe47ae9878cf04de192 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] = {}; |
| + ::GetModuleFileName(NULL, exe_file, arraysize(exe_file)); |
|
grt (UTC plus 2)
2016/06/10 14:20:01
CHECK?
grt (UTC plus 2)
2016/06/10 14:20:01
nullptr everywhere
ananta
2016/06/10 18:29:57
Done.
|
| + |
| + base::FilePath exe_path(exe_file); |
| + |
| HMODULE module = GetModuleInProcess(process_handle.Get(), |
| exe_path.BaseName().value().c_str()); |
| if (!module) |