Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(711)

Unified Diff: chrome_elf/chrome_elf_main.cc

Issue 2867063002: Stability instrumentation Crashpad integration (Closed)
Patch Set: merge Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome_elf/chrome_elf.def ('k') | components/browser_watcher/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_elf/chrome_elf_main.cc
diff --git a/chrome_elf/chrome_elf_main.cc b/chrome_elf/chrome_elf_main.cc
index 926668c54d3015e224004c125cc70f3237fd2253..9803382df5180c50b125d91044428ce6abb4c5dd 100644
--- a/chrome_elf/chrome_elf_main.cc
+++ b/chrome_elf/chrome_elf_main.cc
@@ -29,21 +29,6 @@ void SignalChromeElf() {
blacklist::ResetBeacon();
}
-extern "C" void GetUserDataDirectoryThunk(wchar_t* user_data_dir,
- size_t user_data_dir_length,
- wchar_t* invalid_user_data_dir,
- size_t invalid_user_data_dir_length) {
- std::wstring user_data_dir_str, invalid_user_data_dir_str;
- bool ret = install_static::GetUserDataDirectory(&user_data_dir_str,
- &invalid_user_data_dir_str);
- assert(ret);
- install_static::IgnoreUnused(ret);
- wcsncpy_s(user_data_dir, user_data_dir_length, user_data_dir_str.c_str(),
- _TRUNCATE);
- wcsncpy_s(invalid_user_data_dir, invalid_user_data_dir_length,
- invalid_user_data_dir_str.c_str(), _TRUNCATE);
-}
-
BOOL APIENTRY DllMain(HMODULE module, DWORD reason, LPVOID reserved) {
if (reason == DLL_PROCESS_ATTACH) {
install_static::InitializeProductDetailsForPrimaryModule();
@@ -52,8 +37,6 @@ BOOL APIENTRY DllMain(HMODULE module, DWORD reason, LPVOID reserved) {
// TerminateProcess. We need to hook CRT's attempt to set an exception.
elf_crash::DisableSetUnhandledExceptionFilter();
- install_static::InitializeProcessType();
-
__try {
blacklist::Initialize(false); // Don't force, abort if beacon is present.
} __except (elf_crash::GenerateCrashDump(GetExceptionInformation())) {
« no previous file with comments | « chrome_elf/chrome_elf.def ('k') | components/browser_watcher/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698