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 #include "chrome/browser/chromeos/login/oauth_login_verifier.h" | 5 #include "chrome/browser/chromeos/login/oauth_login_verifier.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "chrome/browser/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
9 #include "chrome/browser/chromeos/cros/cros_library.h" | 9 #include "chrome/browser/chromeos/cros/cros_library.h" |
10 #include "chrome/browser/chromeos/cros/network_library.h" | 10 #include "chrome/browser/chromeos/cros/network_library.h" |
11 #include "chrome/browser/profiles/profile_manager.h" | 11 #include "chrome/browser/profiles/profile_manager.h" |
12 #include "chrome/common/net/gaia/gaia_constants.h" | |
13 #include "chrome/common/net/gaia/google_service_auth_error.h" | |
14 #include "content/public/browser/browser_thread.h" | 12 #include "content/public/browser/browser_thread.h" |
| 13 #include "google_apis/gaia/gaia_constants.h" |
| 14 #include "google_apis/gaia/google_service_auth_error.h" |
15 | 15 |
16 using content::BrowserThread; | 16 using content::BrowserThread; |
17 | 17 |
18 namespace chromeos { | 18 namespace chromeos { |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 // OAuth token verification max retry count. | 22 // OAuth token verification max retry count. |
23 const int kMaxOAuthTokenVerificationAttemptCount = 5; | 23 const int kMaxOAuthTokenVerificationAttemptCount = 5; |
24 // OAuth token verification retry delay in milliseconds. | 24 // OAuth token verification retry delay in milliseconds. |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 } | 178 } |
179 | 179 |
180 void OAuthLoginVerifier::OnMergeSessionFailure( | 180 void OAuthLoginVerifier::OnMergeSessionFailure( |
181 const GoogleServiceAuthError& error) { | 181 const GoogleServiceAuthError& error) { |
182 DVLOG(1) << "Failed MergeSession request," | 182 DVLOG(1) << "Failed MergeSession request," |
183 << " error.state=" << error.state(); | 183 << " error.state=" << error.state(); |
184 OnCookieFetchFailed(error); | 184 OnCookieFetchFailed(error); |
185 } | 185 } |
186 | 186 |
187 } // namespace chromeos | 187 } // namespace chromeos |
OLD | NEW |