chromium/chrome/browser/web_applications/user_uninstalled_preinstalled_web_app_prefs.cc

// Copyright 2022 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/user_uninstalled_preinstalled_web_app_prefs.h"

#include <string>
#include <utility>

#include "base/containers/contains.h"
#include "base/metrics/user_metrics.h"
#include "base/values.h"
#include "chrome/browser/web_applications/web_app.h"
#include "chrome/browser/web_applications/web_app_constants.h"
#include "content/public/browser/browser_thread.h"

namespace web_app {

const char UserUninstalledPreinstalledWebAppPrefs::
    kUserUninstalledPreinstalledAppAction[] =;

UserUninstalledPreinstalledWebAppPrefs::UserUninstalledPreinstalledWebAppPrefs(
    PrefService* pref_service)
    :{}

// static
void UserUninstalledPreinstalledWebAppPrefs::RegisterProfilePrefs(
    user_prefs::PrefRegistrySyncable* registry) {}

void UserUninstalledPreinstalledWebAppPrefs::Add(
    const webapps::AppId& app_id,
    base::flat_set<GURL> install_urls) {}

std::optional<webapps::AppId>
UserUninstalledPreinstalledWebAppPrefs::LookUpAppIdByInstallUrl(
    const GURL& url) {}

bool UserUninstalledPreinstalledWebAppPrefs::DoesAppIdExist(
    const webapps::AppId& app_id) {}

void UserUninstalledPreinstalledWebAppPrefs::AppendExistingInstallUrlsPerAppId(
    const webapps::AppId& app_id,
    base::flat_set<GURL>& urls) {}

int UserUninstalledPreinstalledWebAppPrefs::Size() {}

bool UserUninstalledPreinstalledWebAppPrefs::RemoveByInstallUrl(
    const webapps::AppId& app_id,
    const GURL& install_url) {}

bool UserUninstalledPreinstalledWebAppPrefs::RemoveByAppId(
    const webapps::AppId& app_id) {}

bool UserUninstalledPreinstalledWebAppPrefs::AppIdContainsAllUrls(
    const webapps::AppId& app_id,
    const base::flat_map<WebAppManagement::Type,
                         WebApp::ExternalManagementConfig>& url_map,
    const bool only_default) {}

#if BUILDFLAG(IS_CHROMEOS_ASH)
void UserUninstalledPreinstalledWebAppPrefs::ClearAllApps() {
  pref_service_->ClearPref(prefs::kUserUninstalledPreinstalledWebAppPref);
}
#endif

}  // namespace web_app