Index: chrome/browser/ui/browser.cc |
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc |
index 3d4e8d1f7a354fc8d78261608d210149141d0763..60bde92030b95ab9605e83ce53e4dcfd6d74b3bc 100644 |
--- a/chrome/browser/ui/browser.cc |
+++ b/chrome/browser/ui/browser.cc |
@@ -85,6 +85,7 @@ |
#include "chrome/browser/ui/webui/bug_report_ui.h" |
#include "chrome/browser/ui/webui/filebrowse_ui.h" |
#include "chrome/browser/ui/webui/options/content_settings_handler.h" |
+#include "chrome/browser/ui/webui/web_ui_factory.h" |
#include "chrome/browser/ui/window_sizer.h" |
#include "chrome/browser/upgrade_detector.h" |
#include "chrome/browser/web_applications/web_app.h" |
@@ -105,6 +106,7 @@ |
#include "content/browser/tab_contents/navigation_entry.h" |
#include "content/browser/tab_contents/tab_contents.h" |
#include "content/browser/tab_contents/tab_contents_view.h" |
+#include "content/browser/webui/web_ui_register.h" |
#include "content/common/notification_service.h" |
#include "content/common/page_transition_types.h" |
#include "grit/chromium_strings.h" |
@@ -234,6 +236,8 @@ Browser::Browser(Type type, Profile* profile) |
registrar_.Add(this, NotificationType::EXTENSION_READY_FOR_INSTALL, |
NotificationService::AllSources()); |
+ WebUIRegister::RegisterSource(WebUIFactory::GetInstance()); |
+ |
// NOTE: These prefs all need to be explicitly destroyed in the destructor |
// or you'll get a nasty surprise when you run the incognito tests. |
PrefService* local_state = g_browser_process->local_state(); |