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

Unified Diff: chrome/browser/android/chrome_web_contents_delegate_android.cc

Issue 1314843007: Refactor connection_security into SecurityStateModel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: create SecurityStateModel for chromeos login webview Created 5 years, 3 months 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/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.

Powered by Google App Engine
This is Rietveld 408576698