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

Unified Diff: chrome/browser/extensions/startup_helper.h

Issue 412043003: Make --install-chrome-app use extensions::WebstoreInstallWithPrompt. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Keep install_chrome_app Created 6 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/startup_helper.h
diff --git a/chrome/browser/extensions/startup_helper.h b/chrome/browser/extensions/startup_helper.h
index e7829069c0bec1b99337fdfdfbed44a0b79dbee4..971c3ce685cff8d78ccb80455f79708a55d24f2d 100644
--- a/chrome/browser/extensions/startup_helper.h
+++ b/chrome/browser/extensions/startup_helper.h
@@ -53,6 +53,12 @@ class StartupHelper : public PackExtensionJob::Client {
Profile* profile,
base::Callback<void()> done_callback);
+ // Handle --install-chrome-app flag from |cmd_line| by downloading metadata
+ // from the webstore for the given id, prompting the user to confirm, and then
+ // downloading the crx and installing it.
+ // Like InstallFromWebstore but this is asynchronous.
+ void InstallChromeApp(const base::CommandLine& cmd_line, Profile* profile);
+
// Maps the command line argument to the extension id. Returns an empty string
// in the case when there is no mapping.
std::string WebStoreIdFromLimitedInstallCmdLine(

Powered by Google App Engine
This is Rietveld 408576698