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

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

Issue 2444383007: Trigger Dangerous indicator for unsafe subresources (Closed)
Patch Set: add missing #include 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..6cdc91586cff1ea2f834bfce8828ab1337c72777 100644
--- a/chrome/browser/safe_browsing/ui_manager.cc
+++ b/chrome/browser/safe_browsing/ui_manager.cc
@@ -389,6 +389,9 @@ void SafeBrowsingUIManager::AddToWhitelistUrlSet(const UnsafeResource& resource,
} else {
site_list->Insert(whitelisted_url);
}
+
+ // Notify security UI that security state has changed.
+ web_contents->DidChangeVisibleSecurityState();
Nathan Parker 2016/10/27 18:49:32 Could this go in the "{Insert(whitelisted_url)..}"
estark 2016/10/27 20:06:09 I could be convinced either way, but I lean slight
}
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