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

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

Issue 1024533002: Reland of: Profile_Metrics integration with Keystone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 9 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
« no previous file with comments | « chrome/browser/mac/keystone_registration.mm ('k') | chrome/browser/profiles/profile_metrics.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 NUM_PROFILE_AVATAR_MENU_UPGRADE_METRICS, 202 NUM_PROFILE_AVATAR_MENU_UPGRADE_METRICS,
203 }; 203 };
204 204
205 static void UpdateReportedProfilesStatistics(ProfileManager* manager); 205 static void UpdateReportedProfilesStatistics(ProfileManager* manager);
206 // Count and return summary information about the profiles currently in the 206 // Count and return summary information about the profiles currently in the
207 // |manager|. This information is returned in the output variable |counts|. 207 // |manager|. This information is returned in the output variable |counts|.
208 static bool CountProfileInformation(ProfileManager* manager, 208 static bool CountProfileInformation(ProfileManager* manager,
209 ProfileCounts* counts); 209 ProfileCounts* counts);
210 210
211 static void LogNumberOfProfileSwitches(); 211 static void LogNumberOfProfileSwitches();
212 #if defined(OS_WIN) || defined(OS_MACOSX)
213 // Update OS level tracking of profile counts.
214 static void UpdateReportedOSProfileStatistics(size_t active, size_t signedin);
215 #endif
216
212 static void LogNumberOfProfiles(ProfileManager* manager); 217 static void LogNumberOfProfiles(ProfileManager* manager);
213 static void LogProfileAddNewUser(ProfileAdd metric); 218 static void LogProfileAddNewUser(ProfileAdd metric);
214 static void LogProfileAvatarSelection(size_t icon_index); 219 static void LogProfileAvatarSelection(size_t icon_index);
215 static void LogProfileDeleteUser(ProfileDelete metric); 220 static void LogProfileDeleteUser(ProfileDelete metric);
216 static void LogProfileOpenMethod(ProfileOpen metric); 221 static void LogProfileOpenMethod(ProfileOpen metric);
217 static void LogProfileSwitch(ProfileOpen metric, 222 static void LogProfileSwitch(ProfileOpen metric,
218 ProfileManager* manager, 223 ProfileManager* manager,
219 const base::FilePath& profile_path); 224 const base::FilePath& profile_path);
220 static void LogProfileSwitchGaia(ProfileGaia metric); 225 static void LogProfileSwitchGaia(ProfileGaia metric);
221 static void LogProfileSyncInfo(ProfileSync metric); 226 static void LogProfileSyncInfo(ProfileSync metric);
(...skipping 15 matching lines...) Expand all
237 242
238 // These functions should only be called on the UI thread because they hook 243 // These functions should only be called on the UI thread because they hook
239 // into g_browser_process through a helper function. 244 // into g_browser_process through a helper function.
240 static void LogProfileLaunch(Profile* profile); 245 static void LogProfileLaunch(Profile* profile);
241 static void LogProfileSyncSignIn(const base::FilePath& profile_path); 246 static void LogProfileSyncSignIn(const base::FilePath& profile_path);
242 static void LogProfileUpdate(const base::FilePath& profile_path); 247 static void LogProfileUpdate(const base::FilePath& profile_path);
243 }; 248 };
244 249
245 250
246 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ 251 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_
OLDNEW
« no previous file with comments | « chrome/browser/mac/keystone_registration.mm ('k') | chrome/browser/profiles/profile_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698