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

Unified Diff: chrome/browser/chromeos/background/ash_user_wallpaper_delegate.cc

Issue 10831325: Add --disable-oobe-animation flag to disable OOBE animation on slow hardware (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
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/login_utils.cc » ('j') | chrome/common/chrome_switches.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/background/ash_user_wallpaper_delegate.cc
diff --git a/chrome/browser/chromeos/background/ash_user_wallpaper_delegate.cc b/chrome/browser/chromeos/background/ash_user_wallpaper_delegate.cc
index ba1c5aa50cf4f8c55ebebd6e5408361a125f8e9e..1a3143d830f08cafba1aa663a2d5fe85dc3e07e2 100644
--- a/chrome/browser/chromeos/background/ash_user_wallpaper_delegate.cc
+++ b/chrome/browser/chromeos/background/ash_user_wallpaper_delegate.cc
@@ -52,10 +52,14 @@ class UserWallpaperDelegate : public ash::UserWallpaperDelegate {
// It is a first boot case now. If kDisableBootAnimation flag
// is passed, it only disables any transition after OOBE.
+ // kDisableOobeAnimation disables OOBE animation too for slow hardware.
Ivan Korotkov 2012/08/15 11:01:28 |kDisableOobeAnimation| disables OOBE animation fo
Dmitry Polukhin 2012/08/15 12:13:31 Done.
bool is_registered = WizardController::IsDeviceRegistered();
- bool disable_boot_animation = CommandLine::ForCurrentProcess()->
+ const CommandLine* command_line = CommandLine::ForCurrentProcess();
+ bool disable_boot_animation = command_line->
HasSwitch(switches::kDisableBootAnimation);
- if (is_registered && disable_boot_animation)
+ bool disable_oobe_animation = command_line->
+ HasSwitch(switches::kDisableOobeAnimation);
+ if (disable_oobe_animation || (is_registered && disable_boot_animation))
return ash::WINDOW_VISIBILITY_ANIMATION_TYPE_FADE;
return ash::WINDOW_VISIBILITY_ANIMATION_TYPE_BRIGHTNESS_GRAYSCALE;
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/login_utils.cc » ('j') | chrome/common/chrome_switches.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698