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

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

Issue 11571010: fixed the DCHECK and also corrected the website setting UI for media (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed Markus' comment and consolidated |web_content_|. Created 8 years 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 5f67d5026dc4dc4d023c79498892a4e7d96ae311..62131802322bd122626f06be02fb31ab36238613 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
@@ -491,6 +491,7 @@ void WebsiteSettingsPopupView::SetPermissionInfo(
++permission) {
layout->StartRow(1, content_column);
PermissionSelectorView* selector = new PermissionSelectorView(
+ web_contents_ ? web_contents_->GetURL() : GURL::EmptyGURL(),
permission->type,
permission->default_setting,
permission->setting,

Powered by Google App Engine
This is Rietveld 408576698