Index: chrome/browser/android/chrome_web_contents_delegate_android.cc |
diff --git a/chrome/browser/android/chrome_web_contents_delegate_android.cc b/chrome/browser/android/chrome_web_contents_delegate_android.cc |
index 1fb8fcf3d78f72254703226bbd8016c48bcbaaca..bc00951611de3b79be79309112dde80469d200d8 100644 |
--- a/chrome/browser/android/chrome_web_contents_delegate_android.cc |
+++ b/chrome/browser/android/chrome_web_contents_delegate_android.cc |
@@ -17,6 +17,7 @@ |
#include "chrome/browser/prerender/prerender_manager.h" |
#include "chrome/browser/prerender/prerender_manager_factory.h" |
#include "chrome/browser/profiles/profile.h" |
+#include "chrome/browser/ssl/security_state_model.h" |
#include "chrome/browser/ui/android/bluetooth_chooser_android.h" |
#include "chrome/browser/ui/blocked_content/popup_blocker_tab_helper.h" |
#include "chrome/browser/ui/browser_navigator.h" |
@@ -114,6 +115,17 @@ ChromeWebContentsDelegateAndroid::RunBluetoothChooser( |
new BluetoothChooserAndroid(web_contents, event_handler, origin)); |
} |
+void ChromeWebContentsDelegateAndroid::VisibleSSLStateChanged( |
+ content::WebContents* web_contents) { |
+ DCHECK(web_contents); |
+ // Notify the model that the security state has changed, so that the |
+ // URL bar updates with up-to-date data computed by the model. |
+ SecurityStateModel* model = SecurityStateModel::FromWebContents(web_contents); |
+ DCHECK(model); |
+ model->SecurityStateChanged(); |
+ WebContentsDelegateAndroid::VisibleSSLStateChanged(web_contents); |
+} |
+ |
void ChromeWebContentsDelegateAndroid::CloseContents( |
WebContents* web_contents) { |
// Prevent dangling registrations assigned to closed web contents. |