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

Unified Diff: chrome/browser/extensions/install_verifier.cc

Issue 1125353002: Make extensions developer mode warning controllable by experiments (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix win compile problem with unreached code Created 5 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/install_verifier.cc
diff --git a/chrome/browser/extensions/install_verifier.cc b/chrome/browser/extensions/install_verifier.cc
index bc1d69009b3a0ddc4460749dc636335c994b0c67..3637ff77325500c1cc4f373000f49a74de80f472 100644
--- a/chrome/browser/extensions/install_verifier.cc
+++ b/chrome/browser/extensions/install_verifier.cc
@@ -109,10 +109,6 @@ bool ShouldFetchSignature() {
return GetStatus() >= BOOTSTRAP;
}
-bool ShouldEnforce() {
- return GetStatus() >= ENFORCE;
-}
-
enum InitResult {
INIT_NO_PREF = 0,
INIT_UNPARSEABLE_PREF,
@@ -184,6 +180,11 @@ InstallVerifier::InstallVerifier(ExtensionPrefs* prefs,
InstallVerifier::~InstallVerifier() {}
// static
+bool InstallVerifier::ShouldEnforce() {
+ return GetStatus() >= ENFORCE;
+}
+
+// static
bool InstallVerifier::NeedsVerification(const Extension& extension) {
return IsFromStore(extension) && CanUseExtensionApis(extension);
}
« no previous file with comments | « chrome/browser/extensions/install_verifier.h ('k') | chrome/browser/ui/extensions/extension_message_bubble_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698