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

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

Issue 10448037: Fix regression when off-store install is disabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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/crx_installer.h
diff --git a/chrome/browser/extensions/crx_installer.h b/chrome/browser/extensions/crx_installer.h
index e8d91142c1fa7a483579cbe6f5933b0a8e087e74..5a9d51b4d25a8d51fbb3df11d9b5f56c86b5cc1e 100644
--- a/chrome/browser/extensions/crx_installer.h
+++ b/chrome/browser/extensions/crx_installer.h
@@ -142,11 +142,13 @@ class CrxInstaller
extension_misc::CrxInstallCause install_cause() const {
return install_cause_;
}
-
void set_install_cause(extension_misc::CrxInstallCause install_cause) {
install_cause_ = install_cause;
}
+ bool allow_off_store_install() const { return allow_off_store_install_; }
+ void set_allow_off_store_install(bool val) { allow_off_store_install_ = val; }
+
void set_page_ordinal(const StringOrdinal& page_ordinal) {
page_ordinal_ = page_ordinal;
}
@@ -309,6 +311,9 @@ class CrxInstaller
// when calling Extenion::Create() by the crx installer.
int creation_flags_;
+ // Whether to allow off store installation.
+ bool allow_off_store_install_;
+
DISALLOW_COPY_AND_ASSIGN(CrxInstaller);
};
« no previous file with comments | « no previous file | chrome/browser/extensions/crx_installer.cc » ('j') | chrome/browser/extensions/crx_installer_browsertest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698