diff options
Diffstat (limited to 'common/action.h')
-rw-r--r-- | common/action.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/common/action.h b/common/action.h index 9e2f5ff6..fd82c2d5 100644 --- a/common/action.h +++ b/common/action.h @@ -222,6 +222,17 @@ class Action : public AbstractAction { out_pipe_; }; +// An action that does nothing and completes with kSuccess immediately. +class NoOpAction : public AbstractAction { + public: + ~NoOpAction() override {} + void PerformAction() override { + processor_->ActionComplete(this, ErrorCode::kSuccess); + } + static std::string StaticType() { return "NoOpAction"; } + std::string Type() const override { return StaticType(); } +}; + }; // namespace chromeos_update_engine #endif // UPDATE_ENGINE_COMMON_ACTION_H_ |