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

Unified Diff: chrome/browser/ui/cocoa/location_bar/location_icon_decoration.mm

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/cocoa/location_bar/location_icon_decoration.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/location_icon_decoration.mm b/chrome/browser/ui/cocoa/location_bar/location_icon_decoration.mm
index 6678f3347443b22dde3f61ac22a5299ddf63a6fc..7c0a10ed200134049d06b5c82efebd3f4e163f01 100644
--- a/chrome/browser/ui/cocoa/location_bar/location_icon_decoration.mm
+++ b/chrome/browser/ui/cocoa/location_bar/location_icon_decoration.mm
@@ -118,8 +118,12 @@ bool LocationIconDecoration::OnMousePressed(NSRect frame, NSPoint location) {
if (!nav_entry)
return true;
Browser* browser = chrome::FindBrowserWithWebContents(tab);
+
+ SecurityStateModel* security_model = SecurityStateModel::FromWebContents(tab);
+ DCHECK(security_model);
+
chrome::ShowWebsiteSettings(browser, tab, nav_entry->GetURL(),
- nav_entry->GetSSL());
+ security_model->GetSecurityInfo());
return true;
}

Powered by Google App Engine
This is Rietveld 408576698