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

Unified Diff: chrome/browser/tab_contents_factory.cc

Issue 12418: Implement History as HTML and add/change a bunch of stuff to make it easier t... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years 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
« no previous file with comments | « chrome/browser/site_instance.cc ('k') | chrome/browser/tab_contents_type.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « chrome/browser/site_instance.cc ('k') | chrome/browser/tab_contents_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698