Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Unified Diff: extensions/browser/guest_view/web_view/web_view_apitest.cc

Issue 2859423003: Remove ShellExtensionSystem::LaunchApp
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: extensions/browser/guest_view/web_view/web_view_apitest.cc
diff --git a/extensions/browser/guest_view/web_view/web_view_apitest.cc b/extensions/browser/guest_view/web_view/web_view_apitest.cc
index d9815eb7a917957078b1709a51c89c69fdbdc531..834e96717918255eca9f580e4b9ace8058c827a6 100644
--- a/extensions/browser/guest_view/web_view/web_view_apitest.cc
+++ b/extensions/browser/guest_view/web_view/web_view_apitest.cc
@@ -6,6 +6,7 @@
#include <utility>
+#include "apps/launcher.h"
#include "base/command_line.h"
#include "base/macros.h"
#include "base/path_service.h"
@@ -27,6 +28,7 @@
#include "extensions/browser/app_window/app_window.h"
#include "extensions/browser/app_window/app_window_registry.h"
#include "extensions/browser/process_manager.h"
+#include "extensions/common/constants.h"
#include "extensions/common/extension.h"
#include "extensions/common/extension_paths.h"
#include "extensions/common/switches.h"
@@ -148,7 +150,8 @@ void WebViewAPITest::LaunchApp(const std::string& app_location) {
const Extension* extension = extension_system_->LoadApp(test_data_dir);
ASSERT_TRUE(extension);
- extension_system_->LaunchApp(extension->id());
+ apps::LaunchPlatformApp(browser_context_, extension,
+ extensions::SOURCE_UNTRACKED);
ExtensionTestMessageListener launch_listener("LAUNCHED", false);
launch_listener.set_failure_message("FAILURE");
« no previous file with comments | « extensions/browser/guest_view/app_view/app_view_apitest.cc ('k') | extensions/shell/browser/shell_extension_system.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698