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

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

Issue 10907104: Support an --install-from-webstore command line switch (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: rebased 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
« no previous file with comments | « chrome/browser/extensions/extension_install_dialog.cc ('k') | chrome/browser/extensions/startup_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/startup_helper.h
diff --git a/chrome/browser/extensions/startup_helper.h b/chrome/browser/extensions/startup_helper.h
index f4aedc4837902e0999a42de80dd6d278fc70580b..1f88d999f71ae7a06a1f88a360eac7161c7a3d13 100644
--- a/chrome/browser/extensions/startup_helper.h
+++ b/chrome/browser/extensions/startup_helper.h
@@ -33,6 +33,11 @@ class StartupHelper : public PackExtensionJob::Client {
// could not be started.
bool UninstallExtension(const CommandLine& cmd_line, Profile* profile);
+ // Handle --install-from-webstore 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.
+ bool InstallFromWebstore(const CommandLine& cmd_line, Profile* profile);
+
private:
scoped_refptr<PackExtensionJob> pack_job_;
bool pack_job_succeeded_;
« no previous file with comments | « chrome/browser/extensions/extension_install_dialog.cc ('k') | chrome/browser/extensions/startup_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698