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

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

Issue 1181293003: Expand SecurityStyleChanged interfaces to include explanations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments, style tweaks 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
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 9647bc77e03b3bfc5019cc5d4f7f66ba0a4f1021..4412a00e53e198a04c25ff16802e5737df417d7e 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -3228,9 +3228,12 @@ void WebContentsImpl::DidChangeVisibleSSLState() {
if (delegate_) {
delegate_->VisibleSSLStateChanged(this);
- content::SecurityStyle security_style = delegate_->GetSecurityStyle(this);
- FOR_EACH_OBSERVER(WebContentsObserver, observers_,
- SecurityStyleChanged(security_style));
+ SecurityStyleExplanation security_style_explanation;
+ SecurityStyle security_style =
+ delegate_->GetSecurityStyle(this, &security_style_explanation);
+ FOR_EACH_OBSERVER(
+ WebContentsObserver, observers_,
+ SecurityStyleChanged(security_style, security_style_explanation));
}
}

Powered by Google App Engine
This is Rietveld 408576698