| Index: chrome/browser/ssl/security_state_model_android.cc
|
| diff --git a/chrome/browser/ssl/security_state_model_android.cc b/chrome/browser/ssl/security_state_model_android.cc
|
| index 06673f14c2741946276faf43cd80265955319ff6..5f1c1786aad008109491a0c18887d3960ca467ed 100644
|
| --- a/chrome/browser/ssl/security_state_model_android.cc
|
| +++ b/chrome/browser/ssl/security_state_model_android.cc
|
| @@ -5,7 +5,8 @@
|
| #include "chrome/browser/ssl/security_state_model_android.h"
|
|
|
| #include "base/logging.h"
|
| -#include "chrome/browser/ssl/chrome_security_state_model_client.h"
|
| +#include "chrome/browser/ssl/security_state_tab_helper.h"
|
| +#include "components/security_state/core/security_state.h"
|
| #include "content/public/browser/web_contents.h"
|
| #include "jni/SecurityStateModel_jni.h"
|
|
|
| @@ -24,11 +25,11 @@ jint GetSecurityLevelForWebContents(
|
| content::WebContents* web_contents =
|
| content::WebContents::FromJavaWebContents(jweb_contents);
|
| DCHECK(web_contents);
|
| - ChromeSecurityStateModelClient::CreateForWebContents(web_contents);
|
| - ChromeSecurityStateModelClient* model_client =
|
| - ChromeSecurityStateModelClient::FromWebContents(web_contents);
|
| - DCHECK(model_client);
|
| - security_state::SecurityStateModel::SecurityInfo security_info;
|
| - model_client->GetSecurityInfo(&security_info);
|
| + SecurityStateTabHelper::CreateForWebContents(web_contents);
|
| + SecurityStateTabHelper* helper =
|
| + SecurityStateTabHelper::FromWebContents(web_contents);
|
| + DCHECK(helper);
|
| + security_state::SecurityInfo security_info;
|
| + helper->GetSecurityInfo(&security_info);
|
| return security_info.security_level;
|
| }
|
|
|