| Index: chrome/browser/chrome_content_browser_client.cc
|
| diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
|
| index 1e98c971f84eccd44dea1102742d98f9d6fe3713..c5dfbf0d6ba2ca4b78a2e525feafb33a15af7661 100644
|
| --- a/chrome/browser/chrome_content_browser_client.cc
|
| +++ b/chrome/browser/chrome_content_browser_client.cc
|
| @@ -2719,8 +2719,18 @@ void ChromeContentBrowserClient::GetAdditionalMappedFilesForChildProcess(
|
| fd = ui::GetLocalePackFd(&(*regions)[kAndroidLocalePakDescriptor]);
|
| mappings->Share(kAndroidLocalePakDescriptor, fd);
|
|
|
| - breakpad::CrashDumpObserver::GetInstance()->BrowserChildProcessStarted(
|
| - child_process_id, mappings);
|
| + if (breakpad::IsCrashReporterEnabled()) {
|
| + base::File file =
|
| + breakpad::CrashDumpManager::GetInstance()->CreateMinidumpFile(
|
| + child_process_id);
|
| + if (file.IsValid()) {
|
| + mappings->Transfer(kAndroidMinidumpDescriptor,
|
| + base::ScopedFD(file.TakePlatformFile()));
|
| + } else {
|
| + LOG(ERROR) << "Failed to create file for minidump, crash reporting will "
|
| + "be disabled for this process.";
|
| + }
|
| + }
|
|
|
| base::FilePath app_data_path;
|
| PathService::Get(base::DIR_ANDROID_APP_DATA, &app_data_path);
|
|
|