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

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

Issue 3130044: Added browser test for the OOBE update screen.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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 | « chrome/browser/chromeos/login/update_view.cc ('k') | chrome/browser/chromeos/login/wizard_screen.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/wizard_controller.cc
===================================================================
--- chrome/browser/chromeos/login/wizard_controller.cc (revision 57033)
+++ chrome/browser/chromeos/login/wizard_controller.cc (working copy)
@@ -69,6 +69,13 @@
const int kWizardScreenWidth = 700;
const int kWizardScreenHeight = 416;
+// Update window should appear for at least kMinimalUpdateTimeSec seconds.
+const int kMinimalUpdateTimeSec = 3;
+
+// Time in seconds that we wait for the device to reboot.
+// If reboot didn't happen, ask user to reboot device manually.
+const int kWaitForRebootTimeSec = 3;
+
// RootView of the Widget WizardController creates. Contains the contents of the
// WizardController.
class ContentView : public views::View {
@@ -344,8 +351,11 @@
}
chromeos::UpdateScreen* WizardController::GetUpdateScreen() {
- if (!update_screen_.get())
+ if (!update_screen_.get()) {
update_screen_.reset(new chromeos::UpdateScreen(this));
+ update_screen_->SetMinimalUpdateTime(kMinimalUpdateTimeSec);
+ update_screen_->SetRebootCheckDelay(kWaitForRebootTimeSec);
+ }
return update_screen_.get();
}
« no previous file with comments | « chrome/browser/chromeos/login/update_view.cc ('k') | chrome/browser/chromeos/login/wizard_screen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698