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

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

Issue 384423002: [Canceled] Extensions: Add install_flags parameter to ManagementPolicy::UserMayLoad (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update tests 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/extension_install_checker.h
diff --git a/chrome/browser/extensions/extension_install_checker.h b/chrome/browser/extensions/extension_install_checker.h
index 2841e833adb2e1e8d6adbd0e312611f53cfe9eb1..0a82ad9160a4ed9544e53cd13e3779447ce50d37 100644
--- a/chrome/browser/extensions/extension_install_checker.h
+++ b/chrome/browser/extensions/extension_install_checker.h
@@ -57,7 +57,10 @@ class ExtensionInstallChecker {
Profile* profile() const { return profile_; }
scoped_refptr<const Extension> extension() { return extension_; }
- void set_extension(const Extension* extension) { extension_ = extension; }
+ void set_extension(const Extension* extension, int install_flags) {
+ extension_ = extension;
+ install_flags_ = install_flags;
+ }
// Returns true if any checks are currently running.
bool is_running() const { return running_checks_ != 0; }
@@ -101,6 +104,8 @@ class ExtensionInstallChecker {
// The extension to run checks for.
scoped_refptr<const Extension> extension_;
+ int install_flags_;
+
// Requirement violations.
std::vector<std::string> requirement_errors_;
« no previous file with comments | « chrome/browser/extensions/extension_error_controller.cc ('k') | chrome/browser/extensions/extension_install_checker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698