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

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

Issue 10830050: (Views only) Prompt the user to reload the website after changing site permissions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments (Finnur). Created 8 years, 5 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 48d5e58e00b2013c2e391a33846793ed778e3c29..31dce7074fddb7ef96560d1dbcea313adca54ed0 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
@@ -41,6 +41,7 @@
#include "ui/views/layout/grid_layout.h"
#include "ui/views/layout/layout_manager.h"
#include "ui/views/view.h"
+#include "ui/views/widget/widget.h"
namespace {
@@ -322,7 +323,9 @@ WebsiteSettingsPopupView::WebsiteSettingsPopupView(
SizeToContents();
presenter_.reset(new WebsiteSettings(this, profile,
- tab_contents->content_settings(), url,
+ tab_contents->content_settings(),
+ tab_contents->infobar_tab_helper(),
+ url,
ssl,
content::CertStore::GetInstance()));
}
@@ -344,6 +347,10 @@ gfx::Rect WebsiteSettingsPopupView::GetAnchorRect() {
return anchor;
}
+void WebsiteSettingsPopupView::OnWidgetClosing(views::Widget* widget) {
+ presenter_->OnUIClosing();
+}
+
void WebsiteSettingsPopupView::ButtonPressed(
views::Button* button,
const views::Event& event) {

Powered by Google App Engine
This is Rietveld 408576698