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

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

Issue 2291323003: [HBD] Update Plugins type in Website Settings Permissions UI (Closed)
Patch Set: normalize to any other ask permission Created 4 years, 4 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 1632f9d8ad56c5e76ebc1e92e410a57e4f632432..207d194a5ff707d72ce4a08e71c9cd93b1960e28 100644
--- a/chrome/browser/ui/website_settings/website_settings_ui.cc
+++ b/chrome/browser/ui/website_settings/website_settings_ui.cc
@@ -6,6 +6,7 @@
#include "base/macros.h"
#include "chrome/browser/plugins/plugins_field_trial.h"
+#include "chrome/common/chrome_features.h"
#include "chrome/grit/chromium_strings.h"
#include "chrome/grit/generated_resources.h"
#include "chrome/grit/theme_resources.h"
@@ -88,8 +89,8 @@ const PermissionsUIInfo kPermissionsUIInfo[] = {
{CONTENT_SETTINGS_TYPE_POPUPS, IDS_WEBSITE_SETTINGS_TYPE_POPUPS,
IDR_BLOCKED_POPUPS, IDR_ALLOWED_POPUPS},
#if defined(ENABLE_PLUGINS)
- {CONTENT_SETTINGS_TYPE_PLUGINS, IDS_WEBSITE_SETTINGS_TYPE_PLUGINS,
- IDR_BLOCKED_POPUPS, IDR_ALLOWED_PLUGINS},
+ {CONTENT_SETTINGS_TYPE_PLUGINS, IDS_WEBSITE_SETTINGS_TYPE_FLASH,
raymes 2016/09/15 02:54:53 As we discussed - we need to clarify/ensure this w
raymes 2016/09/15 03:21:34 Now that I think about this more, I don't think th
tommycli 2016/09/15 16:40:45 I filed this bug: https://bugs.chromium.org/p/chro
+ IDR_BLOCKED_PLUGINS, IDR_ALLOWED_PLUGINS},
#endif
{CONTENT_SETTINGS_TYPE_GEOLOCATION, IDS_WEBSITE_SETTINGS_TYPE_LOCATION,
IDR_BLOCKED_LOCATION, IDR_ALLOWED_LOCATION},
@@ -227,6 +228,14 @@ base::string16 WebsiteSettingsUI::PermissionActionToUIString(
#if defined(ENABLE_PLUGINS)
effective_setting =
PluginsFieldTrial::EffectiveContentSetting(type, effective_setting);
+
+ // Display the UI string for ASK instead of DETECT for HTML5 by Default.
+ // TODO(tommycli): Once HTML5 by Default is shipped and the feature flag
+ // is removed, just migrate the actual content setting to ASK.
+ if (base::FeatureList::IsEnabled(features::kPreferHtmlOverPlugins) &&
+ effective_setting == CONTENT_SETTING_DETECT_IMPORTANT_CONTENT) {
+ effective_setting = CONTENT_SETTING_ASK;
raymes 2016/09/05 06:56:31 I'm confused! In PluginsFieldTrial::EffectiveConte
tommycli 2016/09/13 16:29:28 It's unfortunate, but that's exactly what we want.
+ }
#endif
const int* button_text_ids = NULL;

Powered by Google App Engine
This is Rietveld 408576698