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

Unified Diff: chrome/browser/ui/startup/startup_browser_creator.cc

Issue 16357005: Pass command line arguments through with --load-and-launch-app. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Feedback Created 7 years, 6 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/ui/startup/startup_browser_creator.cc
diff --git a/chrome/browser/ui/startup/startup_browser_creator.cc b/chrome/browser/ui/startup/startup_browser_creator.cc
index 2aca68ba5927faa2926b035ab4cc0b518105413b..d63e0864fd4df07169ee065d1b800d13ac69937d 100644
--- a/chrome/browser/ui/startup/startup_browser_creator.cc
+++ b/chrome/browser/ui/startup/startup_browser_creator.cc
@@ -622,17 +622,12 @@ bool StartupBrowserCreator::ProcessCmdLineImpl(
command_line, last_used_profile->GetPrefs())) {
CommandLine::StringType path = command_line.GetSwitchValueNative(
apps::kLoadAndLaunchApp);
- std::string extension_id;
- if (!extensions::UnpackedInstaller::Create(
- last_used_profile->GetExtensionService())->
- LoadFromCommandLine(base::FilePath(path), &extension_id)) {
+
+ if (!apps::AppLoadService::Get(last_used_profile)->LoadAndLaunch(
+ base::FilePath(path), command_line, cur_dir)) {
return false;
}
- // Schedule the app to be launched once loaded.
- apps::AppLoadService::Get(last_used_profile)->ScheduleLaunchOnLoad(
- extension_id);
-
// Return early here since we don't want to open a browser window.
// The exception is when there are no browser windows, since we don't want
// chrome to shut down.
« no previous file with comments | « apps/load_and_launch_browsertest.cc ('k') | chrome/test/data/extensions/platform_apps/load_and_launch_file/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698