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/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.h" | 13 #include "base/time/time.h" |
14 #include "chrome/browser/chromeos/cros/cros_library.h" | 14 #include "chrome/browser/chromeos/cros/cros_library.h" |
15 #include "chrome/browser/chromeos/net/connectivity_state_helper.h" | 15 #include "chrome/browser/chromeos/net/connectivity_state_helper.h" |
16 #include "content/public/browser/browser_thread.h" | 16 #include "content/public/browser/browser_thread.h" |
17 #include "google_apis/gaia/gaia_constants.h" | 17 #include "google_apis/gaia/gaia_constants.h" |
18 #include "google_apis/gaia/gaia_urls.h" | 18 #include "google_apis/gaia/gaia_urls.h" |
19 | 19 |
20 using content::BrowserThread; | 20 using content::BrowserThread; |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 LOG(ERROR) << "Unrecoverable error or retry count max reached for " | 218 LOG(ERROR) << "Unrecoverable error or retry count max reached for " |
219 << operation_id; | 219 << operation_id; |
220 UMA_HISTOGRAM_ENUMERATION( | 220 UMA_HISTOGRAM_ENUMERATION( |
221 base::StringPrintf("OAuth2Login.%sFailure", operation_id), | 221 base::StringPrintf("OAuth2Login.%sFailure", operation_id), |
222 error.state(), | 222 error.state(), |
223 GoogleServiceAuthError::NUM_STATES); | 223 GoogleServiceAuthError::NUM_STATES); |
224 error_handler.Run(); | 224 error_handler.Run(); |
225 } | 225 } |
226 | 226 |
227 } // namespace chromeos | 227 } // namespace chromeos |
OLD | NEW |