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

Unified Diff: chrome/browser/ui/views/website_settings/website_settings_popup_view.cc

Issue 2408613002: Replace kPreferHtmlOverPlugins feature checks with PluginUtils::ShouldPreferHtmlOverPlugi… (Closed)
Patch Set: Replace remaining kPreferHtmlOverPlugins feature checks with PluginUtils::ShouldPreferHtmlOverPlugi… Created 4 years, 2 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/views/website_settings/website_settings_popup_view.cc
diff --git a/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc b/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc
index 2d848a1d49e9ac38f158263bd431d2874a77640f..a5d7499c75057c69a5189b63941ef7cb7236f01d 100644
--- a/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc
+++ b/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc
@@ -451,6 +451,7 @@ WebsiteSettingsPopupView::WebsiteSettingsPopupView(
const security_state::SecurityStateModel::SecurityInfo& security_info)
: content::WebContentsObserver(web_contents),
BubbleDialogDelegateView(anchor_view, views::BubbleBorder::TOP_LEFT),
+ profile_(profile),
header_(nullptr),
separator_(nullptr),
site_settings_view_(nullptr),
@@ -687,6 +688,7 @@ void WebsiteSettingsPopupView::SetPermissionInfo(
for (const auto& permission : permission_info_list) {
layout->StartRow(1, content_column);
PermissionSelectorRow* selector = new PermissionSelectorRow(
+ profile_,
web_contents() ? web_contents()->GetVisibleURL() : GURL::EmptyGURL(),
permission);
selector->AddObserver(this);

Powered by Google App Engine
This is Rietveld 408576698