diff options
author | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-23 21:14:38 +0000 |
---|---|---|
committer | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-23 21:14:38 +0000 |
commit | 541f7792a2526af07cc2593ef5961fb58a472b0c (patch) | |
tree | 1ec1e4fa080111a490722dd9d6f3a6154e9a7185 /chrome/browser/metrics/metrics_service.h | |
parent | 6eaddcc1be66c1ffb3980a6b5b1fe0f106be67e9 (diff) | |
download | chromium_src-541f7792a2526af07cc2593ef5961fb58a472b0c.zip chromium_src-541f7792a2526af07cc2593ef5961fb58a472b0c.tar.gz chromium_src-541f7792a2526af07cc2593ef5961fb58a472b0c.tar.bz2 |
Discard crash data during first run of a new version.
Avoid confusion associated with uploading crash data from an old version
during the first run of a new version.
Carlos: Please confirm that you're fine with discarding metrics about
installer and Render in Sbox.
Evan: Please confirm that I got all the usage/crash stats.
r=cpu,evanm,mal
Review URL: http://codereview.chromium.org/28017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10211 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/metrics/metrics_service.h')
-rw-r--r-- | chrome/browser/metrics/metrics_service.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/metrics/metrics_service.h b/chrome/browser/metrics/metrics_service.h index d42d953..630d2de 100644 --- a/chrome/browser/metrics/metrics_service.h +++ b/chrome/browser/metrics/metrics_service.h @@ -122,6 +122,14 @@ class MetricsService : public NotificationObserver, class GetPluginListTask; class GetPluginListTaskComplete; + // When we start a new version of Chromium (different from our last run), we + // need to discard the old crash stats so that we don't attribute crashes etc. + // in the old version to the current version (via current logs). + // Without this, a common reason to finally start a new version is to crash + // the old version (after an autoupdate has arrived), and so we'd bias + // initial results towards showing crashes :-(. + static void DiscardOldStabilityStats(PrefService* local_state); + // Sets and gets whether metrics recording is active. // SetRecording(false) also forces a persistent save of logging state (if // anything has been recorded, or transmitted). |