blob: 4156974c0431ec5927b889f82e634f88a1a422bc [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/chrome_cleaner/engines/common/engine_digest_verifier.h"
#include "chrome/chrome_cleaner/engines/common/engine_resources.h"
#include "chrome/chrome_cleaner/os/digest_verifier.h"
namespace chrome_cleaner {
scoped_refptr<DigestVerifier> GetDigestVerifier() {
int resource_id = GetProtectedFilesDigestResourceId();
return resource_id ? DigestVerifier::CreateFromResource(resource_id)
: nullptr;
}
} // namespace chrome_cleaner