| OLD | NEW |
| 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 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "chrome/browser/signin/signin_header_helper.h" | 12 #include "chrome/browser/signin/signin_header_helper.h" |
| 13 #include "chrome/browser/signin/signin_promo.h" |
| 13 | 14 |
| 14 class Profile; | 15 class Profile; |
| 15 class ProfileManager; | 16 class ProfileManager; |
| 16 | 17 |
| 17 namespace base { | 18 namespace base { |
| 18 class FilePath; | 19 class FilePath; |
| 19 } | 20 } |
| 20 | 21 |
| 21 class ProfileMetrics { | 22 class ProfileMetrics { |
| 22 public: | 23 public: |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 static void LogProfileAndroidAccountManagementMenu( | 223 static void LogProfileAndroidAccountManagementMenu( |
| 223 ProfileAndroidAccountManagementMenu metric, | 224 ProfileAndroidAccountManagementMenu metric, |
| 224 signin::GAIAServiceType gaia_service); | 225 signin::GAIAServiceType gaia_service); |
| 225 #endif // defined(OS_ANDROID) | 226 #endif // defined(OS_ANDROID) |
| 226 | 227 |
| 227 // These functions should only be called on the UI thread because they hook | 228 // These functions should only be called on the UI thread because they hook |
| 228 // into g_browser_process through a helper function. | 229 // into g_browser_process through a helper function. |
| 229 static void LogProfileLaunch(Profile* profile); | 230 static void LogProfileLaunch(Profile* profile); |
| 230 static void LogProfileSyncSignIn(const base::FilePath& profile_path); | 231 static void LogProfileSyncSignIn(const base::FilePath& profile_path); |
| 231 static void LogProfileUpdate(const base::FilePath& profile_path); | 232 static void LogProfileUpdate(const base::FilePath& profile_path); |
| 233 |
| 234 // Logs the original source that showed the signin page. |
| 235 static void LogSigninSource(signin::Source source); |
| 232 }; | 236 }; |
| 233 | 237 |
| 234 | 238 |
| 235 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ | 239 #endif // CHROME_BROWSER_PROFILES_PROFILE_METRICS_H_ |
| OLD | NEW |