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

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

Issue 1127133006: Extract InstallVerifier from ExtensionSystem. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « chrome/browser/extensions/install_verifier.h ('k') | chrome/browser/extensions/install_verifier_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/install_verifier.cc
diff --git a/chrome/browser/extensions/install_verifier.cc b/chrome/browser/extensions/install_verifier.cc
index 3637ff77325500c1cc4f373000f49a74de80f472..073964779ba1de0e6362a4b8dff893cdeea2b1cd 100644
--- a/chrome/browser/extensions/install_verifier.cc
+++ b/chrome/browser/extensions/install_verifier.cc
@@ -17,6 +17,7 @@
#include "chrome/browser/extensions/extension_management.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/install_signer.h"
+#include "chrome/browser/extensions/install_verifier_factory.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/grit/generated_resources.h"
#include "content/public/browser/browser_context.h"
@@ -180,6 +181,12 @@ InstallVerifier::InstallVerifier(ExtensionPrefs* prefs,
InstallVerifier::~InstallVerifier() {}
// static
+InstallVerifier* InstallVerifier::Get(
+ content::BrowserContext* browser_context) {
+ return InstallVerifierFactory::GetForBrowserContext(browser_context);
+}
+
+// static
bool InstallVerifier::ShouldEnforce() {
return GetStatus() >= ENFORCE;
}
« no previous file with comments | « chrome/browser/extensions/install_verifier.h ('k') | chrome/browser/extensions/install_verifier_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698