| 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
|
|
|