OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/user_manager.h" | 5 #include "chrome/browser/chromeos/login/user_manager.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
594 Details<const User>(&user)); | 594 Details<const User>(&user)); |
595 } | 595 } |
596 | 596 |
597 bool UserManager::IsLoggedInAsGuest() const { | 597 bool UserManager::IsLoggedInAsGuest() const { |
598 return logged_in_user().email() == kGuestUser; | 598 return logged_in_user().email() == kGuestUser; |
599 } | 599 } |
600 | 600 |
601 // Private constructor and destructor. Do nothing. | 601 // Private constructor and destructor. Do nothing. |
602 UserManager::UserManager() | 602 UserManager::UserManager() |
603 : ALLOW_THIS_IN_INITIALIZER_LIST(image_loader_(new UserImageLoader(this))), | 603 : ALLOW_THIS_IN_INITIALIZER_LIST(image_loader_(new UserImageLoader(this))), |
| 604 offline_login_(false), |
604 current_user_is_owner_(false), | 605 current_user_is_owner_(false), |
605 current_user_is_new_(false), | 606 current_user_is_new_(false), |
606 user_is_logged_in_(false) { | 607 user_is_logged_in_(false) { |
607 registrar_.Add(this, chrome::NOTIFICATION_OWNER_KEY_FETCH_ATTEMPT_SUCCEEDED, | 608 registrar_.Add(this, chrome::NOTIFICATION_OWNER_KEY_FETCH_ATTEMPT_SUCCEEDED, |
608 NotificationService::AllSources()); | 609 NotificationService::AllSources()); |
609 } | 610 } |
610 | 611 |
611 UserManager::~UserManager() { | 612 UserManager::~UserManager() { |
612 image_loader_->set_delegate(NULL); | 613 image_loader_->set_delegate(NULL); |
613 } | 614 } |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
709 } | 710 } |
710 | 711 |
711 void UserManager::NotifyLocalStateChanged() { | 712 void UserManager::NotifyLocalStateChanged() { |
712 FOR_EACH_OBSERVER( | 713 FOR_EACH_OBSERVER( |
713 Observer, | 714 Observer, |
714 observer_list_, | 715 observer_list_, |
715 LocalStateChanged(this)); | 716 LocalStateChanged(this)); |
716 } | 717 } |
717 | 718 |
718 } // namespace chromeos | 719 } // namespace chromeos |
OLD | NEW |