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

Unified Diff: chrome/browser/ui/views/frame/web_app_left_header_view_ash.cc

Issue 2448943002: Refactor SecurityStateModel/Clients for simplicity and reusability. (Closed)
Patch Set: update comments. Created 4 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
Index: chrome/browser/ui/views/frame/web_app_left_header_view_ash.cc
diff --git a/chrome/browser/ui/views/frame/web_app_left_header_view_ash.cc b/chrome/browser/ui/views/frame/web_app_left_header_view_ash.cc
index 3623a8a59059ab1ef97fb208d6117dbf908c4fda..0209003686ce9539c434f1359a275863f41616f4 100644
--- a/chrome/browser/ui/views/frame/web_app_left_header_view_ash.cc
+++ b/chrome/browser/ui/views/frame/web_app_left_header_view_ash.cc
@@ -7,7 +7,7 @@
#include "ash/common/frame/caption_buttons/frame_caption_button.h"
#include "ash/common/frame/caption_buttons/frame_caption_button_container_view.h"
#include "chrome/app/chrome_command_ids.h"
-#include "chrome/browser/ssl/chrome_security_state_model_client.h"
+#include "chrome/browser/ssl/security_state_tab_helper.h"
#include "chrome/browser/ui/browser_commands.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "components/toolbar/toolbar_model.h"
@@ -88,12 +88,11 @@ void WebAppLeftHeaderView::ShowWebsiteSettings() const {
if (!nav_entry)
return;
- ChromeSecurityStateModelClient* security_model_client =
- ChromeSecurityStateModelClient::FromWebContents(tab);
- DCHECK(security_model_client);
+ SecurityStateTabHelper* helper = SecurityStateTabHelper::FromWebContents(tab);
+ DCHECK(helper);
security_state::SecurityStateModel::SecurityInfo security_info;
- security_model_client->GetSecurityInfo(&security_info);
+ helper->GetSecurityInfo(&security_info);
chrome::ShowWebsiteSettings(browser_view_->browser(), tab,
nav_entry->GetVirtualURL(), security_info);
}

Powered by Google App Engine
This is Rietveld 408576698