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

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

Issue 1473523002: Switch SecurityStateModel ownership to ChromeSecurityStateModelClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: delegate -> client Created 5 years, 1 month 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 7c0a10ed200134049d06b5c82efebd3f4e163f01..549b4a29b1b6d501bc09f54ac10ee7366167dcf8 100644
--- a/chrome/browser/ui/cocoa/location_bar/location_icon_decoration.mm
+++ b/chrome/browser/ui/cocoa/location_bar/location_icon_decoration.mm
@@ -6,6 +6,7 @@
#include "base/strings/sys_string_conversions.h"
#include "chrome/browser/search/search.h"
+#include "chrome/browser/ssl/chrome_security_state_model_client.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_commands.h"
#include "chrome/browser/ui/browser_finder.h"
@@ -119,11 +120,12 @@ bool LocationIconDecoration::OnMousePressed(NSRect frame, NSPoint location) {
return true;
Browser* browser = chrome::FindBrowserWithWebContents(tab);
- SecurityStateModel* security_model = SecurityStateModel::FromWebContents(tab);
- DCHECK(security_model);
+ ChromeSecurityStateModelClient* security_model_client =
+ ChromeSecurityStateModelClient::FromWebContents(tab);
+ DCHECK(security_model_client);
chrome::ShowWebsiteSettings(browser, tab, nav_entry->GetURL(),
- security_model->GetSecurityInfo());
+ security_model_client->GetSecurityInfo());
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