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

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

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/views/frame/web_app_left_header_view_ash.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 42bb120b863f9cc6e671c4d1b2e0ceed51719dd6..e61d82b0009b269b17890b4375a3d9fe455c20c9 100644
--- a/chrome/browser/ui/views/location_bar/page_info_helper.cc
+++ b/chrome/browser/ui/views/location_bar/page_info_helper.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/ui/views/location_bar/page_info_helper.h"
#include "chrome/browser/search/search.h"
+#include "chrome/browser/ssl/chrome_security_state_model_client.h"
#include "chrome/browser/ui/views/location_bar/location_bar_view.h"
#include "components/omnibox/browser/omnibox_view.h"
#include "content/public/browser/navigation_controller.h"
@@ -36,9 +37,10 @@ void PageInfoHelper::ProcessEvent(const ui::LocatedEvent& event) {
if (!nav_entry)
return;
- SecurityStateModel* security_model = SecurityStateModel::FromWebContents(tab);
- DCHECK(security_model);
+ ChromeSecurityStateModelClient* security_model_client =
+ ChromeSecurityStateModelClient::FromWebContents(tab);
+ DCHECK(security_model_client);
location_bar_->delegate()->ShowWebsiteSettings(
- tab, nav_entry->GetURL(), security_model->GetSecurityInfo());
+ tab, nav_entry->GetURL(), security_model_client->GetSecurityInfo());
}
« no previous file with comments | « chrome/browser/ui/views/frame/web_app_left_header_view_ash.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698