diff options
Diffstat (limited to 'chrome/browser/dom_ui')
-rw-r--r-- | chrome/browser/dom_ui/dom_ui_contents.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/dom_ui/dom_ui_contents.cc b/chrome/browser/dom_ui/dom_ui_contents.cc index 68b05d9..6fd749f 100644 --- a/chrome/browser/dom_ui/dom_ui_contents.cc +++ b/chrome/browser/dom_ui/dom_ui_contents.cc @@ -233,12 +233,13 @@ const std::string DOMUIContents::GetScheme() { } DOMUI* DOMUIContents::GetDOMUIForURL(const GURL &url) { -#if defined(OS_WIN) -// TODO(port): include this once these are converted to HTML if (url.host() == NewTabUI::GetBaseURL().host() || url.SchemeIs(chrome::kChromeInternalScheme)) { return new NewTabUI(this); - } else if (url.host() == HistoryUI::GetBaseURL().host()) { + } +#if defined(OS_WIN) +// TODO(port): include this once these are converted to HTML + if (url.host() == HistoryUI::GetBaseURL().host()) { return new HistoryUI(this); } else if (url.host() == DownloadsUI::GetBaseURL().host()) { return new DownloadsUI(this); |