Commit d48deccb authored by erikwright's avatar erikwright Committed by Commit bot

Revert of Call RegisterCrashKeys for chrome.exe in static build. (patchset #5...

Revert of Call RegisterCrashKeys for chrome.exe in static build. (patchset #5 id:140001 of https://codereview.chromium.org/1008523002/)

Reason for revert:
Test failures.

Original issue's description:
> Call RegisterCrashKeys for chrome.exe in static build.
>
> In component builds the single invocation from child_process_logging_win is sufficient (as there is only a single copy of base).
>
> BUG=460512
>
> Committed: https://crrev.com/0bfeabec41ac37bc9e8c0b62316a11269db156e5
> Cr-Commit-Position: refs/heads/master@{#320967}

TBR=rsesek@chromium.org,grt@chromium.org,kbr@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=460512

Review URL: https://codereview.chromium.org/1016933002

Cr-Commit-Position: refs/heads/master@{#320994}
parent 7b79a196
...@@ -321,17 +321,10 @@ bool ChromeCrashReporterClient::GetCrashDumpLocation( ...@@ -321,17 +321,10 @@ bool ChromeCrashReporterClient::GetCrashDumpLocation(
} }
size_t ChromeCrashReporterClient::RegisterCrashKeys() { size_t ChromeCrashReporterClient::RegisterCrashKeys() {
// Note: On Windows this only affects the EXE. A separate invocation from // Note: This is not called on Windows because Breakpad is initialized in the
// child_process_logging_win.cc registers crash keys for Chrome.dll. // EXE module, but code that uses crash keys is in the DLL module.
#if defined(COMPONENT_BUILD) // RegisterChromeCrashKeys() will be called after the DLL is loaded.
// On Windows, this is not called in a component build, as in that case a
// single copy of 'base' is shared by the EXE and the various DLLs, and that
// copy is configured by child_process_logging_win.cc.
NOTREACHED();
return 0;
#else
return crash_keys::RegisterChromeCrashKeys(); return crash_keys::RegisterChromeCrashKeys();
#endif
} }
bool ChromeCrashReporterClient::IsRunningUnattended() { bool ChromeCrashReporterClient::IsRunningUnattended() {
......
...@@ -541,16 +541,8 @@ void InitCrashReporter(const std::string& process_type_switch) { ...@@ -541,16 +541,8 @@ void InitCrashReporter(const std::string& process_type_switch) {
base::CommandLine::ForCurrentProcess(), base::CommandLine::ForCurrentProcess(),
GetCrashReporterClient()); GetCrashReporterClient());
#if !defined(COMPONENT_BUILD)
// chrome/common/child_process_logging_win.cc registers crash keys for
// chrome.dll. In a component build, that is sufficient as chrome.dll and
// chrome.exe share a copy of base (in base.dll).
// In a static build, the EXE must separately initialize the crash keys
// configuration as it has its own statically linked copy of base.
base::debug::SetCrashKeyReportingFunctions(&SetCrashKeyValueForBaseDebug, base::debug::SetCrashKeyReportingFunctions(&SetCrashKeyValueForBaseDebug,
&ClearCrashKeyForBaseDebug); &ClearCrashKeyForBaseDebug);
GetCrashReporterClient()->RegisterCrashKeys();
#endif
google_breakpad::ExceptionHandler::MinidumpCallback callback = NULL; google_breakpad::ExceptionHandler::MinidumpCallback callback = NULL;
LPTOP_LEVEL_EXCEPTION_FILTER default_filter = NULL; LPTOP_LEVEL_EXCEPTION_FILTER default_filter = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment