blob: 85c82bd458684e11f74a92c330e04f7c2af0ea8d [file] [log] [blame]
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/web_applications/locks/all_apps_lock.h"
#include "chrome/browser/web_applications/locks/lock.h"
#include "chrome/browser/web_applications/locks/partitioned_lock_manager.h"
namespace web_app {
AllAppsLockDescription::AllAppsLockDescription()
: LockDescription({}, LockDescription::Type::kAllAppsLock) {}
AllAppsLockDescription::AllAppsLockDescription(AllAppsLockDescription&&) =
default;
AllAppsLockDescription::~AllAppsLockDescription() = default;
AllAppsLock::AllAppsLock(base::WeakPtr<WebAppLockManager> lock_manager,
std::unique_ptr<PartitionedLockHolder> holder)
: Lock(std::move(holder), lock_manager), WithAppResources(lock_manager) {}
AllAppsLock::~AllAppsLock() = default;
} // namespace web_app