summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/webui
diff options
context:
space:
mode:
authorcsilv@chromium.org <csilv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-18 18:03:13 +0000
committercsilv@chromium.org <csilv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-18 18:03:13 +0000
commit0fcf20efb2dca7335b39588da29da842d5f638e9 (patch)
tree64ba58376312614247a9ac02886b5519f64236c5 /chrome/browser/ui/webui
parent5c5b7389a8265c645f2a5c07e256b19178dafc7b (diff)
downloadchromium_src-0fcf20efb2dca7335b39588da29da842d5f638e9.zip
chromium_src-0fcf20efb2dca7335b39588da29da842d5f638e9.tar.gz
chromium_src-0fcf20efb2dca7335b39588da29da842d5f638e9.tar.bz2
[ntp4] Eliminate a javascript warning from appearing in the console.
The warning is the following: i18n-values: Missing value for "themegravity" BUG=none Review URL: http://codereview.chromium.org/7627004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97329 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/webui')
-rw-r--r--chrome/browser/ui/webui/ntp/ntp_resource_cache.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc b/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
index 1d41a8b..f099240 100644
--- a/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
+++ b/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
@@ -387,8 +387,8 @@ void NTPResourceCache::CreateNewTabHTML() {
int alignment;
ui::ThemeProvider* tp = ThemeServiceFactory::GetForProfile(profile_);
tp->GetDisplayProperty(ThemeService::NTP_BACKGROUND_ALIGNMENT, &alignment);
- if (alignment & ThemeService::ALIGN_RIGHT)
- localized_strings.SetString("themegravity", "right");
+ localized_strings.SetString("themegravity",
+ (alignment & ThemeService::ALIGN_RIGHT) ? "right" : "");
// Pass the shown_sections pref early so that we can prevent flicker.
const int shown_sections = ShownSectionsHandler::GetShownSections(