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

Unified Diff: chrome/browser/metrics/metrics_service.cc

Issue 131089: When we upgrade, discard all uploadable stats, including old logs... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/metrics_service.cc
===================================================================
--- chrome/browser/metrics/metrics_service.cc (revision 18545)
+++ chrome/browser/metrics/metrics_service.cc (working copy)
@@ -372,6 +372,14 @@
local_state->SetString(prefs::kStabilityUptimeSec, L"0");
local_state->ClearPref(prefs::kStabilityPluginStats);
+
+ ListValue* unsent_initial_logs = local_state->GetMutableList(
+ prefs::kMetricsInitialLogs);
+ unsent_initial_logs->Clear();
+
+ ListValue* unsent_ongoing_logs = local_state->GetMutableList(
+ prefs::kMetricsOngoingLogs);
Evan Martin 2009/06/19 05:14:22 Can these ever be NULL? Just want you to be sure.
jar (doing other things) 2009/06/19 06:07:22 It is guaranteed to be non-NULL so long as the pre
+ unsent_ongoing_logs->Clear();
}
MetricsService::MetricsService()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698