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/webui_screen_locker.h" | 5 #include "chrome/browser/chromeos/login/webui_screen_locker.h" |
6 | 6 |
7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
8 #include "ash/wm/lock_state_controller.h" | 8 #include "ash/wm/lock_state_controller.h" |
9 #include "ash/wm/lock_state_observer.h" | 9 #include "ash/wm/lock_state_observer.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 base::Bind(&WebUIScreenLocker::FocusUserPod, weak_factory_.GetWeakPtr())); | 312 base::Bind(&WebUIScreenLocker::FocusUserPod, weak_factory_.GetWeakPtr())); |
313 } | 313 } |
314 | 314 |
315 void WebUIScreenLocker::SystemResumed(const base::TimeDelta& sleep_duration) { | 315 void WebUIScreenLocker::SystemResumed(const base::TimeDelta& sleep_duration) { |
316 content::BrowserThread::PostTask( | 316 content::BrowserThread::PostTask( |
317 content::BrowserThread::UI, | 317 content::BrowserThread::UI, |
318 FROM_HERE, | 318 FROM_HERE, |
319 base::Bind(&WebUIScreenLocker::FocusUserPod, weak_factory_.GetWeakPtr())); | 319 base::Bind(&WebUIScreenLocker::FocusUserPod, weak_factory_.GetWeakPtr())); |
320 } | 320 } |
321 | 321 |
322 void WebUIScreenLocker::RenderViewGone(base::TerminationStatus status) { | 322 void WebUIScreenLocker::RenderProcessGone(base::TerminationStatus status) { |
323 if (browser_shutdown::GetShutdownType() == browser_shutdown::NOT_VALID && | 323 if (browser_shutdown::GetShutdownType() == browser_shutdown::NOT_VALID && |
324 status != base::TERMINATION_STATUS_NORMAL_TERMINATION) { | 324 status != base::TERMINATION_STATUS_NORMAL_TERMINATION) { |
325 LOG(ERROR) << "Renderer crash on lock screen"; | 325 LOG(ERROR) << "Renderer crash on lock screen"; |
326 Signout(); | 326 Signout(); |
327 } | 327 } |
328 } | 328 } |
329 | 329 |
330 } // namespace chromeos | 330 } // namespace chromeos |
OLD | NEW |