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

Unified Diff: chrome/renderer/content_settings_observer.cc

Issue 1862513003: Remove NPAPI from browser and utility (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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/renderer/content_settings_observer.h ('k') | chrome/test/data/extensions/uitest/plugins/README » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/content_settings_observer.cc
diff --git a/chrome/renderer/content_settings_observer.cc b/chrome/renderer/content_settings_observer.cc
index 58bf74ad8038d301513e8b5f3e9ae598b43d33f2..cebc683a55be25c53110620f4ef7446a1070c7dc 100644
--- a/chrome/renderer/content_settings_observer.cc
+++ b/chrome/renderer/content_settings_observer.cc
@@ -142,7 +142,6 @@ ContentSettingsObserver::ContentSettingsObserver(
allow_running_insecure_content_(false),
content_setting_rules_(NULL),
is_interstitial_page_(false),
- npapi_plugins_blocked_(false),
current_request_id_(0),
should_whitelist_(should_whitelist) {
ClearBlockedContentSettings();
@@ -162,7 +161,6 @@ ContentSettingsObserver::ContentSettingsObserver(
allow_running_insecure_content_ = parent->allow_running_insecure_content_;
temporarily_allowed_plugins_ = parent->temporarily_allowed_plugins_;
is_interstitial_page_ = parent->is_interstitial_page_;
- npapi_plugins_blocked_ = parent->npapi_plugins_blocked_;
}
}
@@ -205,7 +203,6 @@ bool ContentSettingsObserver::OnMessageReceived(const IPC::Message& message) {
bool handled = true;
IPC_BEGIN_MESSAGE_MAP(ContentSettingsObserver, message)
IPC_MESSAGE_HANDLER(ChromeViewMsg_SetAsInterstitial, OnSetAsInterstitial)
- IPC_MESSAGE_HANDLER(ChromeViewMsg_NPAPINotSupported, OnNPAPINotSupported)
IPC_MESSAGE_HANDLER(ChromeViewMsg_SetAllowDisplayingInsecureContent,
OnSetAllowDisplayingInsecureContent)
IPC_MESSAGE_HANDLER(ChromeViewMsg_SetAllowRunningInsecureContent,
@@ -504,10 +501,6 @@ void ContentSettingsObserver::didNotAllowScript() {
DidBlockContentType(CONTENT_SETTINGS_TYPE_JAVASCRIPT);
}
-bool ContentSettingsObserver::AreNPAPIPluginsBlocked() const {
- return npapi_plugins_blocked_;
-}
-
void ContentSettingsObserver::OnLoadBlockedPlugins(
const std::string& identifier) {
temporarily_allowed_plugins_.insert(identifier);
@@ -517,10 +510,6 @@ void ContentSettingsObserver::OnSetAsInterstitial() {
is_interstitial_page_ = true;
}
-void ContentSettingsObserver::OnNPAPINotSupported() {
- npapi_plugins_blocked_ = true;
-}
-
void ContentSettingsObserver::OnSetAllowDisplayingInsecureContent(bool allow) {
allow_displaying_insecure_content_ = allow;
}
« no previous file with comments | « chrome/renderer/content_settings_observer.h ('k') | chrome/test/data/extensions/uitest/plugins/README » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698