Index: chrome/browser/ui/browser.cc |
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc |
index 46bba5782522812e6f11d6a03d064eabafddade4..bbb37ff56f0fc551a406d65870a410df7911929f 100644 |
--- a/chrome/browser/ui/browser.cc |
+++ b/chrome/browser/ui/browser.cc |
@@ -79,7 +79,7 @@ |
#include "chrome/browser/sessions/session_service_factory.h" |
#include "chrome/browser/sessions/session_tab_helper.h" |
#include "chrome/browser/sessions/tab_restore_service_factory.h" |
-#include "chrome/browser/ssl/chrome_security_state_model_client.h" |
+#include "chrome/browser/ssl/security_state_tab_helper.h" |
#include "chrome/browser/sync/profile_sync_service_factory.h" |
#include "chrome/browser/sync/sync_ui_util.h" |
#include "chrome/browser/tab_contents/retargeting_details.h" |
@@ -167,7 +167,8 @@ |
#include "components/history/core/browser/top_sites.h" |
#include "components/prefs/pref_service.h" |
#include "components/search/search.h" |
-#include "components/security_state/security_state_model.h" |
+#include "components/security_state/content/content_utils.h" |
+#include "components/security_state/core/security_state.h" |
#include "components/sessions/core/session_types.h" |
#include "components/sessions/core/tab_restore_service.h" |
#include "components/startup_metric_utils/browser/startup_metric_utils.h" |
@@ -243,7 +244,6 @@ using content::RenderWidgetHostView; |
using content::SiteInstance; |
using content::WebContents; |
using extensions::Extension; |
-using security_state::SecurityStateModel; |
using ui::WebDialogDelegate; |
using web_modal::WebContentsModalDialogManager; |
using blink::WebWindowFeatures; |
@@ -1280,13 +1280,13 @@ bool Browser::CanDragEnter(content::WebContents* source, |
blink::WebSecurityStyle Browser::GetSecurityStyle( |
WebContents* web_contents, |
content::SecurityStyleExplanations* security_style_explanations) { |
- ChromeSecurityStateModelClient* model_client = |
- ChromeSecurityStateModelClient::FromWebContents(web_contents); |
- DCHECK(model_client); |
- security_state::SecurityStateModel::SecurityInfo security_info; |
- model_client->GetSecurityInfo(&security_info); |
- return model_client->GetSecurityStyle(security_info, |
- security_style_explanations); |
+ SecurityStateTabHelper* helper = |
+ SecurityStateTabHelper::FromWebContents(web_contents); |
+ DCHECK(helper); |
+ security_state::SecurityInfo security_info; |
+ helper->GetSecurityInfo(&security_info); |
+ return security_state::GetSecurityStyle(security_info, |
+ security_style_explanations); |
} |
void Browser::ShowCertificateViewerInDevTools( |
@@ -1432,9 +1432,9 @@ void Browser::VisibleSecurityStateChanged(WebContents* source) { |
if (tab_strip_model_->GetActiveWebContents() == source) |
UpdateToolbar(false); |
- ChromeSecurityStateModelClient* security_model = |
- ChromeSecurityStateModelClient::FromWebContents(source); |
- security_model->VisibleSecurityStateChanged(); |
+ SecurityStateTabHelper* helper = |
+ SecurityStateTabHelper::FromWebContents(source); |
+ helper->VisibleSecurityStateChanged(); |
} |
void Browser::AddNewContents(WebContents* source, |