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

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

Issue 2454393003: Reland of Trigger Dangerous indicator for unsafe subresources (Closed)
Patch Set: Created 4 years, 2 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/web_contents/web_contents_impl.h ('k') | content/public/browser/web_contents.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 ae0a6ecea2d81617526e2ec85bd4aa8e25c63d73..5c541df6bef1ead870bdafc2c26c9e3bc33e7542 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -1455,6 +1455,20 @@
text_input_manager_.reset(nullptr);
}
+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);
+ }
+ }
+}
+
void WebContentsImpl::Stop() {
for (FrameTreeNode* node : frame_tree_.Nodes())
node->StopLoading();
@@ -3840,20 +3854,6 @@
}
}
-void WebContentsImpl::DidChangeVisibleSSLState() {
- if (delegate_) {
- delegate_->VisibleSSLStateChanged(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);
- }
- }
-}
-
void WebContentsImpl::NotifyBeforeFormRepostWarningShow() {
for (auto& observer : observers_)
observer.BeforeFormRepostWarningShow();
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/public/browser/web_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698