Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5628)

Unified Diff: chrome/browser/dom_ui/dom_ui_theme_source.cc

Issue 525013: Suppress promotional line and image on non-English builds of Chrome.... (Closed) Base URL: svn://chrome-svn/chrome/branches/249/src/
Patch Set: '' Created 10 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/dom_ui/new_tab_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/dom_ui/dom_ui_theme_source.cc
===================================================================
--- chrome/browser/dom_ui/dom_ui_theme_source.cc (revision 35476)
+++ chrome/browser/dom_ui/dom_ui_theme_source.cc (working copy)
@@ -10,6 +10,7 @@
#include "base/message_loop.h"
#include "base/string_util.h"
#include "base/time.h"
+#include "chrome/browser/browser_process.h"
#include "chrome/browser/browser_theme_provider.h"
#include "chrome/browser/profile.h"
#include "chrome/browser/theme_resources_util.h"
@@ -188,8 +189,11 @@
// No extensions available on Mac yet.
subst2.push_back("none"); // $$8: display of lower right promo image
#else
- // Extensions available on both Linux and Windows.
- if (profile_->GetPrefs()->GetInteger(prefs::kNTPPromoImageRemaining) > 0) {
+ // Extensions available on both Linux and Windows, but for now only in
+ // en locales.
+ if ((StartsWithASCII(g_browser_process->GetApplicationLocale(),
+ "en", false)) && // false = compare not case-sensitive.
+ (profile_->GetPrefs()->GetInteger(prefs::kNTPPromoImageRemaining) > 0)) {
subst2.push_back("block"); // $$8
} else {
subst2.push_back("none"); // $$8
« no previous file with comments | « no previous file | chrome/browser/dom_ui/new_tab_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698