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 ddcc3709d34b3e8686321f80ee92cccc4c28c8b4..18ca1e0b32de1a830031a740807704d2dd7ff8c5 100644 |
--- a/chrome/browser/chrome_content_browser_client.cc |
+++ b/chrome/browser/chrome_content_browser_client.cc |
@@ -1842,13 +1842,15 @@ void ChromeContentBrowserClient::GetAdditionalMappedFilesForChildProcess( |
FileDescriptor(f, true))); |
#if defined(USE_LINUX_BREAKPAD) |
- f = CrashDumpManager::GetInstance()->CreateMinidumpFile(child_process_id); |
- if (f == base::kInvalidPlatformFileValue) { |
- LOG(ERROR) << "Failed to create file for minidump, crash reporting will be " |
- "disabled for this process."; |
- } else { |
- mappings->push_back(FileDescriptorInfo(kAndroidMinidumpDescriptor, |
- FileDescriptor(f, true))); |
+ if (IsCrashReporterEnabled()) { |
+ f = CrashDumpManager::GetInstance()->CreateMinidumpFile(child_process_id); |
+ if (f == base::kInvalidPlatformFileValue) { |
+ LOG(ERROR) << "Failed to create file for minidump, crash reporting will " |
+ " be disabled for this process."; |
+ } else { |
+ mappings->push_back(FileDescriptorInfo(kAndroidMinidumpDescriptor, |
+ FileDescriptor(f, true))); |
+ } |
} |
#endif // defined(USE_LINUX_BREAKPAD) |