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

Unified Diff: chrome/browser/dom_ui/dom_ui_contents.cc

Issue 20110: Initial checkin of the HTML downloads UI. It's not yet complete (lacking... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 months 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
Index: chrome/browser/dom_ui/dom_ui_contents.cc
===================================================================
--- chrome/browser/dom_ui/dom_ui_contents.cc (revision 9684)
+++ chrome/browser/dom_ui/dom_ui_contents.cc (working copy)
@@ -6,6 +6,7 @@
#include "chrome/browser/dom_ui/dom_ui.h"
#include "chrome/browser/dom_ui/history_ui.h"
+#include "chrome/browser/dom_ui/downloads_ui.h"
#include "chrome/browser/renderer_host/render_view_host.h"
#include "chrome/browser/tab_contents/navigation_entry.h"
#include "chrome/common/resource_bundle.h"
@@ -192,7 +193,9 @@
DOMUI* DOMUIContents::GetDOMUIForURL(const GURL &url) {
if (url.host() == HistoryUI::GetBaseURL().host())
return new HistoryUI(this);
-
+ else if (url.host() == DownloadsUI::GetBaseURL().host())
+ return new DownloadsUI(this);
+
return NULL;
}

Powered by Google App Engine
This is Rietveld 408576698