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

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

Issue 2363623002: Remove SecurityStateModel memoization (Closed)
Patch Set: Created 4 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
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/extensions/hosted_app_browser_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c48a346f86217956def7c6070977c1eca88e26ac..d8a2469675e1e5c6fd41b7c174227573f2d1fe11 100644
--- a/chrome/browser/ui/cocoa/location_bar/location_icon_decoration.mm
+++ b/chrome/browser/ui/cocoa/location_bar/location_icon_decoration.mm
@@ -123,9 +123,11 @@ bool LocationIconDecoration::OnMousePressed(NSRect frame, NSPoint location) {
ChromeSecurityStateModelClient* security_model_client =
ChromeSecurityStateModelClient::FromWebContents(tab);
DCHECK(security_model_client);
+ security_state::SecurityStateModel::SecurityInfo security_info;
+ security_model_client->GetSecurityInfo(&security_info);
chrome::ShowWebsiteSettings(browser, tab, nav_entry->GetVirtualURL(),
- security_model_client->GetSecurityInfo());
+ security_info);
return true;
}
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/extensions/hosted_app_browser_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698