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

Unified Diff: chrome/browser/safe_browsing/ui_manager.cc

Issue 2456383003: Reland of Trigger Dangerous indicator for unsafe subresources (Closed)
Patch Set: initialize is_subframe 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
Index: chrome/browser/safe_browsing/ui_manager.cc
diff --git a/chrome/browser/safe_browsing/ui_manager.cc b/chrome/browser/safe_browsing/ui_manager.cc
index 08bff13331e033003506e206a2baa59b9545ddb3..d18f316d4083514be4febec25bf9ab7789c8fe1f 100644
--- a/chrome/browser/safe_browsing/ui_manager.cc
+++ b/chrome/browser/safe_browsing/ui_manager.cc
@@ -82,6 +82,7 @@ namespace safe_browsing {
SafeBrowsingUIManager::UnsafeResource::UnsafeResource()
: is_subresource(false),
+ is_subframe(false),
threat_type(SB_THREAT_TYPE_SAFE),
threat_source(safe_browsing::ThreatSource::UNKNOWN) {}
@@ -389,6 +390,9 @@ void SafeBrowsingUIManager::AddToWhitelistUrlSet(const UnsafeResource& resource,
} else {
site_list->Insert(whitelisted_url);
}
+
+ // Notify security UI that security state has changed.
+ web_contents->DidChangeVisibleSecurityState();
}
bool SafeBrowsingUIManager::IsWhitelisted(const UnsafeResource& resource) {
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc ('k') | chrome/browser/safe_browsing/ui_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698