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

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

Issue 2807013: Update screen refactoring, exit on successful update. (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: merge Created 10 years, 6 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/update_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/update_screen.cc
diff --git a/chrome/browser/chromeos/login/update_screen.cc b/chrome/browser/chromeos/login/update_screen.cc
index 282ff5376d7175a61af703f999f642a70544c208..8e9a05a4c28d094f3d5c6fc8531ade8bb35cdd48 100644
--- a/chrome/browser/chromeos/login/update_screen.cc
+++ b/chrome/browser/chromeos/login/update_screen.cc
@@ -66,7 +66,11 @@ void UpdateScreen::OnReportResults(GoogleUpdateUpgradeResult result,
break;
case UPGRADE_SUCCESSFUL:
view()->AddProgress(kUpdateCompleteProgressIncrement);
- // Fall through.
+ minimal_update_time_timer_.Stop();
+ checking_for_update_ = false;
+ // TODO(nkostylev): Call reboot API. http://crosbug.com/4002
+ ExitUpdate();
+ break;
case UPGRADE_ALREADY_UP_TO_DATE:
checking_for_update_ = false;
view()->AddProgress(kAfterUpdateCheckProgressIncrement);
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/update_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698