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

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

Issue 11364003: Fix the issue of cursor being shown at startup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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
« no previous file with comments | « ash/magnifier/magnification_controller.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/ash_init.cc
diff --git a/chrome/browser/ui/ash/ash_init.cc b/chrome/browser/ui/ash/ash_init.cc
index d45a93ce5ee8fc8642bd079e08c868586da886a8..337e8a94fe065dbd61281d51fed71ed55df33ad4 100644
--- a/chrome/browser/ui/ash/ash_init.cc
+++ b/chrome/browser/ui/ash/ash_init.cc
@@ -55,16 +55,14 @@ void OpenAsh() {
// Aura window is closed.
ui::HideHostCursor();
}
+
+ // Hide the mouse cursor completely at boot.
+ if (!chromeos::UserManager::Get()->IsUserLoggedIn())
+ ash::Shell::set_initially_hide_cursor(true);
Daniel Erat 2012/10/31 13:18:53 Just to double-check, is it still shown as soon as
mazda 2012/11/20 03:30:20 Yes, CompoundEventFilter::SetCursorVisibilityOnEve
#endif
- if (use_fullscreen) {
+ if (use_fullscreen)
aura::DisplayManager::set_use_fullscreen_host_window(true);
-#if defined(OS_CHROMEOS)
- // Hide the mouse cursor completely at boot.
- if (!chromeos::UserManager::Get()->IsUserLoggedIn())
- ash::Shell::set_initially_hide_cursor(true);
-#endif
- }
// Its easier to mark all windows as persisting and exclude the ones we care
// about (browser windows), rather than explicitly excluding certain windows.
« no previous file with comments | « ash/magnifier/magnification_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698