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

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

Issue 381553002: Update the CrxInstaller and UnpackedInstaller to use the ExtensionInstallChecker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved include to correct file 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
« no previous file with comments | « chrome/browser/extensions/extension_installer.h ('k') | chrome/browser/extensions/unpacked_installer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_installer.cc
diff --git a/chrome/browser/extensions/extension_installer.cc b/chrome/browser/extensions/extension_installer.cc
deleted file mode 100644
index e37f402db67fef4808965137a9b507d5ed4e8752..0000000000000000000000000000000000000000
--- a/chrome/browser/extensions/extension_installer.cc
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (c) 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/extensions/extension_installer.h"
-
-#include "base/bind.h"
-#include "chrome/browser/profiles/profile.h"
-#include "content/public/browser/browser_thread.h"
-#include "extensions/browser/extension_system.h"
-#include "extensions/browser/management_policy.h"
-
-namespace extensions {
-
-ExtensionInstaller::ExtensionInstaller(Profile* profile)
- : requirements_checker_(new RequirementsChecker()),
- profile_(profile),
- weak_ptr_factory_(this) {
-}
-
-ExtensionInstaller::~ExtensionInstaller() {
-}
-
-void ExtensionInstaller::CheckRequirements(
- const RequirementsCallback& callback) {
- DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
- requirements_checker_->Check(extension_, callback);
-}
-
-base::string16 ExtensionInstaller::CheckManagementPolicy() {
- base::string16 error;
- bool allowed = ExtensionSystem::Get(profile_)->management_policy()
- ->UserMayLoad(extension_.get(), &error);
- DCHECK(allowed || !error.empty());
- return error;
-}
-
-} // namespace extensions
« no previous file with comments | « chrome/browser/extensions/extension_installer.h ('k') | chrome/browser/extensions/unpacked_installer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698