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/base_login_display_host.h" | 5 #include "chrome/browser/chromeos/login/base_login_display_host.h" |
6 | 6 |
7 #include "ash/desktop_background/desktop_background_controller.h" | 7 #include "ash/desktop_background/desktop_background_controller.h" |
8 #include "ash/shell.h" | 8 #include "ash/shell.h" |
9 #include "ash/shell_window_ids.h" | 9 #include "ash/shell_window_ids.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 | 157 |
158 //////////////////////////////////////////////////////////////////////////////// | 158 //////////////////////////////////////////////////////////////////////////////// |
159 // BaseLoginDisplayHost, LoginDisplayHost implementation: | 159 // BaseLoginDisplayHost, LoginDisplayHost implementation: |
160 | 160 |
161 void BaseLoginDisplayHost::BeforeSessionStart() { | 161 void BaseLoginDisplayHost::BeforeSessionStart() { |
162 session_starting_ = true; | 162 session_starting_ = true; |
163 } | 163 } |
164 | 164 |
165 void BaseLoginDisplayHost::OnSessionStart() { | 165 void BaseLoginDisplayHost::OnSessionStart() { |
166 DVLOG(1) << "Session starting"; | 166 DVLOG(1) << "Session starting"; |
167 ash::Shell::GetInstance()-> | 167 if (chromeos::UserManager::Get()->IsCurrentUserNew()) { |
168 desktop_background_controller()->MoveDesktopToUnlockedContainer(); | 168 ash::Shell::GetInstance()-> |
| 169 desktop_background_controller()->MoveDesktopToUnlockedContainer(); |
| 170 } |
169 if (wizard_controller_.get()) | 171 if (wizard_controller_.get()) |
170 wizard_controller_->OnSessionStart(); | 172 wizard_controller_->OnSessionStart(); |
171 // Display host is deleted once animation is completed | 173 // Display host is deleted once animation is completed |
172 // since sign in screen widget has to stay alive. | 174 // since sign in screen widget has to stay alive. |
173 StartAnimation(); | 175 StartAnimation(); |
174 ShutdownDisplayHost(false); | 176 ShutdownDisplayHost(false); |
175 } | 177 } |
176 | 178 |
177 void BaseLoginDisplayHost::OnCompleteLogin() { | 179 void BaseLoginDisplayHost::OnCompleteLogin() { |
178 // Cancelling the |auto_enrollment_client_| now allows it to determine whether | 180 // Cancelling the |auto_enrollment_client_| now allows it to determine whether |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
503 VLOG(1) << "Initial time zone: " << timezone_name; | 505 VLOG(1) << "Initial time zone: " << timezone_name; |
504 // Apply locale customizations only once to preserve whatever locale | 506 // Apply locale customizations only once to preserve whatever locale |
505 // user has changed to during OOBE. | 507 // user has changed to during OOBE. |
506 if (!timezone_name.empty()) { | 508 if (!timezone_name.empty()) { |
507 chromeos::system::TimezoneSettings::GetInstance()->SetTimezoneFromID( | 509 chromeos::system::TimezoneSettings::GetInstance()->SetTimezoneFromID( |
508 UTF8ToUTF16(timezone_name)); | 510 UTF8ToUTF16(timezone_name)); |
509 } | 511 } |
510 } | 512 } |
511 | 513 |
512 } // namespace chromeos | 514 } // namespace chromeos |
OLD | NEW |