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

Unified Diff: chrome/browser/ui/website_settings/website_settings_ui.cc

Issue 829113004: Plugin Power Saver: Add back 'Click to play' option as 4th for plugins. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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/website_settings/website_settings_ui.cc
diff --git a/chrome/browser/ui/website_settings/website_settings_ui.cc b/chrome/browser/ui/website_settings/website_settings_ui.cc
index 9ee7e692f86966d2adf11a2e0a70c19c15cbb360..681d5c1e752907791e62bd1e69b4fbeca351aaab 100644
--- a/chrome/browser/ui/website_settings/website_settings_ui.cc
+++ b/chrome/browser/ui/website_settings/website_settings_ui.cc
@@ -162,16 +162,9 @@ base::string16 WebsiteSettingsUI::PermissionActionToUIString(
ContentSetting default_setting,
content_settings::SettingSource source) {
ContentSetting effective_setting = setting;
- if (effective_setting == CONTENT_SETTING_DEFAULT) {
+ if (effective_setting == CONTENT_SETTING_DEFAULT)
effective_setting = default_setting;
- // For Plugins, ASK is obsolete. Show as BLOCK to reflect actual behavior.
- if (type == CONTENT_SETTINGS_TYPE_PLUGINS &&
- default_setting == CONTENT_SETTING_ASK) {
- effective_setting = CONTENT_SETTING_BLOCK;
- }
- }
-
const int* button_text_ids = NULL;
switch (source) {
case content_settings::SETTING_SOURCE_USER:

Powered by Google App Engine
This is Rietveld 408576698