OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "chrome/browser/chromeos/login/oauth2_login_verifier.h" | 5 #include "chrome/browser/chromeos/login/signin/oauth2_login_verifier.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
11 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
12 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
14 #include "chrome/browser/chromeos/net/delay_network_call.h" | 14 #include "chrome/browser/chromeos/net/delay_network_call.h" |
15 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" | 15 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 << operation_id; | 263 << operation_id; |
264 UMA_HISTOGRAM_ENUMERATION( | 264 UMA_HISTOGRAM_ENUMERATION( |
265 base::StringPrintf("OAuth2Login.%sFailure", operation_id), | 265 base::StringPrintf("OAuth2Login.%sFailure", operation_id), |
266 error.state(), | 266 error.state(), |
267 GoogleServiceAuthError::NUM_STATES); | 267 GoogleServiceAuthError::NUM_STATES); |
268 | 268 |
269 error_handler.Run(IsConnectionOrServiceError(error)); | 269 error_handler.Run(IsConnectionOrServiceError(error)); |
270 } | 270 } |
271 | 271 |
272 } // namespace chromeos | 272 } // namespace chromeos |
OLD | NEW |