Remove boost dependency
[platform/core/appfw/app-installers.git] / src / common / step / security / step_update_security.cc
index 644c00a..4e2d871 100644 (file)
@@ -18,7 +18,7 @@ Step::Status StepUpdateSecurity::process() {
   if (!RegisterSecurityContextForManifest(context_, &error_message)) {
     if (!error_message.empty()) {
       LOG(ERROR) << "error_message: " << error_message;
-      on_error(Status::SECURITY_ERROR, error_message);
+      on_error_->on_error(Status::SECURITY_ERROR, error_message);
     }
     return Status::SECURITY_ERROR;
   }
@@ -28,7 +28,7 @@ Step::Status StepUpdateSecurity::process() {
         context_->is_readonly_package.get(), &error_message)) {
       if (!error_message.empty()) {
         LOG(ERROR) << "error_message: " << error_message;
-        on_error(Status::SECURITY_ERROR, error_message);
+        on_error_->on_error(Status::SECURITY_ERROR, error_message);
       }
       return Status::SECURITY_ERROR;
     }
@@ -50,7 +50,7 @@ Step::Status StepUpdateSecurity::undo() {
       context_->is_readonly_package.get(), &error_message)) {
     if (!error_message.empty()) {
       LOG(ERROR) << "error_message: " << error_message;
-      on_error(Status::SECURITY_ERROR, error_message);
+      on_error_->on_error(Status::SECURITY_ERROR, error_message);
     }
     return Status::SECURITY_ERROR;
   }