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

Unified Diff: chrome/browser/sync/invalidations/invalidator_storage.cc

Issue 10603007: Add UMA tracking for sync.max_invalidation_versions pref migration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: src.git changes are no fun Created 8 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/sync/invalidations/invalidator_storage.cc
diff --git a/chrome/browser/sync/invalidations/invalidator_storage.cc b/chrome/browser/sync/invalidations/invalidator_storage.cc
index defe2570b26189c5231f70f992ba2472aa82f01f..4ca9f2dc68109345609afc774cc44ce968cce015 100644
--- a/chrome/browser/sync/invalidations/invalidator_storage.cc
+++ b/chrome/browser/sync/invalidations/invalidator_storage.cc
@@ -6,6 +6,7 @@
#include "base/base64.h"
#include "base/logging.h"
+#include "base/metrics/histogram.h"
#include "base/string_number_conversions.h"
#include "base/values.h"
#include "chrome/browser/prefs/pref_service.h"
@@ -160,6 +161,11 @@ void InvalidatorStorage::MigrateMaxInvalidationVersionsPref() {
SerializeToList(max_versions, &max_versions_list);
pref_service_->Set(prefs::kInvalidatorMaxInvalidationVersions,
max_versions_list);
+ UMA_HISTOGRAM_BOOLEAN("InvalidatorStorage.MigrateInvalidationVersionsPref",
+ true);
+ } else {
+ UMA_HISTOGRAM_BOOLEAN("InvalidatorStorage.MigrateInvalidationVersionsPref",
+ false);
}
pref_service_->ClearPref(prefs::kSyncMaxInvalidationVersions);
}
« 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