Index: chrome/browser/dom_ui/dom_ui_factory.cc |
diff --git a/chrome/browser/dom_ui/dom_ui_factory.cc b/chrome/browser/dom_ui/dom_ui_factory.cc |
index c6fb306363ba2aecabe4f6f8a937dda59d5c2de5..01148d0a08ff473a020217ab2221dc2984529992 100644 |
--- a/chrome/browser/dom_ui/dom_ui_factory.cc |
+++ b/chrome/browser/dom_ui/dom_ui_factory.cc |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2009 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2010 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
@@ -14,6 +14,7 @@ |
#include "chrome/browser/dom_ui/mediaplayer_ui.h" |
#include "chrome/browser/dom_ui/net_internals_ui.h" |
#include "chrome/browser/dom_ui/new_tab_ui.h" |
+#include "chrome/browser/dom_ui/plugins_ui.h" |
#include "chrome/browser/dom_ui/print_ui.h" |
#include "chrome/browser/extensions/extension_dom_ui.h" |
#include "chrome/browser/extensions/extensions_service.h" |
@@ -99,6 +100,8 @@ static DOMUIFactoryFunction GetDOMUIFactoryFunction(const GURL& url) { |
return &NewDOMUI<HistoryUI>; |
if (url.host() == chrome::kChromeUINetInternalsHost) |
return &NewDOMUI<NetInternalsUI>; |
+ if (url.host() == chrome::kChromeUIPluginsHost) |
+ return &NewDOMUI<PluginsUI>; |
#if defined(OS_CHROMEOS) |
if (url.host() == chrome::kChromeUIFileBrowseHost) |
@@ -160,5 +163,8 @@ RefCountedMemory* DOMUIFactory::GetFaviconResourceBytes(Profile* profile, |
if (page_url.host() == chrome::kChromeUIHistoryHost) |
return HistoryUI::GetFaviconResourceBytes(); |
+ if (page_url.host() == chrome::kChromeUIPluginsHost) |
+ return PluginsUI::GetFaviconResourceBytes(); |
+ |
return NULL; |
} |