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

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: add CONTENT_EXPORT 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 | « content/browser/devtools/protocol/security_handler.cc ('k') | content/content_browser.gypi » ('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 1e31837165acdcb7a8e8e86e3b7882d46ef6e8b2..d34bd2c58c251e12149961104b7ec52a6b650786 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -83,6 +83,7 @@
#include "content/public/browser/render_widget_host_iterator.h"
#include "content/public/browser/resource_request_details.h"
#include "content/public/browser/screen_orientation_dispatcher_host.h"
+#include "content/public/browser/security_style_explanations.h"
#include "content/public/browser/storage_partition.h"
#include "content/public/browser/user_metrics.h"
#include "content/public/browser/web_contents_delegate.h"
@@ -3229,9 +3230,12 @@ void WebContentsImpl::DidChangeVisibleSSLState() {
if (delegate_) {
delegate_->VisibleSSLStateChanged(this);
- content::SecurityStyle security_style = delegate_->GetSecurityStyle(this);
- FOR_EACH_OBSERVER(WebContentsObserver, observers_,
- SecurityStyleChanged(security_style));
+ SecurityStyleExplanations security_style_explanations;
+ SecurityStyle security_style =
+ delegate_->GetSecurityStyle(this, &security_style_explanations);
+ FOR_EACH_OBSERVER(
+ WebContentsObserver, observers_,
+ SecurityStyleChanged(security_style, security_style_explanations));
}
}
« no previous file with comments | « content/browser/devtools/protocol/security_handler.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698