Index: components/favicon/core/favicon_driver_impl.cc |
diff --git a/components/favicon/core/favicon_driver_impl.cc b/components/favicon/core/favicon_driver_impl.cc |
index 260ec42d23d8af8565b70255d2b5dc0abedbd5a1..4de176ccab579d3fb4520448d3652645890e3625 100644 |
--- a/components/favicon/core/favicon_driver_impl.cc |
+++ b/components/favicon/core/favicon_driver_impl.cc |
@@ -101,6 +101,9 @@ bool FaviconDriverImpl::IsBookmarked(const GURL& url) { |
void FaviconDriverImpl::OnFaviconAvailable(const gfx::Image& image, |
const GURL& icon_url, |
bool is_active_favicon) { |
+ if (!ShouldSendFaviconAvailableNotifications()) |
+ return; |
+ |
if (is_active_favicon) { |
bool icon_url_changed = GetActiveFaviconURL() != icon_url; |
// No matter what happens, we need to mark the favicon as being set. |