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

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: small cleanup to string handling 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..68441941da8a40f937afcf6f19b663d482a8771e 100644
--- a/chrome/browser/extensions/startup_helper.h
+++ b/chrome/browser/extensions/startup_helper.h
@@ -29,6 +29,12 @@ 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.
+ // If the return value is false, a description of the problem may be written
+ // into |error|.
+ bool ValidateCrx(const CommandLine& cmd_line, std::string* error);
+
// 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/ui/startup/startup_browser_creator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698