| Index: chrome/browser/tab_contents_factory.cc
|
| ===================================================================
|
| --- chrome/browser/tab_contents_factory.cc (revision 6238)
|
| +++ chrome/browser/tab_contents_factory.cc (working copy)
|
| @@ -7,6 +7,7 @@
|
| #include "chrome/browser/about_internets_status_view.h"
|
| #include "chrome/browser/browser_about_handler.h"
|
| #include "chrome/browser/browser_url_handler.h"
|
| +#include "chrome/browser/dom_ui/dom_ui_contents.h"
|
| #include "chrome/browser/dom_ui/html_dialog_contents.h"
|
| #include "chrome/browser/dom_ui/new_tab_ui.h"
|
| #include "chrome/browser/ipc_status_view.h"
|
| @@ -75,6 +76,9 @@
|
| case TAB_CONTENTS_DEBUGGER:
|
| contents = new DebuggerContents(profile, instance);
|
| break;
|
| + case TAB_CONTENTS_DOM_UI:
|
| + contents = new DOMUIContents(profile, instance, NULL);
|
| + break;
|
| default:
|
| if (g_extra_types) {
|
| TabContentsFactoryMap::const_iterator it = g_extra_types->find(type);
|
| @@ -119,6 +123,9 @@
|
| if (DebuggerContents::IsDebuggerUrl(*url))
|
| return TAB_CONTENTS_DEBUGGER;
|
|
|
| + if (url->SchemeIs(DOMUIContents::GetScheme().c_str()))
|
| + return TAB_CONTENTS_DOM_UI;
|
| +
|
| if (url->SchemeIs("view-source")) {
|
| // Load the inner URL instead, but render it using a ViewSourceContents.
|
| *url = GURL(url->path());
|
|
|