Index: components/breakpad/breakpad_mac.mm |
diff --git a/components/breakpad/breakpad_mac.mm b/components/breakpad/breakpad_mac.mm |
index 0f6c09761b8f882ef4c287591c10600ea74e74c6..e109f9fb2d9b49e0d594898f39d7c439ce011314 100644 |
--- a/components/breakpad/breakpad_mac.mm |
+++ b/components/breakpad/breakpad_mac.mm |
@@ -166,10 +166,7 @@ void InitCrashReporter() { |
if (is_browser) { |
// Since the configuration management infrastructure is possibly not |
// initialized when this code runs, read the policy preference directly. |
- if (GetBreakpadClient()->ReportingIsEnforcedByPolicy()) { |
- // Controlled by configuration manangement. |
- enable_breakpad = true; |
- } else { |
+ if (!GetBreakpadClient()->ReportingIsEnforcedByPolicy(&enable_breakpad)) { |
// Controlled by the user. The crash reporter may be enabled by |
// preference or through an environment variable, but the kDisableBreakpad |
// switch overrides both. |