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

Unified Diff: chrome/browser/ui/webui/suggestions_internals/suggestions_internals_ui.cc

Issue 835903005: [Favicon] Add new fallback icon rendering flow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding new host chrome://fallback-icon. Created 5 years, 11 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/ui/webui/suggestions_internals/suggestions_internals_ui.cc
diff --git a/chrome/browser/ui/webui/suggestions_internals/suggestions_internals_ui.cc b/chrome/browser/ui/webui/suggestions_internals/suggestions_internals_ui.cc
index d55e8a76da877d3dec44aa397f6c77d0aed60d5e..36d5345dc9c5673f7cf73452c92f06f93382d0be 100644
--- a/chrome/browser/ui/webui/suggestions_internals/suggestions_internals_ui.cc
+++ b/chrome/browser/ui/webui/suggestions_internals/suggestions_internals_ui.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/ui/webui/suggestions_internals/suggestions_internals_ui.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/ui/webui/fallback_icon_source.h"
#include "chrome/browser/ui/webui/favicon_source.h"
#include "chrome/browser/ui/webui/suggestions_internals/suggestions_internals_ui_handler.h"
#include "chrome/common/url_constants.h"
@@ -27,6 +28,7 @@ SuggestionsInternalsUI::SuggestionsInternalsUI(content::WebUI* web_ui)
Profile* profile = Profile::FromWebUI(web_ui);
content::WebUIDataSource::Add(profile, html_source);
+ content::URLDataSource::Add(profile, new FallbackIconSource());
pkotwicz 2015/01/21 19:44:15 I don't think that this class is used for the NTP.
huangs 2015/01/22 01:13:27 Done.
content::URLDataSource::Add(
profile, new FaviconSource(profile, FaviconSource::FAVICON));

Powered by Google App Engine
This is Rietveld 408576698