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

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

Issue 12660017: Add a commandline flag to chrome to validate crx files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added browser test Created 7 years, 9 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 01ccfa6a0818363d968282dea63149b9c50a8d71..e767b346accee069e2facfba29be653f6cde0534 100644
--- a/chrome/browser/extensions/startup_helper.h
+++ b/chrome/browser/extensions/startup_helper.h
@@ -29,6 +29,10 @@ class StartupHelper : public PackExtensionJob::Client {
// extension. Returns false if the pack job failed.
bool PackExtension(const CommandLine& cmd_line);
+ // Validates a crx at the path given by the --validate-extension flag - can
+ // it be installed? Returns true if the crx is valid, or false otherwise.
Matt Perry 2013/03/20 19:52:15 The code just unpacks it. That doesn't necessarily
asargent_no_longer_on_chrome 2013/03/21 21:34:44 As discussed offline, I think most 'error' checks
+ bool ValidateCrx(const CommandLine& cmd_line);
+
// Handle --uninstall-extension flag from the |cmd_line| by uninstalling the
// specified extension from |profile|. Returns false if the uninstall job
// could not be started.
« no previous file with comments | « no previous file | chrome/browser/extensions/startup_helper.cc » ('j') | chrome/browser/extensions/startup_helper.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698