Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Unified Diff: chrome/browser/ui/ash/chrome_shell_delegate.cc

Issue 10889024: [cros] Initialize OOBE in parallel when boot animation is disabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/ash/chrome_shell_delegate.cc
diff --git a/chrome/browser/ui/ash/chrome_shell_delegate.cc b/chrome/browser/ui/ash/chrome_shell_delegate.cc
index a73b806da922b65ec416b27e3f872d313914ffe9..4315a02b3e1510d0e8bd0f055556d9df3092cedb 100644
--- a/chrome/browser/ui/ash/chrome_shell_delegate.cc
+++ b/chrome/browser/ui/ash/chrome_shell_delegate.cc
@@ -104,7 +104,7 @@ bool ChromeShellDelegate::IsUserLoggedIn() {
}
// Returns true if we're logged in and browser has been started
-bool ChromeShellDelegate::IsSessionStarted() {
+bool ChromeShellDelegate::IsSessionStarted() const {
#if defined(OS_CHROMEOS)
return chromeos::UserManager::Get()->IsSessionStarted();
#else
@@ -122,6 +122,15 @@ void ChromeShellDelegate::LockScreen() {
#endif
}
+bool ChromeShellDelegate::IsStatusAreaInitiallyVisible() const {
+#if defined(OS_CHROMEOS)
+ // Login screen manages status area visibility by itself.
+ return IsSessionStarted();
+#else
+ return true;
+#endif
+}
+
void ChromeShellDelegate::UnlockScreen() {
// This is used only for testing thus far.
NOTIMPLEMENTED();

Powered by Google App Engine
This is Rietveld 408576698