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

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

Issue 288493008: UMA Metrics for the user menu, including vasquette-detection (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Track user-source in the histogram suffix 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 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
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( 292 void ProfileMetrics::LogProfileUpgradeEnrollment(
293 ProfileUpgradeEnrollment metric) { 293 ProfileUpgradeEnrollment metric) {
294 UMA_HISTOGRAM_ENUMERATION("Profile.UpgradeEnrollment", metric, 294 UMA_HISTOGRAM_ENUMERATION("Profile.UpgradeEnrollment", metric,
295 NUM_PROFILE_ENROLLMENT_METRICS); 295 NUM_PROFILE_ENROLLMENT_METRICS);
296 } 296 }
297 297
298 void ProfileMetrics::LogProfileDesktopSignout(ProfileDesktopSignout metric,
299 bool opened_from_content) {
300 if (opened_from_content) {
301 UMA_HISTOGRAM_ENUMERATION("Profile.DesktopSignout.Content", metric,
302 NUM_PROFILE_DESKTOP_SIGNOUT_METRICS);
303 } else {
304 UMA_HISTOGRAM_ENUMERATION("Profile.DesktopSignout.Button", metric,
305 NUM_PROFILE_DESKTOP_SIGNOUT_METRICS);
306 }
307 }
308
298 void ProfileMetrics::LogProfileLaunch(Profile* profile) { 309 void ProfileMetrics::LogProfileLaunch(Profile* profile) {
299 base::FilePath profile_path = profile->GetPath(); 310 base::FilePath profile_path = profile->GetPath();
300 UMA_HISTOGRAM_ENUMERATION("Profile.LaunchBrowser", 311 UMA_HISTOGRAM_ENUMERATION("Profile.LaunchBrowser",
301 GetProfileType(profile_path), 312 GetProfileType(profile_path),
302 NUM_PROFILE_TYPE_METRICS); 313 NUM_PROFILE_TYPE_METRICS);
303 314
304 if (profile->IsManaged()) { 315 if (profile->IsManaged()) {
305 content::RecordAction( 316 content::RecordAction(
306 base::UserMetricsAction("ManagedMode_NewManagedUserWindow")); 317 base::UserMetricsAction("ManagedMode_NewManagedUserWindow"));
307 } 318 }
308 } 319 }
309 320
310 void ProfileMetrics::LogProfileSyncSignIn(const base::FilePath& profile_path) { 321 void ProfileMetrics::LogProfileSyncSignIn(const base::FilePath& profile_path) {
311 UMA_HISTOGRAM_ENUMERATION("Profile.SyncSignIn", 322 UMA_HISTOGRAM_ENUMERATION("Profile.SyncSignIn",
312 GetProfileType(profile_path), 323 GetProfileType(profile_path),
313 NUM_PROFILE_TYPE_METRICS); 324 NUM_PROFILE_TYPE_METRICS);
314 } 325 }
315 326
316 void ProfileMetrics::LogProfileUpdate(const base::FilePath& profile_path) { 327 void ProfileMetrics::LogProfileUpdate(const base::FilePath& profile_path) {
317 UMA_HISTOGRAM_ENUMERATION("Profile.Update", 328 UMA_HISTOGRAM_ENUMERATION("Profile.Update",
318 GetProfileType(profile_path), 329 GetProfileType(profile_path),
319 NUM_PROFILE_TYPE_METRICS); 330 NUM_PROFILE_TYPE_METRICS);
320 } 331 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698