summaryrefslogtreecommitdiffstats
path: root/chrome/browser/dom_ui/new_tab_ui.cc
diff options
context:
space:
mode:
authorglen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-05 21:35:30 +0000
committerglen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-05 21:35:30 +0000
commit99deea6d3b0cf9c93351f247c5b62d3c8dea47da (patch)
tree7ecc4902afb5f5466558ef68d9915fb607fb2e7f /chrome/browser/dom_ui/new_tab_ui.cc
parent190be391c2c420310d95eda78b5fce0e00d069bf (diff)
downloadchromium_src-99deea6d3b0cf9c93351f247c5b62d3c8dea47da.zip
chromium_src-99deea6d3b0cf9c93351f247c5b62d3c8dea47da.tar.gz
chromium_src-99deea6d3b0cf9c93351f247c5b62d3c8dea47da.tar.bz2
More theme bits for the NTP and window frame.
BUG=12768,13352 TEST=Verify that a theme with attribution works on the NTP and a theme with an overlay shows up Review URL: http://codereview.chromium.org/119227 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17773 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.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome/browser/dom_ui/new_tab_ui.cc b/chrome/browser/dom_ui/new_tab_ui.cc
index 24a9153..54731a2 100644
--- a/chrome/browser/dom_ui/new_tab_ui.cc
+++ b/chrome/browser/dom_ui/new_tab_ui.cc
@@ -252,6 +252,9 @@ void NewTabHTMLSource::StartDataRequest(const std::string& path,
localized_strings.SetString(L"bookmarkbarattached",
profile_->GetPrefs()->GetBoolean(prefs::kShowBookmarkBar) ?
"true" : "false");
+ localized_strings.SetString(L"hasattribution",
+ profile_->GetThemeProvider()->HasCustomImage(IDR_THEME_NTP_ATTRIBUTION) ?
+ "true" : "false");
localized_strings.SetString(L"title", title);
localized_strings.SetString(L"mostvisited", most_visited);
localized_strings.SetString(L"searches",
@@ -285,6 +288,8 @@ void NewTabHTMLSource::StartDataRequest(const std::string& path,
l10n_util::GetString(IDS_NEW_TAB_RECENTLY_CLOSED_WINDOW_SINGLE));
localized_strings.SetString(L"closedwindowmultiple",
l10n_util::GetString(IDS_NEW_TAB_RECENTLY_CLOSED_WINDOW_MULTIPLE));
+ localized_strings.SetString(L"attributionintro",
+ l10n_util::GetString(IDS_NEW_TAB_ATTRIBUTION_INTRO));
SetFontAndTextDirection(&localized_strings);
@@ -714,7 +719,7 @@ void MostVisitedHandler::OnSegmentUsageAvailable(
std::string pinned_url;
std::string pinned_title;
- if (MostVisitedHandler::GetPinnedURLAtIndex(j, &pinned_url,
+ if (MostVisitedHandler::GetPinnedURLAtIndex(j, &pinned_url,
&pinned_title)) {
url = GURL(pinned_url);
title = UTF8ToUTF16(pinned_title);