diff options
author | tim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-07 00:49:05 +0000 |
---|---|---|
committer | tim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-07 00:49:05 +0000 |
commit | c7be8a19dbb87567d4fa993037f450f0d08b099c (patch) | |
tree | 9cf3dda4e7404f9b584860410635f20662ee4739 /chrome/browser | |
parent | 83f6e08f4c56ef411ad1da5f3bfd4711ec94b052 (diff) | |
download | chromium_src-c7be8a19dbb87567d4fa993037f450f0d08b099c.zip chromium_src-c7be8a19dbb87567d4fa993037f450f0d08b099c.tar.gz chromium_src-c7be8a19dbb87567d4fa993037f450f0d08b099c.tar.bz2 |
Support p13n HTML dialogs.
Review URL: http://codereview.chromium.org/62084
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13215 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-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) && |