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

Unified Diff: src/platform/update_engine/set_bootable_flag_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/set_bootable_flag_action.h
diff --git a/src/platform/update_engine/set_bootable_flag_action.h b/src/platform/update_engine/set_bootable_flag_action.h
index 44e9555647b5b26310d1946d92dc8a9ea5887814..2b45df3f73c89f3e21efd275e1b6e3a09430ba19 100644
--- a/src/platform/update_engine/set_bootable_flag_action.h
+++ b/src/platform/update_engine/set_bootable_flag_action.h
@@ -7,6 +7,7 @@
#include <string>
#include "update_engine/action.h"
+#include "update_engine/install_plan.h"
// This class takes in a device via the input pipe. The device is the
// partition (e.g. /dev/sda1), not the full device (e.g. /dev/sda).
@@ -22,9 +23,9 @@ template<>
class ActionTraits<SetBootableFlagAction> {
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 SetBootableFlagAction : public Action<SetBootableFlagAction> {
@@ -45,11 +46,6 @@ class SetBootableFlagAction : public Action<SetBootableFlagAction> {
std::string Type() const { return StaticType(); }
private:
- // Returns true on success
- bool ReadMbr(char* buffer, int buffer_len, const char* device);
-
- // Returns true on success
- bool WriteMbr(const char* buffer, int buffer_len, const char* device);
DISALLOW_COPY_AND_ASSIGN(SetBootableFlagAction);
};

Powered by Google App Engine
This is Rietveld 408576698