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

Side by Side Diff: chrome/browser/profiles/profile_metrics.cc

Issue 227083007: UMA for New Profile Management. Track User-Menu Tutorial actions with Histograms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Further clean up condition controlling OptionsView. Created 6 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/profiles/profile_metrics.h" 5 #include "chrome/browser/profiles/profile_metrics.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 DCHECK(metric < NUM_PROFILE_SYNC_METRICS); 282 DCHECK(metric < NUM_PROFILE_SYNC_METRICS);
283 UMA_HISTOGRAM_ENUMERATION("Profile.SyncCustomize", metric, 283 UMA_HISTOGRAM_ENUMERATION("Profile.SyncCustomize", metric,
284 NUM_PROFILE_SYNC_METRICS); 284 NUM_PROFILE_SYNC_METRICS);
285 } 285 }
286 286
287 void ProfileMetrics::LogProfileAuthResult(ProfileAuth metric) { 287 void ProfileMetrics::LogProfileAuthResult(ProfileAuth metric) {
288 UMA_HISTOGRAM_ENUMERATION("Profile.AuthResult", metric, 288 UMA_HISTOGRAM_ENUMERATION("Profile.AuthResult", metric,
289 NUM_PROFILE_AUTH_METRICS); 289 NUM_PROFILE_AUTH_METRICS);
290 } 290 }
291 291
292 void ProfileMetrics::LogProfileUpgradeEnrollment(
293 ProfileUpgradeEnrollment metric) {
294 UMA_HISTOGRAM_ENUMERATION("Profile.UpgradeEnrollment", metric,
295 NUM_PROFILE_ENROLLMENT_METRICS);
296 }
297
292 void ProfileMetrics::LogProfileLaunch(Profile* profile) { 298 void ProfileMetrics::LogProfileLaunch(Profile* profile) {
293 base::FilePath profile_path = profile->GetPath(); 299 base::FilePath profile_path = profile->GetPath();
294 UMA_HISTOGRAM_ENUMERATION("Profile.LaunchBrowser", 300 UMA_HISTOGRAM_ENUMERATION("Profile.LaunchBrowser",
295 GetProfileType(profile_path), 301 GetProfileType(profile_path),
296 NUM_PROFILE_TYPE_METRICS); 302 NUM_PROFILE_TYPE_METRICS);
297 303
298 if (profile->IsManaged()) { 304 if (profile->IsManaged()) {
299 content::RecordAction( 305 content::RecordAction(
300 base::UserMetricsAction("ManagedMode_NewManagedUserWindow")); 306 base::UserMetricsAction("ManagedMode_NewManagedUserWindow"));
301 } 307 }
302 } 308 }
303 309
304 void ProfileMetrics::LogProfileSyncSignIn(const base::FilePath& profile_path) { 310 void ProfileMetrics::LogProfileSyncSignIn(const base::FilePath& profile_path) {
305 UMA_HISTOGRAM_ENUMERATION("Profile.SyncSignIn", 311 UMA_HISTOGRAM_ENUMERATION("Profile.SyncSignIn",
306 GetProfileType(profile_path), 312 GetProfileType(profile_path),
307 NUM_PROFILE_TYPE_METRICS); 313 NUM_PROFILE_TYPE_METRICS);
308 } 314 }
309 315
310 void ProfileMetrics::LogProfileUpdate(const base::FilePath& profile_path) { 316 void ProfileMetrics::LogProfileUpdate(const base::FilePath& profile_path) {
311 UMA_HISTOGRAM_ENUMERATION("Profile.Update", 317 UMA_HISTOGRAM_ENUMERATION("Profile.Update",
312 GetProfileType(profile_path), 318 GetProfileType(profile_path),
313 NUM_PROFILE_TYPE_METRICS); 319 NUM_PROFILE_TYPE_METRICS);
314 } 320 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_metrics.h ('k') | chrome/browser/ui/views/profiles/new_avatar_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698