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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 10907104: Support an --install-from-webstore command line switch (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: updated comment Created 8 years, 3 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/chrome_browser_main.cc
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index da0a4dcdde28a512c134da94e642b124fc2c8be7..a4fecf206b857999ed2d470bb24a535d5289e069 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -1338,6 +1338,18 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunImpl() {
return chrome::RESULT_CODE_UNINSTALL_EXTENSION_ERROR;
}
+ if (parsed_command_line().HasSwitch(switches::kAppsInstallFromID)) {
+ const CommandLine& cmdline = parsed_command_line();
+ extensions::StartupHelper helper;
+ if (helper.InstallAppFromID(
+ cmdline.GetSwitchValueASCII(switches::kAppsInstallFromID),
Mihai Parparita -not on Chrome 2012/09/07 22:01:36 Other StartupHelper methods take the whole Command
asargent_no_longer_on_chrome 2012/09/14 23:24:35 Done.
+ profile_))
+ return content::RESULT_CODE_NORMAL_EXIT;
+ else
Mihai Parparita -not on Chrome 2012/09/07 22:01:36 Unnecessary else, given the return above.
asargent_no_longer_on_chrome 2012/09/14 23:24:35 Done.
+ return chrome::RESULT_CODE_INSTALL_APP_FROM_ID_ERROR;
+ }
+
+
// Start watching for hangs during startup. We disarm this hang detector when
// ThreadWatcher takes over or when browser is shutdown or when
// startup_watcher_ is deleted.
« no previous file with comments | « no previous file | chrome/browser/download/download_crx_util.cc » ('j') | chrome/browser/download/download_crx_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698