| Index: content/shell/browser/shell_content_browser_client.cc
|
| diff --git a/content/shell/browser/shell_content_browser_client.cc b/content/shell/browser/shell_content_browser_client.cc
|
| index 643f9c1653d38d9bf700952260f3b77347872003..46c8895cc8ac05b878468db81106682ee749f4e0 100644
|
| --- a/content/shell/browser/shell_content_browser_client.cc
|
| +++ b/content/shell/browser/shell_content_browser_client.cc
|
| @@ -297,8 +297,18 @@ void ShellContentBrowserClient::GetAdditionalMappedFilesForChildProcess(
|
| regions->insert(std::make_pair(
|
| kShellPakDescriptor,
|
| base::GlobalDescriptors::GetInstance()->GetRegion(kShellPakDescriptor)));
|
| - breakpad::CrashDumpObserver::GetInstance()->BrowserChildProcessStarted(
|
| - child_process_id, mappings);
|
| +
|
| + if (breakpad::IsCrashReporterEnabled()) {
|
| + base::File f(breakpad::CrashDumpManager::GetInstance()->CreateMinidumpFile(
|
| + child_process_id));
|
| + if (!f.IsValid()) {
|
| + LOG(ERROR) << "Failed to create file for minidump, crash reporting will "
|
| + << "be disabled for this process.";
|
| + } else {
|
| + mappings->Transfer(kAndroidMinidumpDescriptor,
|
| + base::ScopedFD(f.TakePlatformFile()));
|
| + }
|
| + }
|
| }
|
| #elif defined(OS_POSIX) && !defined(OS_MACOSX)
|
| void ShellContentBrowserClient::GetAdditionalMappedFilesForChildProcess(
|
|
|