| // 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/browser/apps/launch_service/extension_app_launch_manager.h" |
| |
| #include "base/feature_list.h" |
| #include "chrome/browser/apps/platform_apps/platform_app_launch.h" |
| #include "chrome/browser/ui/extensions/application_launch.h" |
| #include "chrome/common/chrome_features.h" |
| |
| namespace apps { |
| |
| ExtensionAppLaunchManager::ExtensionAppLaunchManager(Profile* profile) |
| : LaunchManager(profile) {} |
| |
| ExtensionAppLaunchManager::~ExtensionAppLaunchManager() = default; |
| |
| content::WebContents* ExtensionAppLaunchManager::OpenApplication( |
| const AppLaunchParams& params) { |
| return ::OpenApplication(profile(), params); |
| } |
| |
| bool ExtensionAppLaunchManager::OpenApplicationWindow( |
| const std::string& app_id, |
| const base::CommandLine& command_line, |
| const base::FilePath& current_directory) { |
| return OpenExtensionApplicationWindow(profile(), app_id, command_line, |
| current_directory); |
| } |
| |
| bool ExtensionAppLaunchManager::OpenApplicationTab(const std::string& app_id) { |
| return OpenExtensionApplicationTab(profile(), app_id); |
| } |
| |
| } // namespace apps |