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

Unified Diff: chrome/browser/profiles/profile_manager.cc

Issue 605333002: Record the number of loaded profiles when a profile is erased from the profiles map kept by profile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 3 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 | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_manager.cc
diff --git a/chrome/browser/profiles/profile_manager.cc b/chrome/browser/profiles/profile_manager.cc
index b48c2ac2d725d51bc262d6f2bb085e1ab01ef5f8..7888c9ada10a776639488c09519618789af131a8 100644
--- a/chrome/browser/profiles/profile_manager.cc
+++ b/chrome/browser/profiles/profile_manager.cc
@@ -949,6 +949,9 @@ void ProfileManager::OnProfileCreated(Profile* profile,
} else {
profile = NULL;
profiles_info_.erase(iter);
+ // TODO(yiyaoliu): This is temporary, remove it after it's not used.
+ UMA_HISTOGRAM_COUNTS_100("UMA.ProfilesCount.AfterErase",
+ profiles_info_.size());
}
if (profile) {
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698