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

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: Better error handling Created 6 years, 3 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 PROFILE_AVATAR_MENU_UPGRADE_NOT_YOU, 185 PROFILE_AVATAR_MENU_UPGRADE_NOT_YOU,
186 NUM_PROFILE_AVATAR_MENU_UPGRADE_METRICS, 186 NUM_PROFILE_AVATAR_MENU_UPGRADE_METRICS,
187 }; 187 };
188 188
189 static void UpdateReportedProfilesStatistics(ProfileManager* manager); 189 static void UpdateReportedProfilesStatistics(ProfileManager* manager);
190 // Count and return summary information about the profiles currently in the 190 // Count and return summary information about the profiles currently in the
191 // |manager|. This information is returned in the output variable |counts|. 191 // |manager|. This information is returned in the output variable |counts|.
192 static bool CountProfileInformation(ProfileManager* manager, 192 static bool CountProfileInformation(ProfileManager* manager,
193 ProfileCounts* counts); 193 ProfileCounts* counts);
194 194
195 #if defined(OS_WIN) || defined(OS_MACOSX)
196 // Update OS level tracking of profile counts.
197 static void UpdateReportedOSProfileStatistics(int active, int signedin);
198 #endif
199
195 static void LogNumberOfProfiles(ProfileManager* manager); 200 static void LogNumberOfProfiles(ProfileManager* manager);
196 static void LogProfileAddNewUser(ProfileAdd metric); 201 static void LogProfileAddNewUser(ProfileAdd metric);
197 static void LogProfileAvatarSelection(size_t icon_index); 202 static void LogProfileAvatarSelection(size_t icon_index);
198 static void LogProfileDeleteUser(ProfileDelete metric); 203 static void LogProfileDeleteUser(ProfileDelete metric);
199 static void LogProfileOpenMethod(ProfileOpen metric); 204 static void LogProfileOpenMethod(ProfileOpen metric);
200 static void LogProfileSwitchGaia(ProfileGaia metric); 205 static void LogProfileSwitchGaia(ProfileGaia metric);
201 static void LogProfileSwitchUser(ProfileOpen metric); 206 static void LogProfileSwitchUser(ProfileOpen metric);
202 static void LogProfileSyncInfo(ProfileSync metric); 207 static void LogProfileSyncInfo(ProfileSync metric);
203 static void LogProfileAuthResult(ProfileAuth metric); 208 static void LogProfileAuthResult(ProfileAuth metric);
204 static void LogProfileDesktopMenu(ProfileDesktopMenu metric, 209 static void LogProfileDesktopMenu(ProfileDesktopMenu metric,
(...skipping 12 matching lines...) Expand all
217 222
218 // These functions should only be called on the UI thread because they hook 223 // These functions should only be called on the UI thread because they hook
219 // into g_browser_process through a helper function. 224 // into g_browser_process through a helper function.
220 static void LogProfileLaunch(Profile* profile); 225 static void LogProfileLaunch(Profile* profile);
221 static void LogProfileSyncSignIn(const base::FilePath& profile_path); 226 static void LogProfileSyncSignIn(const base::FilePath& profile_path);
222 static void LogProfileUpdate(const base::FilePath& profile_path); 227 static void LogProfileUpdate(const base::FilePath& profile_path);
223 }; 228 };
224 229
225 230
226 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ 231 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698