summaryrefslogtreecommitdiffstats
path: root/chrome/browser/dom_ui/new_tab_ui.cc
diff options
context:
space:
mode:
authormunjal@chromium.org <munjal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-05 23:20:29 +0000
committermunjal@chromium.org <munjal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-05 23:20:29 +0000
commitbb95ef9e93adfba1f5ab46de4ae9d523f12ca31c (patch)
tree5916529ffa051b8b17bb007710ea23b0ab1b80fb /chrome/browser/dom_ui/new_tab_ui.cc
parent80dc5f272b75cddfbb43dc78653cd8ec6a858c54 (diff)
downloadchromium_src-bb95ef9e93adfba1f5ab46de4ae9d523f12ca31c.zip
chromium_src-bb95ef9e93adfba1f5ab46de4ae9d523f12ca31c.tar.gz
chromium_src-bb95ef9e93adfba1f5ab46de4ae9d523f12ca31c.tar.bz2
Add a command-line disable-p13n and use that to disable
p13n related features. Review URL: http://codereview.chromium.org/39029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11050 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/dom_ui/new_tab_ui.cc')
-rw-r--r--chrome/browser/dom_ui/new_tab_ui.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/dom_ui/new_tab_ui.cc b/chrome/browser/dom_ui/new_tab_ui.cc
index 79ce95a..923f545 100644
--- a/chrome/browser/dom_ui/new_tab_ui.cc
+++ b/chrome/browser/dom_ui/new_tab_ui.cc
@@ -828,7 +828,9 @@ void NewTabUI::Init() {
AddMessageHandler(new HistoryHandler(this));
AddMessageHandler(new MetricsHandler(this));
#ifdef CHROME_PERSONALIZATION
- AddMessageHandler(Personalization::CreateNewTabPageHandler(this));
+ if (!Personalization::IsP13NDisabled()) {
+ AddMessageHandler(Personalization::CreateNewTabPageHandler(this));
+ }
#endif
NewTabHTMLSource* html_source = new NewTabHTMLSource();