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

Unified Diff: chrome/browser/ui/webui/options2/content_settings_handler2.cc

Issue 10577028: Move the mixed scripting infobar to a page action icon / content setting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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
Index: chrome/browser/ui/webui/options2/content_settings_handler2.cc
===================================================================
--- chrome/browser/ui/webui/options2/content_settings_handler2.cc (revision 143396)
+++ chrome/browser/ui/webui/options2/content_settings_handler2.cc (working copy)
@@ -337,6 +337,7 @@
{CONTENT_SETTINGS_TYPE_AUTO_SELECT_CERTIFICATE, "auto-select-certificate"},
{CONTENT_SETTINGS_TYPE_FULLSCREEN, "fullscreen"},
{CONTENT_SETTINGS_TYPE_MOUSELOCK, "mouselock"},
+ {CONTENT_SETTINGS_TYPE_MIXEDSCRIPT, "mixed-script"},
{EX_CONTENT_SETTINGS_TYPE_PEPPER_FLASH_CAMERAMIC, "pepper-flash-cameramic"},
};
@@ -664,11 +665,6 @@
void ContentSettingsHandler::UpdateExceptionsViewFromModel(
const ExContentSettingsType& type) {
- // Don't update intents settings at this point.
- // Turn on when enable_web_intents_tag is enabled.
- if (type == CONTENT_SETTINGS_TYPE_INTENTS)
- return;
-
switch (type) {
case CONTENT_SETTINGS_TYPE_GEOLOCATION:
UpdateGeolocationExceptionsView();
@@ -679,6 +675,13 @@
case EX_CONTENT_SETTINGS_TYPE_PEPPER_FLASH_CAMERAMIC:
UpdateFlashCameraMicExceptionsView();
break;
+ case CONTENT_SETTINGS_TYPE_INTENTS:
+ // Don't update intents settings at this point.
+ // Turn on when enable_web_intents_tag is enabled.
+ break;
+ case CONTENT_SETTINGS_TYPE_MIXEDSCRIPT:
+ // We don't yet support exceptions for mixed scripting.
+ break;
default:
UpdateExceptionsViewFromHostContentSettingsMap(
type.ToContentSettingsType());
@@ -693,6 +696,7 @@
case CONTENT_SETTINGS_TYPE_NOTIFICATIONS:
case CONTENT_SETTINGS_TYPE_INTENTS:
case CONTENT_SETTINGS_TYPE_AUTO_SELECT_CERTIFICATE:
+ case CONTENT_SETTINGS_TYPE_MIXEDSCRIPT:
case EX_CONTENT_SETTINGS_TYPE_PEPPER_FLASH_CAMERAMIC:
break;
default:
« no previous file with comments | « chrome/browser/ui/content_settings/content_setting_image_model.cc ('k') | chrome/common/common_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698