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 d27c0b252b8b24b82d45b593d0d7beb09ac51617..4e6c2cb39828496bdf42e303a43c9f709901d6a8 100644 |
--- a/chrome/browser/chrome_content_browser_client.cc |
+++ b/chrome/browser/chrome_content_browser_client.cc |
@@ -1840,13 +1840,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) |