Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4672)

Unified Diff: chrome/app/breakpad_mac.mm

Issue 113549: Hook up stats reporting via default system on OS X. (Closed)
Patch Set: Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/browser_main.cc » ('j') | chrome/browser/google_update_settings_mac.mm » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/app/breakpad_mac.mm
diff --git a/chrome/app/breakpad_mac.mm b/chrome/app/breakpad_mac.mm
index 8a689cfec067f4a94f5367e49ed577f55882b6b7..445edcb887697dc509643d8ea5f3df6cb853c053 100644
--- a/chrome/app/breakpad_mac.mm
+++ b/chrome/app/breakpad_mac.mm
@@ -13,6 +13,7 @@
#import "base/scoped_nsautorelease_pool.h"
#include "base/sys_string_conversions.h"
#import "breakpad/src/client/mac/Framework/Breakpad.h"
+#include "chrome/installer/util/google_update_settings.h"
#if !defined(GOOGLE_CHROME_BUILD)
// If we aren't compiling as a branded build, then add dummy versions of the
@@ -41,12 +42,6 @@ namespace {
BreakpadRef gBreakpadRef = NULL;
-// Did the user optin for reporting stats.
-bool IsStatsReportingAllowed() {
- NOTIMPLEMENTED();
- return true;
-}
-
} // namespace
bool IsCrashReporterEnabled() {
@@ -67,7 +62,7 @@ void InitCrashReporter() {
// Check for Send stats preference. If preference is not specifically turned
// on then disable crash reporting.
- if (!IsStatsReportingAllowed()) {
+ if (!GoogleUpdateSettings::GetCollectStatsConsent()) {
LOG(WARNING) << "Breakpad disabled";
return;
}
« no previous file with comments | « no previous file | chrome/browser/browser_main.cc » ('j') | chrome/browser/google_update_settings_mac.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698