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 "chrome/browser/chromeos/login/auth/online_attempt.h" | 5 #include "chrome/browser/chromeos/login/auth/online_attempt.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "chrome/browser/chromeos/login/auth/auth_attempt_state.h" | 13 #include "chrome/browser/chromeos/login/auth/auth_attempt_state.h" |
14 #include "chrome/browser/chromeos/login/auth/auth_attempt_state_resolver.h" | 14 #include "chrome/browser/chromeos/login/auth/auth_attempt_state_resolver.h" |
15 #include "chrome/browser/chromeos/login/auth/key.h" | 15 #include "chromeos/login/auth/key.h" |
16 #include "chrome/browser/chromeos/login/auth/user_context.h" | 16 #include "chromeos/login/auth/user_context.h" |
17 #include "components/user_manager/user_type.h" | 17 #include "components/user_manager/user_type.h" |
18 #include "content/public/browser/browser_context.h" | 18 #include "content/public/browser/browser_context.h" |
19 #include "content/public/browser/browser_thread.h" | 19 #include "content/public/browser/browser_thread.h" |
20 #include "google_apis/gaia/gaia_auth_consumer.h" | 20 #include "google_apis/gaia/gaia_auth_consumer.h" |
21 #include "google_apis/gaia/gaia_auth_fetcher.h" | 21 #include "google_apis/gaia/gaia_auth_fetcher.h" |
22 #include "google_apis/gaia/gaia_constants.h" | 22 #include "google_apis/gaia/gaia_constants.h" |
23 #include "net/base/load_flags.h" | 23 #include "net/base/load_flags.h" |
24 #include "net/base/net_errors.h" | 24 #include "net/base/net_errors.h" |
25 #include "net/url_request/url_request_status.h" | 25 #include "net/url_request/url_request_status.h" |
26 | 26 |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 } | 155 } |
156 | 156 |
157 void OnlineAttempt::TriggerResolve( | 157 void OnlineAttempt::TriggerResolve( |
158 const LoginFailure& outcome) { | 158 const LoginFailure& outcome) { |
159 attempt_->RecordOnlineLoginStatus(outcome); | 159 attempt_->RecordOnlineLoginStatus(outcome); |
160 client_fetcher_.reset(NULL); | 160 client_fetcher_.reset(NULL); |
161 resolver_->Resolve(); | 161 resolver_->Resolve(); |
162 } | 162 } |
163 | 163 |
164 } // namespace chromeos | 164 } // namespace chromeos |
OLD | NEW |