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

Unified Diff: src/platform/update_engine/update_attempter.h

Issue 2055008: Init: Start Update Engine at startup (Closed) Base URL: ssh://git@chromiumos-git/chromeos
Patch Set: Created 10 years, 7 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: src/platform/update_engine/update_attempter.h
diff --git a/src/platform/update_engine/update_attempter.h b/src/platform/update_engine/update_attempter.h
index 76fe3fb4a4ddd6c7a13bfea41ebfc28151af766e..9d69403b10192f79ce862067efec7f33862265b1 100644
--- a/src/platform/update_engine/update_attempter.h
+++ b/src/platform/update_engine/update_attempter.h
@@ -18,6 +18,8 @@ struct UpdateEngineService;
namespace chromeos_update_engine {
+extern const char* kUpdateCompletedMarker;
+
enum UpdateStatus {
UPDATE_STATUS_IDLE = 0,
UPDATE_STATUS_CHECKING_FOR_UPDATE,
@@ -42,6 +44,8 @@ class UpdateAttempter : public ActionProcessorDelegate,
new_size_(0) {
last_notify_time_.tv_sec = 0;
last_notify_time_.tv_nsec = 0;
+ if (utils::FileExists(kUpdateCompletedMarker))
+ status_ = UPDATE_STATUS_UPDATED_NEED_REBOOT;
}
void Update(bool force_full_update);

Powered by Google App Engine
This is Rietveld 408576698