| Index: action_processor.cc
|
| diff --git a/action_processor.cc b/action_processor.cc
|
| index e52cbcdc1482b2552f730983f934b6e28274ffb3..0d8c046a9105e89c0432f9ff28c9baf5ae8bece7 100644
|
| --- a/action_processor.cc
|
| +++ b/action_processor.cc
|
| @@ -54,17 +54,17 @@ void ActionProcessor::StopProcessing() {
|
| }
|
|
|
| void ActionProcessor::ActionComplete(AbstractAction* actionptr,
|
| - bool success) {
|
| + ActionExitCode code) {
|
| CHECK_EQ(actionptr, current_action_);
|
| if (delegate_)
|
| - delegate_->ActionCompleted(this, actionptr, success);
|
| + delegate_->ActionCompleted(this, actionptr, code);
|
| string old_type = current_action_->Type();
|
| current_action_->SetProcessor(NULL);
|
| current_action_ = NULL;
|
| if (actions_.empty()) {
|
| LOG(INFO) << "ActionProcessor::ActionComplete: finished last action of"
|
| " type " << old_type;
|
| - } else if (!success) {
|
| + } else if (code != kActionCodeSuccess) {
|
| LOG(INFO) << "ActionProcessor::ActionComplete: " << old_type
|
| << " action failed. Aborting processing.";
|
| actions_.clear();
|
| @@ -73,7 +73,7 @@ void ActionProcessor::ActionComplete(AbstractAction* actionptr,
|
| LOG(INFO) << "ActionProcessor::ActionComplete: finished last action of"
|
| " type " << old_type;
|
| if (delegate_) {
|
| - delegate_->ProcessingDone(this, success);
|
| + delegate_->ProcessingDone(this, code);
|
| }
|
| return;
|
| }
|
|
|