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

Unified Diff: chrome/browser/chromeos/login/webui_login_display_host.cc

Issue 10808061: [cros] Flip enable-new-oobe switch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 5 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/chromeos/login/webui_login_display_host.cc
diff --git a/chrome/browser/chromeos/login/webui_login_display_host.cc b/chrome/browser/chromeos/login/webui_login_display_host.cc
index 8f716687f12e77af8d855a6fd957646ad1b0defe..5726e60d2b33a2fd97525b631ea0f57c311f64e6 100644
--- a/chrome/browser/chromeos/login/webui_login_display_host.cc
+++ b/chrome/browser/chromeos/login/webui_login_display_host.cc
@@ -58,10 +58,13 @@ WebUILoginDisplayHost::WebUILoginDisplayHost(const gfx::Rect& background_bounds)
bool is_registered = WizardController::IsDeviceRegistered();
// TODO(nkostylev): Add switch to disable wallpaper transition on OOBE.
// Should be used on test images so that they are not slowed down.
- if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableNewOobe))
+ bool zero_delay_enabled = WizardController::IsZeroDelayEnabled();
+ if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDisableNewOobe) &&
+ !zero_delay_enabled) {
waiting_for_wallpaper_load_ = !is_registered;
- else
+ } else {
waiting_for_wallpaper_load_ = false;
+ }
if (waiting_for_wallpaper_load_) {
registrar_.Add(this, chrome::NOTIFICATION_WALLPAPER_ANIMATION_FINISHED,
@@ -184,7 +187,7 @@ void WebUILoginDisplayHost::LoadURL(const GURL& url) {
views::Widget::InitParams::TYPE_WINDOW_FRAMELESS);
params.bounds = background_bounds();
params.show_state = ui::SHOW_STATE_FULLSCREEN;
- if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableNewOobe))
+ if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDisableNewOobe))
params.transparent = true;
params.parent =
ash::Shell::GetContainer(
« no previous file with comments | « chrome/browser/chromeos/login/user_manager_impl.cc ('k') | chrome/browser/chromeos/login/webui_login_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698