| // Copyright 2018 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/apps/app_service/app_service_proxy_desktop.h" |
| |
| #include "chrome/browser/web_applications/app_service/web_app_publisher_helper.h" |
| #include "chrome/browser/web_applications/web_app_command_scheduler.h" |
| #include "chrome/browser/web_applications/web_app_provider.h" |
| #include "components/services/app_service/public/cpp/app_types.h" |
| #include "components/services/app_service/public/cpp/features.h" |
| |
| namespace apps { |
| |
| AppServiceProxy::AppServiceProxy(Profile* profile) |
| : AppServiceProxyBase(profile) {} |
| |
| AppServiceProxy::~AppServiceProxy() = default; |
| |
| void AppServiceProxy::Initialize() { |
| if (!IsValidProfile()) { |
| return; |
| } |
| |
| AppServiceProxyBase::Initialize(); |
| |
| publisher_host_ = std::make_unique<PublisherHost>(this); |
| } |
| |
| bool AppServiceProxy::MaybeShowLaunchPreventionDialog( |
| const apps::AppUpdate& update) { |
| return false; |
| } |
| |
| } // namespace apps |