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

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: More browsertest cleanup. 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::LogProfileMirrorEnrollment(ProfileEnrollment metric) {
293 UMA_HISTOGRAM_ENUMERATION("Profile.MirrorEnrollment", metric,
294 NUM_PROFILE_ENROLLMENT_METRICS);
295 }
296
292 void ProfileMetrics::LogProfileLaunch(Profile* profile) { 297 void ProfileMetrics::LogProfileLaunch(Profile* profile) {
293 base::FilePath profile_path = profile->GetPath(); 298 base::FilePath profile_path = profile->GetPath();
294 UMA_HISTOGRAM_ENUMERATION("Profile.LaunchBrowser", 299 UMA_HISTOGRAM_ENUMERATION("Profile.LaunchBrowser",
295 GetProfileType(profile_path), 300 GetProfileType(profile_path),
296 NUM_PROFILE_TYPE_METRICS); 301 NUM_PROFILE_TYPE_METRICS);
297 302
298 if (profile->IsManaged()) { 303 if (profile->IsManaged()) {
299 content::RecordAction( 304 content::RecordAction(
300 base::UserMetricsAction("ManagedMode_NewManagedUserWindow")); 305 base::UserMetricsAction("ManagedMode_NewManagedUserWindow"));
301 } 306 }
302 } 307 }
303 308
304 void ProfileMetrics::LogProfileSyncSignIn(const base::FilePath& profile_path) { 309 void ProfileMetrics::LogProfileSyncSignIn(const base::FilePath& profile_path) {
305 UMA_HISTOGRAM_ENUMERATION("Profile.SyncSignIn", 310 UMA_HISTOGRAM_ENUMERATION("Profile.SyncSignIn",
306 GetProfileType(profile_path), 311 GetProfileType(profile_path),
307 NUM_PROFILE_TYPE_METRICS); 312 NUM_PROFILE_TYPE_METRICS);
308 } 313 }
309 314
310 void ProfileMetrics::LogProfileUpdate(const base::FilePath& profile_path) { 315 void ProfileMetrics::LogProfileUpdate(const base::FilePath& profile_path) {
311 UMA_HISTOGRAM_ENUMERATION("Profile.Update", 316 UMA_HISTOGRAM_ENUMERATION("Profile.Update",
312 GetProfileType(profile_path), 317 GetProfileType(profile_path),
313 NUM_PROFILE_TYPE_METRICS); 318 NUM_PROFILE_TYPE_METRICS);
314 } 319 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698