diff options
author | tim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-30 22:52:44 +0000 |
---|---|---|
committer | tim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-30 22:52:44 +0000 |
commit | 193c1d5f7eefb9a58cea348fc2fc7370ccbf89c9 (patch) | |
tree | ae61fd2c75c6d8ea372b322cc406c6cf7a474f05 /chrome/browser/dom_ui/new_tab_ui.cc | |
parent | 3f28d2b87361896633174a088ccdf02720c1f8f8 (diff) | |
download | chromium_src-193c1d5f7eefb9a58cea348fc2fc7370ccbf89c9.zip chromium_src-193c1d5f7eefb9a58cea348fc2fc7370ccbf89c9.tar.gz chromium_src-193c1d5f7eefb9a58cea348fc2fc7370ccbf89c9.tar.bz2 |
NTP twiddling for p13n
Review URL: http://codereview.chromium.org/19420
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8991 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.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/browser/dom_ui/new_tab_ui.cc b/chrome/browser/dom_ui/new_tab_ui.cc index 29781d3..b136bc7 100644 --- a/chrome/browser/dom_ui/new_tab_ui.cc +++ b/chrome/browser/dom_ui/new_tab_ui.cc @@ -27,6 +27,9 @@ #include "chrome/common/pref_names.h" #include "chrome/common/pref_service.h" #include "chrome/common/resource_bundle.h" +#ifdef CHROME_PERSONALIZATION +#include "chrome/personalization/personalization.h" +#endif #include "chromium_strings.h" #include "generated_resources.h" @@ -206,6 +209,10 @@ void NewTabHTMLSource::StartDataRequest(const std::string& path, first_view_ ? L"true" : std::wstring()); first_view_ = false; +#ifdef CHROME_PERSONALIZATION + localized_strings.SetString(L"p13nsrc", Personalization::GetNewTabSource()); +#endif + static const StringPiece new_tab_html( ResourceBundle::GetSharedInstance().GetRawDataResource( IDR_NEW_TAB_HTML)); @@ -816,6 +823,9 @@ void NewTabUIContents::AttachMessageHandlers() { AddMessageHandler(new RecentlyClosedTabsHandler(this)); AddMessageHandler(new HistoryHandler(this)); AddMessageHandler(new MetricsHandler(this)); +#ifdef CHROME_PERSONALIZATION + Personalization::AttachNewTabHandler(this); +#endif NewTabHTMLSource* html_source = new NewTabHTMLSource(); |