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/existing_user_controller.h" | 5 #include "chrome/browser/chromeos/login/existing_user_controller.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 | 108 |
109 // If no user pods are visible, fallback to single new user pod which will | 109 // If no user pods are visible, fallback to single new user pod which will |
110 // have guest session link. | 110 // have guest session link. |
111 bool show_guest = UserCrosSettingsProvider::cached_allow_guest() && | 111 bool show_guest = UserCrosSettingsProvider::cached_allow_guest() && |
112 !filtered_users.empty(); | 112 !filtered_users.empty(); |
113 bool show_new_user = true; | 113 bool show_new_user = true; |
114 login_display_->set_parent_window(GetNativeWindow()); | 114 login_display_->set_parent_window(GetNativeWindow()); |
115 login_display_->Init(filtered_users, show_guest, show_new_user); | 115 login_display_->Init(filtered_users, show_guest, show_new_user); |
116 | 116 |
117 LoginUtils::Get()->PrewarmAuthentication(); | 117 LoginUtils::Get()->PrewarmAuthentication(); |
118 DBusThreadManager::Get()->session_manager_client()->EmitLoginPromptReady(); | 118 DBusThreadManager::Get()->GetSessionManagerClient()->EmitLoginPromptReady(); |
119 } | 119 } |
120 | 120 |
121 //////////////////////////////////////////////////////////////////////////////// | 121 //////////////////////////////////////////////////////////////////////////////// |
122 // ExistingUserController, content::NotificationObserver implementation: | 122 // ExistingUserController, content::NotificationObserver implementation: |
123 // | 123 // |
124 | 124 |
125 void ExistingUserController::Observe( | 125 void ExistingUserController::Observe( |
126 int type, | 126 int type, |
127 const content::NotificationSource& source, | 127 const content::NotificationSource& source, |
128 const content::NotificationDetails& details) { | 128 const content::NotificationDetails& details) { |
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
593 cryptohomed->AsyncSetOwnerUser( | 593 cryptohomed->AsyncSetOwnerUser( |
594 UserCrosSettingsProvider::cached_owner(), NULL); | 594 UserCrosSettingsProvider::cached_owner(), NULL); |
595 | 595 |
596 // Do not invoke AsyncDoAutomaticFreeDiskSpaceControl(NULL) here | 596 // Do not invoke AsyncDoAutomaticFreeDiskSpaceControl(NULL) here |
597 // so it does not delay the following mount. Cleanup will be | 597 // so it does not delay the following mount. Cleanup will be |
598 // started in Cryptohomed by timer. | 598 // started in Cryptohomed by timer. |
599 } | 599 } |
600 } | 600 } |
601 | 601 |
602 } // namespace chromeos | 602 } // namespace chromeos |
OLD | NEW |