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

Unified Diff: chrome/browser/extensions/extension_apitest.cc

Issue 10700130: Introduce LaunchParams struct for opening chrome apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix bad merge Created 8 years, 5 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: chrome/browser/extensions/extension_apitest.cc
diff --git a/chrome/browser/extensions/extension_apitest.cc b/chrome/browser/extensions/extension_apitest.cc
index 974433fa18aa3c2cfd34ab55ec0233c5bff049c1..39ae50dacaf45a21bec8731c060837d8753be820 100644
--- a/chrome/browser/extensions/extension_apitest.cc
+++ b/chrome/browser/extensions/extension_apitest.cc
@@ -210,14 +210,11 @@ bool ExtensionApiTest::RunExtensionTestImpl(const char* extension_name,
ui_test_utils::NavigateToURL(browser(), url);
} else if (launch_platform_app) {
- CommandLine* command_line = CommandLine::ForCurrentProcess();
- application_launch::OpenApplication(
- browser()->profile(),
- extension,
- extension_misc::LAUNCH_NONE,
- GURL(),
- NEW_WINDOW,
- command_line);
+ application_launch::LaunchParams params(browser()->profile(), extension,
+ extension_misc::LAUNCH_NONE,
+ NEW_WINDOW);
+ params.command_line = CommandLine::ForCurrentProcess();
+ application_launch::OpenApplication(params);
}
if (!catcher.GetNextResult()) {
« no previous file with comments | « chrome/browser/extensions/app_notification_browsertest.cc ('k') | chrome/browser/extensions/extension_management_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698