summaryrefslogtreecommitdiffstats
path: root/chrome/browser/profiles/profile_metrics.h
diff options
context:
space:
mode:
authorrlp@chromium.org <rlp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-03 21:43:35 +0000
committerrlp@chromium.org <rlp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-03 21:43:35 +0000
commit626369740addb360bd1445e6fcd9f8c9c50de166 (patch)
tree0500ba6ed287f07cc238231f49d012d751cc6580 /chrome/browser/profiles/profile_metrics.h
parentf5cd9e5d3c402226c8ff260eb63562df269f27ac (diff)
downloadchromium_src-626369740addb360bd1445e6fcd9f8c9c50de166.zip
chromium_src-626369740addb360bd1445e6fcd9f8c9c50de166.tar.gz
chromium_src-626369740addb360bd1445e6fcd9f8c9c50de166.tar.bz2
Adding in metrics for profiles.
BUG=93825 TEST=none Review URL: http://codereview.chromium.org/8390061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108547 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/profiles/profile_metrics.h')
-rw-r--r--chrome/browser/profiles/profile_metrics.h89
1 files changed, 89 insertions, 0 deletions
diff --git a/chrome/browser/profiles/profile_metrics.h b/chrome/browser/profiles/profile_metrics.h
new file mode 100644
index 0000000..68d221c
--- /dev/null
+++ b/chrome/browser/profiles/profile_metrics.h
@@ -0,0 +1,89 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_
+#define CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_
+
+#include <stddef.h>
+#include <string>
+
+#include "base/basictypes.h"
+
+class FilePath;
+
+class ProfileMetrics {
+ public:
+ enum ProfileAvatar {
+ AVATAR_GENERIC = 0, // The names for avatar icons
+ AVATAR_GENERIC_AQUA,
+ AVATAR_GENERIC_BLUE,
+ AVATAR_GENERIC_GREEN,
+ AVATAR_GENERIC_ORANGE,
+ AVATAR_GENERIC_PURPLE,
+ AVATAR_GENERIC_RED,
+ AVATAR_GENERIC_YELLOW,
+ AVATAR_SECRET_AGENT,
+ AVATAR_SUPERHERO,
+ AVATAR_VOLLEYBALL,
+ AVATAR_BUSINESSMAN,
+ AVATAR_NINJA,
+ AVATAR_ALIEN,
+ AVATAR_AWESOME,
+ AVATAR_FLOWER,
+ AVATAR_PIZZA,
+ AVATAR_SOCCER,
+ AVATAR_BURGER,
+ AVATAR_CAT,
+ AVATAR_CUPCAKE,
+ AVATAR_DOG,
+ AVATAR_HORSE,
+ AVATAR_MARGARITA,
+ AVATAR_NOTE,
+ AVATAR_SUN_CLOUD,
+ AVATAR_UNKNOWN,
+ NUM_PROFILE_AVATAR_METRICS
+ };
+
+ enum ProfileOpen {
+ ADD_NEW_USER = 0, // Total count of add new user
+ ADD_NEW_USER_ICON, // User adds new user from icon menu
+ ADD_NEW_USER_MENU, // User adds new user from menu bar
+ SWITCH_PROFILE_ICON, // User switches profiles from icon menu
+ SWITCH_PROFILE_MENU, // User switches profiles from menu bar
+ NTP_AVATAR_BUBBLE, // User opens avatar icon menu from NTP
+ ICON_AVATAR_BUBBLE, // User opens avatar icon menu from icon
+ PROFILE_DELETED, // User deleted a profile
+ NUM_PROFILE_OPEN_METRICS
+ };
+
+ // Sign in is logged once the user has entered their GAIA information.
+ // See sync_setup_flow.h.
+ // The options for sync are logged after the user has submitted the options
+ // form. See sync_setup_handler.h.
+ enum ProfileSync {
+ SYNC_SIGN_IN = 0, // User signed into sync
+ SYNC_SIGN_IN_ORIGINAL, // User signed into sync in original profile
+ SYNC_SIGN_IN_SECONDARY, // User signed into sync in secondary profile
+ SYNC_CUSTOMIZE, // User decided to customize sync
+ SYNC_CHOOSE, // User chose what to sync
+ SYNC_ENCRYPT, // User has chosen to encrypt all data
+ SYNC_PASSPHRASE, // User is using a passphrase
+ NUM_PROFILE_SYNC_METRICS
+ };
+
+ enum ProfileType {
+ ORIGINAL = 0, // Refers to the original/default profile
+ SECONDARY, // Refers to a user-created profile
+ NUM_PROFILE_TYPE_METRICS
+ };
+
+ static void LogProfileAvatarSelection(size_t icon_index);
+ static void LogProfileOpenMethod(ProfileOpen metric);
+ static void LogProfileSyncInfo(ProfileSync metric);
+ static void LogProfileUpdate(FilePath& profile_path);
+ static void LogProfileSyncSignIn(FilePath& profile_path);
+};
+
+
+#endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_