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

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

Issue 345733006: UMA Metrics to track profile deletion, along with signed-in status. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Enum for the histogram config Created 6 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 | chrome/browser/profiles/profile_metrics.h » ('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 85ba7886c04c270ae7456138d48e6443e6923830..6373db817d7e05726119173e0bba3d4215db29c5 100644
--- a/chrome/browser/profiles/profile_manager.cc
+++ b/chrome/browser/profiles/profile_manager.cc
@@ -1100,6 +1100,10 @@ void ProfileManager::FinishDeletingProfile(const base::FilePath& profile_dir) {
ProfileSyncServiceFactory::GetInstance()->GetForProfile(
profile)->DisableForUser();
}
+
+ bool profile_is_signed_in = !cache.GetUserNameOfProfileAtIndex(
+ cache.GetIndexOfProfileWithPath(profile_dir)).empty();
+ ProfileMetrics::LogProfileDelete(profile_is_signed_in);
}
QueueProfileDirectoryForDeletion(profile_dir);
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_metrics.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698