Chromium Code Reviews| Index: components/signin/core/browser/signin_metrics.h |
| diff --git a/components/signin/core/browser/signin_metrics.h b/components/signin/core/browser/signin_metrics.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a7e325925de489f6b45bcef33ff4f89df3796aae |
| --- /dev/null |
| +++ b/components/signin/core/browser/signin_metrics.h |
| @@ -0,0 +1,31 @@ |
| +// Copyright (c) 2014 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 COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_METRICS_H_ |
| +#define COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_METRICS_H_ |
| + |
| +namespace signin_metrics { |
| + |
| +// Log to UMA histograms and UserCounts stats about a single execution of the |
| +// AccountReconciler. |
| +// |total_number_accounts| - How many accounts are in the browser for this |
| +// profile. |
| +// |count_added_to_cookie_jar| - How many accounts were in the browser but not |
| +// the cookie jar. |
| +// |count_added_to_token| - How may accounts were in the cookie jar but not in |
| +// the browser. |
| +// |primary_accounts_same| - False if the primary account for the cookie jar |
| +// and the token service were different; else true. |
| +// |is_first_reconcile| - True if these stats are from the first execution of |
| +// the AccountReconcilor. |
| +void LogSigninAccountReconciliation(int total_number_accounts, |
| + int count_added_to_cookie_jar, |
| + int count_added_to_token, |
| + bool primary_accounts_same, |
| + bool is_first_reconcile); |
| + |
| +} // namespace signin_metrics |
| + |
| + |
|
Alexei Svitkine (slow)
2014/05/09 14:16:16
Nit: Remove extra blank line.
Mike Lerman
2014/05/09 20:13:27
Done.
|
| +#endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_METRICS_H_ |