| Index: chrome/browser/ssl/chrome_security_state_model_client.cc
|
| diff --git a/chrome/browser/ssl/chrome_security_state_model_client.cc b/chrome/browser/ssl/chrome_security_state_model_client.cc
|
| index b95f8865faac7ba590cf4e10ee9e2c7464472cfe..c848edbf987929f60944decaaaef81b594b41207 100644
|
| --- a/chrome/browser/ssl/chrome_security_state_model_client.cc
|
| +++ b/chrome/browser/ssl/chrome_security_state_model_client.cc
|
| @@ -16,12 +16,22 @@
|
| #include "content/public/common/ssl_status.h"
|
| #include "net/cert/x509_certificate.h"
|
|
|
| +DEFINE_WEB_CONTENTS_USER_DATA_KEY(ChromeSecurityStateModelClient);
|
| +
|
| ChromeSecurityStateModelClient::ChromeSecurityStateModelClient(
|
| content::WebContents* web_contents)
|
| - : web_contents_(web_contents) {}
|
| + : web_contents_(web_contents),
|
| + security_state_model_(new SecurityStateModel(web_contents)) {
|
| + security_state_model_->SetClient(this);
|
| +}
|
|
|
| ChromeSecurityStateModelClient::~ChromeSecurityStateModelClient() {}
|
|
|
| +const SecurityStateModel::SecurityInfo&
|
| +ChromeSecurityStateModelClient::GetSecurityInfo() const {
|
| + return security_state_model_->GetSecurityInfo();
|
| +}
|
| +
|
| bool ChromeSecurityStateModelClient::RetrieveCert(
|
| scoped_refptr<net::X509Certificate>* cert) {
|
| content::NavigationEntry* entry =
|
|
|