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

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

Issue 2562503002: Generalize WebContentsObserver::SecurityStyleChanged (Closed)
Patch Set: Formatting and fixes. Created 4 years 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 1e5e8b7a7a00631b333c9433eb34d1f1313f9f0c..484b1715eb4d300b38052621c08e30c396131b38 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -1464,13 +1464,8 @@ void WebContentsImpl::AttachToOuterWebContentsFrame(
void WebContentsImpl::DidChangeVisibleSecurityState() {
if (delegate_) {
delegate_->VisibleSecurityStateChanged(this);
-
- SecurityStyleExplanations security_style_explanations;
- blink::WebSecurityStyle security_style =
- delegate_->GetSecurityStyle(this, &security_style_explanations);
for (auto& observer : observers_) {
- observer.SecurityStyleChanged(security_style,
- security_style_explanations);
+ observer.DidChangeVisibleSecurityState();
}
}
}

Powered by Google App Engine
This is Rietveld 408576698