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

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: sync. 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..c57e05a65b16377e49a7968e56ca5c1a658469c2 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,9 +7,10 @@
#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/security_state/core/security_state.h"
#include "components/toolbar/toolbar_model.h"
#include "content/public/browser/navigation_entry.h"
#include "ui/gfx/vector_icons_public.h"
@@ -88,12 +89,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);
+ security_state::SecurityInfo security_info;
+ helper->GetSecurityInfo(&security_info);
chrome::ShowWebsiteSettings(browser_view_->browser(), tab,
nav_entry->GetVirtualURL(), security_info);
}
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.cc ('k') | chrome/browser/ui/views/location_bar/location_bar_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698