diff options
Diffstat (limited to 'chrome/browser/dom_ui')
-rw-r--r-- | chrome/browser/dom_ui/dom_ui_factory.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/browser/dom_ui/dom_ui_factory.cc b/chrome/browser/dom_ui/dom_ui_factory.cc index 75786d8..d90ab39 100644 --- a/chrome/browser/dom_ui/dom_ui_factory.cc +++ b/chrome/browser/dom_ui/dom_ui_factory.cc @@ -12,6 +12,9 @@ #include "chrome/browser/dom_ui/new_tab_ui.h" #include "chrome/browser/extensions/extensions_ui.h" #include "chrome/common/url_constants.h" +#ifdef CHROME_PERSONALIZATION +#include "chrome/personalization/personalization.h" +#endif #include "googleurl/src/gurl.h" // Backend for both querying for and creating new DOMUI objects. If you're just @@ -32,6 +35,14 @@ static bool CreateDOMUI(const GURL& url, WebContents* web_contents, return true; } +#ifdef CHROME_PERSONALIZATION + if (Personalization::NeedsDOMUI(url)) { + if (new_ui) + *new_ui = new HtmlDialogUI(web_contents); + return true; + } +#endif + // This will get called a lot to check all URLs, so do a quick check of other // schemes (gears was handled above) to filter out most URLs. if (!url.SchemeIs(chrome::kChromeInternalScheme) && |