summaryrefslogtreecommitdiffstats
path: root/chrome/browser/webui/web_ui_favicon_source.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/webui/web_ui_favicon_source.cc')
-rw-r--r--chrome/browser/webui/web_ui_favicon_source.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/webui/web_ui_favicon_source.cc b/chrome/browser/webui/web_ui_favicon_source.cc
index e7f0d06..51e6d87 100644
--- a/chrome/browser/webui/web_ui_favicon_source.cc
+++ b/chrome/browser/webui/web_ui_favicon_source.cc
@@ -54,6 +54,12 @@ std::string WebUIFavIconSource::GetMimeType(const std::string&) const {
return "image/png";
}
+bool WebUIFavIconSource::ShouldReplaceExistingSource() const {
+ // Leave the existing DataSource in place, otherwise we'll drop any pending
+ // requests on the floor.
+ return false;
+}
+
void WebUIFavIconSource::OnFavIconDataAvailable(
FaviconService::Handle request_handle,
bool know_favicon,