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

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

Issue 316863002: Rename "managed (mode|user)" to "supervised user" (part 1) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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 | « chrome/browser/profiles/profile_manager_unittest.cc ('k') | chrome/browser/signin/chrome_signin_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_metrics.cc
diff --git a/chrome/browser/profiles/profile_metrics.cc b/chrome/browser/profiles/profile_metrics.cc
index 6dd35553e0d03ed8ce43c7c14a77354bc09241f8..b68ad007b3389925438a5df6e041c0529892b89a 100644
--- a/chrome/browser/profiles/profile_metrics.cc
+++ b/chrome/browser/profiles/profile_metrics.cc
@@ -25,12 +25,12 @@ const int kMaximumDaysOfDisuse = 4 * 7; // Should be integral number of weeks.
struct ProfileCounts {
size_t total;
size_t signedin;
- size_t managed;
+ size_t supervised;
size_t unused;
size_t gaia_icon;
ProfileCounts()
- : total(0), signedin(0), managed(0), unused(0), gaia_icon(0) {}
+ : total(0), signedin(0), supervised(0), unused(0), gaia_icon(0) {}
};
ProfileMetrics::ProfileType GetProfileType(
@@ -72,8 +72,8 @@ bool CountProfileInformation(ProfileManager* manager, ProfileCounts* counts) {
if (info_cache.GetProfileActiveTimeAtIndex(i) < oldest) {
counts->unused++;
} else {
- if (info_cache.ProfileIsManagedAtIndex(i))
- counts->managed++;
+ if (info_cache.ProfileIsSupervisedAtIndex(i))
+ counts->supervised++;
if (!info_cache.GetUserNameOfProfileAtIndex(i).empty()) {
counts->signedin++;
if (info_cache.IsUsingGAIAPictureOfProfileAtIndex(i))
@@ -142,9 +142,9 @@ void ProfileMetrics::LogNumberOfProfiles(ProfileManager* manager) {
// Ignore other metrics if we have no profiles, e.g. in Chrome Frame tests.
if (success) {
UMA_HISTOGRAM_COUNTS_100("Profile.NumberOfManagedProfiles",
- counts.managed);
+ counts.supervised);
UMA_HISTOGRAM_COUNTS_100("Profile.PercentageOfManagedProfiles",
- 100 * counts.managed / counts.total);
+ 100 * counts.supervised / counts.total);
UMA_HISTOGRAM_COUNTS_100("Profile.NumberOfSignedInProfiles",
counts.signedin);
UMA_HISTOGRAM_COUNTS_100("Profile.NumberOfUnusedProfiles",
@@ -391,7 +391,7 @@ void ProfileMetrics::LogProfileLaunch(Profile* profile) {
GetProfileType(profile_path),
NUM_PROFILE_TYPE_METRICS);
- if (profile->IsManaged()) {
+ if (profile->IsSupervised()) {
content::RecordAction(
base::UserMetricsAction("ManagedMode_NewManagedUserWindow"));
}
« no previous file with comments | « chrome/browser/profiles/profile_manager_unittest.cc ('k') | chrome/browser/signin/chrome_signin_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698