Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d5f920b4 authored by Mohammad Samiul Islam's avatar Mohammad Samiul Islam Committed by android-build-merger
Browse files

Merge "Replace StatusOr<T> with Result<T>"

am: b7f93dee

Change-Id: Iacb46b3233b092e1578c7f20e593c89165f0d44f
parents 57e287f2 b7f93dee
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -72,9 +72,10 @@ static std::vector<apex::ApexFile> ActivateApexPackages() {
static void DeactivateApexPackages(const std::vector<apex::ApexFile>& active_packages) {
    for (const apex::ApexFile& apex_file : active_packages) {
        const std::string& package_path = apex_file.GetPath();
        apex::Status status = apex::deactivatePackage(package_path);
        if (!status.Ok()) {
            LOG(ERROR) << "Failed to deactivate " << package_path << ": " << status.ErrorMessage();
        base::Result<void> status = apex::deactivatePackage(package_path);
        if (!status) {
            LOG(ERROR) << "Failed to deactivate " << package_path << ": "
                       << status.error();
        }
    }
}