Index: chrome/browser/webui/web_ui_factory.cc |
diff --git a/chrome/browser/webui/web_ui_factory.cc b/chrome/browser/webui/web_ui_factory.cc |
index 81c71c2e44864d146de2031b4d2cb9774182f7f3..d3fcd01d575671a6d51213fdfb474dfaa520fd05 100644 |
--- a/chrome/browser/webui/web_ui_factory.cc |
+++ b/chrome/browser/webui/web_ui_factory.cc |
@@ -21,6 +21,7 @@ |
#include "chrome/browser/tab_contents/tab_contents.h" |
#include "chrome/browser/webui/bookmarks_ui.h" |
#include "chrome/browser/webui/bug_report_ui.h" |
+#include "chrome/browser/webui/crashes_ui.h" |
#include "chrome/browser/webui/devtools_ui.h" |
#include "chrome/browser/webui/downloads_ui.h" |
#include "chrome/browser/webui/flags_ui.h" |
@@ -140,6 +141,8 @@ static WebUIFactoryFunction GetWebUIFactoryFunction(Profile* profile, |
return &NewWebUI<BookmarksUI>; |
if (url.host() == chrome::kChromeUIBugReportHost) |
return &NewWebUI<BugReportUI>; |
+ if (url.host() == chrome::kChromeUICrashesHost) |
+ return &NewWebUI<CrashesUI>; |
if (url.host() == chrome::kChromeUIDevToolsHost) |
return &NewWebUI<DevToolsUI>; |
#if defined(OS_WIN) |
@@ -315,6 +318,9 @@ RefCountedMemory* WebUIFactory::GetFaviconResourceBytes(Profile* profile, |
return ConflictsUI::GetFaviconResourceBytes(); |
#endif |
+ if (page_url.host() == chrome::kChromeUICrashesHost) |
+ return CrashesUI::GetFaviconResourceBytes(); |
+ |
if (page_url.host() == chrome::kChromeUIDownloadsHost) |
return DownloadsUI::GetFaviconResourceBytes(); |