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 520db3f9066b542a97918b0f90655e58149033d0..a796bfcb8c3053bfc51119565934cc0918f1a078 100644 |
--- a/chrome/browser/chrome_content_browser_client.cc |
+++ b/chrome/browser/chrome_content_browser_client.cc |
@@ -1841,13 +1841,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()) { |
Mark Seaborn
2013/01/18 21:49:20
This change could use an explanation in the commit
Yaron
2013/01/22 18:49:07
Done.
|
+ 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."; |
Mark Seaborn
2013/01/18 21:49:20
You have two spaces in the middle of this string
Yaron
2013/01/22 18:49:07
Done.
|
+ } else { |
+ mappings->push_back(FileDescriptorInfo(kAndroidMinidumpDescriptor, |
+ FileDescriptor(f, true))); |
+ } |
} |
#endif // defined(USE_LINUX_BREAKPAD) |