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

Unified Diff: chrome/browser/plugins/enable_npapi_plugins_policy_handler.cc

Issue 1158423003: Disable NPAPI support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove unneeded function declaration 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/plugins/enable_npapi_plugins_policy_handler.h ('k') | chrome/browser/plugins/plugin_prefs.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/plugins/enable_npapi_plugins_policy_handler.cc
diff --git a/chrome/browser/plugins/enable_npapi_plugins_policy_handler.cc b/chrome/browser/plugins/enable_npapi_plugins_policy_handler.cc
deleted file mode 100644
index c3419c9e0b384c6fef410ee93fed08987950bca0..0000000000000000000000000000000000000000
--- a/chrome/browser/plugins/enable_npapi_plugins_policy_handler.cc
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright 2015 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/plugins/enable_npapi_plugins_policy_handler.h"
-
-#include "base/logging.h"
-#include "base/prefs/pref_value_map.h"
-#include "base/values.h"
-#include "chrome/common/pref_names.h"
-#include "components/policy/core/browser/policy_error_map.h"
-#include "components/policy/core/common/policy_map.h"
-#include "policy/policy_constants.h"
-
-namespace policy {
-
-EnableNpapiPluginsPolicyHandler::EnableNpapiPluginsPolicyHandler() {
-}
-
-EnableNpapiPluginsPolicyHandler::~EnableNpapiPluginsPolicyHandler() {
-}
-
-void EnableNpapiPluginsPolicyHandler::ApplyPolicySettings(
- const PolicyMap& policies,
- PrefValueMap* prefs) {
- const std::string plugin_policies[] = {key::kEnabledPlugins,
- key::kPluginsAllowedForUrls,
- key::kPluginsBlockedForUrls,
- key::kDisabledPluginsExceptions,
- key::kDisabledPlugins};
-
- for (auto policy : plugin_policies) {
- if (policies.GetValue(policy)) {
- prefs->SetBoolean(prefs::kEnableNpapi, true);
- break;
- }
- }
-}
-
-bool EnableNpapiPluginsPolicyHandler::CheckPolicySettings(
- const PolicyMap& policies,
- PolicyErrorMap* prefs) {
- return true;
-}
-
-} // namespace policy
« no previous file with comments | « chrome/browser/plugins/enable_npapi_plugins_policy_handler.h ('k') | chrome/browser/plugins/plugin_prefs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698