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

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

Issue 2562503002: Generalize WebContentsObserver::SecurityStyleChanged (Closed)
Patch Set: Fix nit. 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 fa0b7da4b035f8a8e41789f1957fe34e06ccb543..4a1d2fb83c227dde49a3513ebb6c714b2a3067d5 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -1471,14 +1471,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);
- }
+ for (auto& observer : observers_)
+ observer.DidChangeVisibleSecurityState();
}
}
« no previous file with comments | « content/browser/devtools/protocol/security_handler.cc ('k') | content/public/browser/web_contents_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698