diff options
Diffstat (limited to 'chrome/browser/dom_ui/dom_ui_factory.cc')
-rw-r--r-- | chrome/browser/dom_ui/dom_ui_factory.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/dom_ui/dom_ui_factory.cc b/chrome/browser/dom_ui/dom_ui_factory.cc index 8827c02..8ff6d03 100644 --- a/chrome/browser/dom_ui/dom_ui_factory.cc +++ b/chrome/browser/dom_ui/dom_ui_factory.cc @@ -9,6 +9,7 @@ #include "chrome/browser/dom_ui/history_ui.h" #include "chrome/browser/dom_ui/html_dialog_ui.h" #include "chrome/browser/dom_ui/new_tab_ui.h" +#include "chrome/browser/dom_ui/print_ui.h" #include "chrome/browser/extensions/extensions_ui.h" #include "chrome/browser/extensions/extension_dom_ui.h" #include "chrome/common/url_constants.h" @@ -41,6 +42,12 @@ static bool CreateDOMUI(const GURL& url, TabContents* tab_contents, return true; } + if (url.SchemeIs(chrome::kPrintScheme)) { + if (new_ui) + *new_ui = new PrintUI(tab_contents); + return true; + } + #ifdef CHROME_PERSONALIZATION if (Personalization::NeedsDOMUI(url)) { if (new_ui) |