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

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

Issue 593243002: Profile_Metrics integration with Keystone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments (mark and others) Created 6 years, 2 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_
6 #define CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ 6 #define CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 PROFILE_AVATAR_MENU_UPGRADE_NOT_YOU, 186 PROFILE_AVATAR_MENU_UPGRADE_NOT_YOU,
187 NUM_PROFILE_AVATAR_MENU_UPGRADE_METRICS, 187 NUM_PROFILE_AVATAR_MENU_UPGRADE_METRICS,
188 }; 188 };
189 189
190 static void UpdateReportedProfilesStatistics(ProfileManager* manager); 190 static void UpdateReportedProfilesStatistics(ProfileManager* manager);
191 // Count and return summary information about the profiles currently in the 191 // Count and return summary information about the profiles currently in the
192 // |manager|. This information is returned in the output variable |counts|. 192 // |manager|. This information is returned in the output variable |counts|.
193 static bool CountProfileInformation(ProfileManager* manager, 193 static bool CountProfileInformation(ProfileManager* manager,
194 ProfileCounts* counts); 194 ProfileCounts* counts);
195 195
196 #if defined(OS_WIN) || defined(OS_MACOSX)
197 // Update OS level tracking of profile counts.
198 static void UpdateReportedOSProfileStatistics(int active, int signedin);
199 #endif
200
196 static void LogNumberOfProfiles(ProfileManager* manager); 201 static void LogNumberOfProfiles(ProfileManager* manager);
197 static void LogProfileAddNewUser(ProfileAdd metric); 202 static void LogProfileAddNewUser(ProfileAdd metric);
198 static void LogProfileAvatarSelection(size_t icon_index); 203 static void LogProfileAvatarSelection(size_t icon_index);
199 static void LogProfileDeleteUser(ProfileDelete metric); 204 static void LogProfileDeleteUser(ProfileDelete metric);
200 static void LogProfileOpenMethod(ProfileOpen metric); 205 static void LogProfileOpenMethod(ProfileOpen metric);
201 static void LogProfileSwitchGaia(ProfileGaia metric); 206 static void LogProfileSwitchGaia(ProfileGaia metric);
202 static void LogProfileSwitchUser(ProfileOpen metric); 207 static void LogProfileSwitchUser(ProfileOpen metric);
203 static void LogProfileSyncInfo(ProfileSync metric); 208 static void LogProfileSyncInfo(ProfileSync metric);
204 static void LogProfileAuthResult(ProfileAuth metric); 209 static void LogProfileAuthResult(ProfileAuth metric);
205 static void LogProfileDesktopMenu(ProfileDesktopMenu metric, 210 static void LogProfileDesktopMenu(ProfileDesktopMenu metric,
(...skipping 12 matching lines...) Expand all
218 223
219 // These functions should only be called on the UI thread because they hook 224 // These functions should only be called on the UI thread because they hook
220 // into g_browser_process through a helper function. 225 // into g_browser_process through a helper function.
221 static void LogProfileLaunch(Profile* profile); 226 static void LogProfileLaunch(Profile* profile);
222 static void LogProfileSyncSignIn(const base::FilePath& profile_path); 227 static void LogProfileSyncSignIn(const base::FilePath& profile_path);
223 static void LogProfileUpdate(const base::FilePath& profile_path); 228 static void LogProfileUpdate(const base::FilePath& profile_path);
224 }; 229 };
225 230
226 231
227 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ 232 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698