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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 1162663004: Introduce browser-side plumbing for sending the lock icon status to DevTools. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « chrome/browser/ui/browser_browsertest.cc ('k') | content/public/browser/web_contents_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index ee5afdf45da10fe739c4b70b186c9ec9400f8117..b1a0d36b66a4cac24190b1da5d0d3c086a475d5b 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -89,6 +89,7 @@
#include "content/public/common/content_switches.h"
#include "content/public/common/page_zoom.h"
#include "content/public/common/result_codes.h"
+#include "content/public/common/security_style.h"
#include "content/public/common/url_constants.h"
#include "content/public/common/url_utils.h"
#include "content/public/common/web_preferences.h"
@@ -3211,8 +3212,13 @@ void WebContentsImpl::OnFirstVisuallyNonEmptyPaint() {
}
void WebContentsImpl::DidChangeVisibleSSLState() {
- if (delegate_)
+ if (delegate_) {
delegate_->VisibleSSLStateChanged(this);
+
+ content::SecurityStyle security_style = delegate_->GetSecurityStyle(this);
+ FOR_EACH_OBSERVER(WebContentsObserver, observers_,
+ SecurityStyleChanged(security_style));
+ }
}
void WebContentsImpl::NotifyBeforeFormRepostWarningShow() {
« no previous file with comments | « chrome/browser/ui/browser_browsertest.cc ('k') | content/public/browser/web_contents_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698