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

Issue 131089: When we upgrade, discard all uploadable stats, including old logs... (Closed)

Created:
11 years, 6 months ago by jar (doing other things)
Modified:
9 years, 7 months ago
Reviewers:
Evan Martin
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

When we upgrade, discard all uploadable stats, including old logs We already discard all stability info when we do an upgrade to a new version, as there is less concern about stats from old versions. This change just adds the list of "old logs" (gathered in previous sessions, presumably with an old version) to the list of data that is discarded. BUG=14657 r=evanm Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=18794

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -0 lines) Patch
M chrome/browser/metrics/metrics_service.cc View 1 chunk +8 lines, -0 lines 2 comments Download

Messages

Total messages: 3 (0 generated)
jar (doing other things)
11 years, 6 months ago (2009-06-19 04:46:10 UTC) #1
Evan Martin
LGTM http://codereview.chromium.org/131089/diff/1/2 File chrome/browser/metrics/metrics_service.cc (right): http://codereview.chromium.org/131089/diff/1/2#newcode381 Line 381: prefs::kMetricsOngoingLogs); Can these ever be NULL? Just ...
11 years, 6 months ago (2009-06-19 05:14:22 UTC) #2
jar (doing other things)
11 years, 6 months ago (2009-06-19 06:07:19 UTC) #3
http://codereview.chromium.org/131089/diff/1/2
File chrome/browser/metrics/metrics_service.cc (right):

http://codereview.chromium.org/131089/diff/1/2#newcode381
Line 381: prefs::kMetricsOngoingLogs);
On 2009/06/19 05:14:22, Evan Martin wrote:
> Can these ever be NULL?  Just want you to be sure.

It is guaranteed to be non-NULL so long as the pref is registered.  It will
create a dictionary if one does not exist, or return the existing dictionary.

All prefs are registered in a local function MetricsService::RegisterPrefs()
which is one of many module initialization functions called from
RegisterAllPrefs() in browser_prefs.cc.   Bottom line: The prefs are registered
whether metrics services are used or not, and hence this return value is always
non-NULL.

Powered by Google App Engine
This is Rietveld 408576698