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

Unified Diff: update_attempter.h

Issue 6881037: AU: Always run setgoodkernel, unless we abort within 45 seconds of launch. (Closed) Base URL: http://git.chromium.org/git/update_engine.git@master
Patch Set: Created 9 years, 8 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 | « main.cc ('k') | update_attempter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: update_attempter.h
diff --git a/update_attempter.h b/update_attempter.h
index e41cab920c058a485e54cec53a086cbf6ecfe541..8a0bd26ec2203edc7ae73e758abc85deae21b37c 100644
--- a/update_attempter.h
+++ b/update_attempter.h
@@ -84,6 +84,10 @@ class UpdateAttempter : public ActionProcessorDelegate,
std::string* new_version,
int64_t* new_size);
+ // Runs setgoodkernel, whose responsibility it is to mark the currently
+ // booted partition has high priority/permanent/etc.
+ void UpdateBootFlags();
+
UpdateStatus status() const { return status_; }
int http_response_code() const { return http_response_code_; }
@@ -240,6 +244,9 @@ class UpdateAttempter : public ActionProcessorDelegate,
DirectProxyResolver direct_proxy_resolver_;
ChromeBrowserProxyResolver chrome_proxy_resolver_;
+ // True if UpdateBootFlags has already been called
+ bool updated_boot_flags_;
+
DISALLOW_COPY_AND_ASSIGN(UpdateAttempter);
};
« no previous file with comments | « main.cc ('k') | update_attempter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698