summaryrefslogtreecommitdiffstats
path: root/chrome/browser/content_settings
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-11 17:00:57 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-11 17:00:57 +0000
commit8427a062d29aa762bf11a3384bb6c02fa2395b16 (patch)
tree64fa1d2e4f39330eb0960cfe87c374e6be34b296 /chrome/browser/content_settings
parent574268ef75cf34e46b268ea035ace78b7c4b2dad (diff)
downloadchromium_src-8427a062d29aa762bf11a3384bb6c02fa2395b16.zip
chromium_src-8427a062d29aa762bf11a3384bb6c02fa2395b16.tar.gz
chromium_src-8427a062d29aa762bf11a3384bb6c02fa2395b16.tar.bz2
Delete most web intents code.
It's already disabled, so this should have no observable effect. The database code stays around until I've written a migration to delete the webintents table. The apps schema code stays around so that 'intent' blocks in apps are silently ignored instead of causing an error. BUG=173194 TBR=piman Review URL: https://codereview.chromium.org/12225076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181702 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/content_settings')
-rw-r--r--chrome/browser/content_settings/content_settings_default_provider.cc6
-rw-r--r--chrome/browser/content_settings/content_settings_policy_provider.cc1
-rw-r--r--chrome/browser/content_settings/content_settings_utils.cc1
-rw-r--r--chrome/browser/content_settings/host_content_settings_map.cc8
-rw-r--r--chrome/browser/content_settings/host_content_settings_map_unittest.cc8
5 files changed, 0 insertions, 24 deletions
diff --git a/chrome/browser/content_settings/content_settings_default_provider.cc b/chrome/browser/content_settings/content_settings_default_provider.cc
index 5651955..8133505 100644
--- a/chrome/browser/content_settings/content_settings_default_provider.cc
+++ b/chrome/browser/content_settings/content_settings_default_provider.cc
@@ -40,7 +40,6 @@ const ContentSetting kDefaultSettings[] = {
CONTENT_SETTING_BLOCK, // CONTENT_SETTINGS_TYPE_POPUPS
CONTENT_SETTING_ASK, // CONTENT_SETTINGS_TYPE_GEOLOCATION
CONTENT_SETTING_ASK, // CONTENT_SETTINGS_TYPE_NOTIFICATIONS
- CONTENT_SETTING_ASK, // CONTENT_SETTINGS_TYPE_INTENTS
CONTENT_SETTING_DEFAULT, // CONTENT_SETTINGS_TYPE_AUTO_SELECT_CERTIFICATE
CONTENT_SETTING_ASK, // CONTENT_SETTINGS_TYPE_FULLSCREEN
CONTENT_SETTING_ASK, // CONTENT_SETTINGS_TYPE_MOUSELOCK
@@ -146,11 +145,6 @@ DefaultProvider::DefaultProvider(PrefService* prefs, bool incognito)
default_settings_[CONTENT_SETTINGS_TYPE_NOTIFICATIONS].get()),
CONTENT_SETTING_NUM_SETTINGS);
UMA_HISTOGRAM_ENUMERATION(
- "ContentSettings.DefaultHandlersSetting",
- ValueToContentSetting(
- default_settings_[CONTENT_SETTINGS_TYPE_INTENTS].get()),
- CONTENT_SETTING_NUM_SETTINGS);
- UMA_HISTOGRAM_ENUMERATION(
"ContentSettings.DefaultMouseCursorSetting",
ValueToContentSetting(
default_settings_[CONTENT_SETTINGS_TYPE_MOUSELOCK].get()),
diff --git a/chrome/browser/content_settings/content_settings_policy_provider.cc b/chrome/browser/content_settings/content_settings_policy_provider.cc
index 0687d6a..1d8f31a 100644
--- a/chrome/browser/content_settings/content_settings_policy_provider.cc
+++ b/chrome/browser/content_settings/content_settings_policy_provider.cc
@@ -33,7 +33,6 @@ const char* kPrefToManageType[] = {
prefs::kManagedDefaultPopupsSetting,
prefs::kManagedDefaultGeolocationSetting,
prefs::kManagedDefaultNotificationsSetting,
- NULL, // No policy for default value of content type intents
NULL, // No policy for default value of content type auto-select-certificate
NULL, // No policy for default value of fullscreen requests
NULL, // No policy for default value of mouse lock requests
diff --git a/chrome/browser/content_settings/content_settings_utils.cc b/chrome/browser/content_settings/content_settings_utils.cc
index 31c6ba0..6534526 100644
--- a/chrome/browser/content_settings/content_settings_utils.cc
+++ b/chrome/browser/content_settings/content_settings_utils.cc
@@ -30,7 +30,6 @@ const char* kTypeNames[] = {
"popups",
"geolocation",
"notifications",
- "intents",
"auto-select-certificate",
"fullscreen",
"mouselock",
diff --git a/chrome/browser/content_settings/host_content_settings_map.cc b/chrome/browser/content_settings/host_content_settings_map.cc
index f4ed324..01b150d7 100644
--- a/chrome/browser/content_settings/host_content_settings_map.cc
+++ b/chrome/browser/content_settings/host_content_settings_map.cc
@@ -22,7 +22,6 @@
#include "chrome/browser/content_settings/content_settings_rule.h"
#include "chrome/browser/content_settings/content_settings_utils.h"
#include "chrome/browser/extensions/extension_service.h"
-#include "chrome/browser/intents/web_intents_util.h"
#include "chrome/browser/prefs/pref_registry_syncable.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/common/chrome_notification_types.h"
@@ -335,12 +334,6 @@ bool HostContentSettingsMap::IsSettingAllowedForType(
PrefService* prefs,
ContentSetting setting,
ContentSettingsType content_type) {
- // Intents content settings are hidden behind a switch for now.
- if (content_type == CONTENT_SETTINGS_TYPE_INTENTS) {
- if (!web_intents::IsWebIntentsEnabled(prefs))
- return false;
- }
-
// We don't yet support stored content settings for mixed scripting.
if (content_type == CONTENT_SETTINGS_TYPE_MIXEDSCRIPT)
return false;
@@ -369,7 +362,6 @@ bool HostContentSettingsMap::IsSettingAllowedForType(
case CONTENT_SETTINGS_TYPE_PLUGINS:
case CONTENT_SETTINGS_TYPE_GEOLOCATION:
case CONTENT_SETTINGS_TYPE_NOTIFICATIONS:
- case CONTENT_SETTINGS_TYPE_INTENTS:
case CONTENT_SETTINGS_TYPE_MOUSELOCK:
case CONTENT_SETTINGS_TYPE_MEDIASTREAM:
case CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC:
diff --git a/chrome/browser/content_settings/host_content_settings_map_unittest.cc b/chrome/browser/content_settings/host_content_settings_map_unittest.cc
index 646d3c1..5d19b03 100644
--- a/chrome/browser/content_settings/host_content_settings_map_unittest.cc
+++ b/chrome/browser/content_settings/host_content_settings_map_unittest.cc
@@ -143,9 +143,6 @@ TEST_F(HostContentSettingsMapTest, IndividualSettings) {
host, host, CONTENT_SETTINGS_TYPE_NOTIFICATIONS, ""));
EXPECT_EQ(CONTENT_SETTING_ASK,
host_content_settings_map->GetContentSetting(
- host, host, CONTENT_SETTINGS_TYPE_INTENTS, ""));
- EXPECT_EQ(CONTENT_SETTING_ASK,
- host_content_settings_map->GetContentSetting(
host, host, CONTENT_SETTINGS_TYPE_FULLSCREEN, ""));
EXPECT_EQ(CONTENT_SETTING_ASK,
host_content_settings_map->GetContentSetting(
@@ -609,9 +606,6 @@ TEST_F(HostContentSettingsMapTest, NestedSettings) {
host, host, CONTENT_SETTINGS_TYPE_NOTIFICATIONS, ""));
EXPECT_EQ(CONTENT_SETTING_ASK,
host_content_settings_map->GetContentSetting(
- host, host, CONTENT_SETTINGS_TYPE_INTENTS, ""));
- EXPECT_EQ(CONTENT_SETTING_ASK,
- host_content_settings_map->GetContentSetting(
host, host, CONTENT_SETTINGS_TYPE_FULLSCREEN, ""));
EXPECT_EQ(CONTENT_SETTING_ASK,
host_content_settings_map->GetContentSetting(
@@ -1041,8 +1035,6 @@ TEST_F(HostContentSettingsMapTest, ShouldAllowAllContent) {
extension, extension, CONTENT_SETTINGS_TYPE_COOKIES));
EXPECT_FALSE(host_content_settings_map->ShouldAllowAllContent(
extension, extension, CONTENT_SETTINGS_TYPE_PLUGINS));
- EXPECT_TRUE(host_content_settings_map->ShouldAllowAllContent(
- extension, extension, CONTENT_SETTINGS_TYPE_INTENTS));
EXPECT_FALSE(host_content_settings_map->ShouldAllowAllContent(
extension, http_host, CONTENT_SETTINGS_TYPE_COOKIES));
}