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

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

Issue 1881001: AU: Many minor cleanup changes (Closed) Base URL: ssh://git@chromiumos-git/chromeos
Patch Set: fixes for review Created 10 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
Index: src/platform/update_engine/postinstall_runner_action.h
diff --git a/src/platform/update_engine/postinstall_runner_action.h b/src/platform/update_engine/postinstall_runner_action.h
index 00478cc873c6e73d4b5827cc1010e9027f6faafd..1169af99d5b0939c560bb5aabf82697e09451684 100644
--- a/src/platform/update_engine/postinstall_runner_action.h
+++ b/src/platform/update_engine/postinstall_runner_action.h
@@ -7,6 +7,7 @@
#include <string>
#include "update_engine/action.h"
+#include "update_engine/install_plan.h"
// The Postinstall Runner Action is responsible for running the postinstall
// script of a successfully downloaded update.
@@ -20,14 +21,14 @@ template<>
class ActionTraits<PostinstallRunnerAction> {
public:
// Takes the device path as input
- typedef std::string InputObjectType;
+ typedef InstallPlan InputObjectType;
// Passes the device path as output
- typedef std::string OutputObjectType;
+ typedef InstallPlan OutputObjectType;
};
class PostinstallRunnerAction : public Action<PostinstallRunnerAction> {
public:
- PostinstallRunnerAction() {}
+ explicit PostinstallRunnerAction(bool precommit) : precommit_(precommit) {}
typedef ActionTraits<PostinstallRunnerAction>::InputObjectType
InputObjectType;
typedef ActionTraits<PostinstallRunnerAction>::OutputObjectType
@@ -43,6 +44,10 @@ class PostinstallRunnerAction : public Action<PostinstallRunnerAction> {
std::string Type() const { return StaticType(); }
private:
+ // If true, this action runs before we've committed to the new update
+ // (by marking it as bootable in the partition table).
+ bool precommit_;
+
DISALLOW_COPY_AND_ASSIGN(PostinstallRunnerAction);
};

Powered by Google App Engine
This is Rietveld 408576698