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/login_performer.h" | 5 #include "chrome/browser/chromeos/login/login_performer.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" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 using content::UserMetricsAction; | 45 using content::UserMetricsAction; |
46 | 46 |
47 namespace chromeos { | 47 namespace chromeos { |
48 | 48 |
49 // Initialize default LoginPerformer. | 49 // Initialize default LoginPerformer. |
50 // static | 50 // static |
51 LoginPerformer* LoginPerformer::default_performer_ = NULL; | 51 LoginPerformer* LoginPerformer::default_performer_ = NULL; |
52 | 52 |
53 LoginPerformer::LoginPerformer(Delegate* delegate) | 53 LoginPerformer::LoginPerformer(Delegate* delegate) |
54 : ALLOW_THIS_IN_INITIALIZER_LIST(online_attempt_host_(this)), | 54 : ALLOW_THIS_IN_INITIALIZER_LIST(online_attempt_host_(this)), |
55 last_login_failure_(LoginFailure::None()), | 55 last_login_failure_(LoginFailure::LoginFailureNone()), |
56 delegate_(delegate), | 56 delegate_(delegate), |
57 password_changed_(false), | 57 password_changed_(false), |
58 password_changed_callback_count_(0), | 58 password_changed_callback_count_(0), |
59 screen_lock_requested_(false), | 59 screen_lock_requested_(false), |
60 initial_online_auth_pending_(false), | 60 initial_online_auth_pending_(false), |
61 auth_mode_(AUTH_MODE_INTERNAL), | 61 auth_mode_(AUTH_MODE_INTERNAL), |
62 ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)) { | 62 ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)) { |
63 DCHECK(default_performer_ == NULL) | 63 DCHECK(default_performer_ == NULL) |
64 << "LoginPerformer should have only one instance."; | 64 << "LoginPerformer should have only one instance."; |
65 default_performer_ = this; | 65 default_performer_ = this; |
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
535 profile, | 535 profile, |
536 username_, | 536 username_, |
537 password_, | 537 password_, |
538 std::string(), | 538 std::string(), |
539 std::string())); | 539 std::string())); |
540 } | 540 } |
541 password_.clear(); | 541 password_.clear(); |
542 } | 542 } |
543 | 543 |
544 } // namespace chromeos | 544 } // namespace chromeos |
OLD | NEW |