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

Unified Diff: chrome/browser/ui/views/location_bar/page_info_helper.cc

Issue 1314953009: Refactor WebsiteSettings to operate on a SecurityInfo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 3 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/location_bar/page_info_helper.cc
diff --git a/chrome/browser/ui/views/location_bar/page_info_helper.cc b/chrome/browser/ui/views/location_bar/page_info_helper.cc
index b27cf0398b75a3920485437b4f63aababb4539a6..42bb120b863f9cc6e671c4d1b2e0ceed51719dd6 100644
--- a/chrome/browser/ui/views/location_bar/page_info_helper.cc
+++ b/chrome/browser/ui/views/location_bar/page_info_helper.cc
@@ -36,6 +36,9 @@ void PageInfoHelper::ProcessEvent(const ui::LocatedEvent& event) {
if (!nav_entry)
return;
+ SecurityStateModel* security_model = SecurityStateModel::FromWebContents(tab);
+ DCHECK(security_model);
+
location_bar_->delegate()->ShowWebsiteSettings(
- tab, nav_entry->GetURL(), nav_entry->GetSSL());
+ tab, nav_entry->GetURL(), security_model->GetSecurityInfo());
}

Powered by Google App Engine
This is Rietveld 408576698