diff options
author | jeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-18 22:17:36 +0000 |
---|---|---|
committer | jeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-18 22:17:36 +0000 |
commit | 3090eeb5afd49e828739b492eb400d8fcf734784 (patch) | |
tree | addbf256e9a4773ea27edb4718102e49bd133c69 /chrome/app/breakpad_mac.mm | |
parent | 1b4d44eb423ebb40c716ae0c44cdb60accef1e37 (diff) | |
download | chromium_src-3090eeb5afd49e828739b492eb400d8fcf734784.zip chromium_src-3090eeb5afd49e828739b492eb400d8fcf734784.tar.gz chromium_src-3090eeb5afd49e828739b492eb400d8fcf734784.tar.bz2 |
Hook up stats reporting via default system on OS X.
Allow enabling/disabling stats via user defaults.
Fix breakpad to read from global stats setting.
To disable stats, type the following in the terminal:
defaults write com.google.Chrome usagestats -bool NO
BUG=12046
Review URL: http://codereview.chromium.org/113549
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16333 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app/breakpad_mac.mm')
-rw-r--r-- | chrome/app/breakpad_mac.mm | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/chrome/app/breakpad_mac.mm b/chrome/app/breakpad_mac.mm index 8a689cf..445edcb 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; } |