| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "components/signin/core/browser/signin_status_metrics_provider.h" | 5 #include "components/signin/core/browser/signin_status_metrics_provider.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| 11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
| 12 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
| 13 #include "base/thread_task_runner_handle.h" | 13 #include "base/threading/thread_task_runner_handle.h" |
| 14 #include "components/signin/core/browser/signin_manager.h" | 14 #include "components/signin/core/browser/signin_manager.h" |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| 18 // The event of calling function ComputeCurrentSigninStatus and the errors | 18 // The event of calling function ComputeCurrentSigninStatus and the errors |
| 19 // occurred during the function execution. | 19 // occurred during the function execution. |
| 20 enum ComputeSigninStatus { | 20 enum ComputeSigninStatus { |
| 21 ENTERED_COMPUTE_SIGNIN_STATUS, | 21 ENTERED_COMPUTE_SIGNIN_STATUS, |
| 22 ERROR_NO_PROFILE_FOUND, | 22 ERROR_NO_PROFILE_FOUND, |
| 23 NO_BROWSER_OPENED, | 23 NO_BROWSER_OPENED, |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 void SigninStatusMetricsProvider::UpdateInitialSigninStatusForTesting( | 175 void SigninStatusMetricsProvider::UpdateInitialSigninStatusForTesting( |
| 176 size_t total_count, | 176 size_t total_count, |
| 177 size_t signed_in_profiles_count) { | 177 size_t signed_in_profiles_count) { |
| 178 UpdateInitialSigninStatus(total_count, signed_in_profiles_count); | 178 UpdateInitialSigninStatus(total_count, signed_in_profiles_count); |
| 179 } | 179 } |
| 180 | 180 |
| 181 SigninStatusMetricsProvider::SigninStatus | 181 SigninStatusMetricsProvider::SigninStatus |
| 182 SigninStatusMetricsProvider::GetSigninStatusForTesting() { | 182 SigninStatusMetricsProvider::GetSigninStatusForTesting() { |
| 183 return signin_status(); | 183 return signin_status(); |
| 184 } | 184 } |
| OLD | NEW |