#include "chrome/browser/apps/intent_helper/preferred_apps_test_util.h"
#include "base/run_loop.h"
#include "base/scoped_observation.h"
#include "chrome/browser/apps/app_service/app_service_proxy.h"
#include "chrome/browser/apps/app_service/app_service_proxy_factory.h"
namespace apps_util {
PreferredAppUpdateWaiter::PreferredAppUpdateWaiter(
apps::PreferredAppsListHandle& handle,
std::string app_id,
bool is_preferred_app)
: … { … }
PreferredAppUpdateWaiter::~PreferredAppUpdateWaiter() = default;
void PreferredAppUpdateWaiter::Wait() { … }
void PreferredAppUpdateWaiter::OnPreferredAppChanged(const std::string& app_id,
bool is_preferred_app) { … }
void PreferredAppUpdateWaiter::OnPreferredAppsListWillBeDestroyed(
apps::PreferredAppsListHandle* handle) { … }
void SetSupportedLinksPreferenceAndWait(Profile* profile,
const std::string& app_id) { … }
void RemoveSupportedLinksPreferenceAndWait(Profile* profile,
const std::string& app_id) { … }
}