From 7d0d873cda456ce8c8380ebea00be1627ca114ff Mon Sep 17 00:00:00 2001 From: "gwilson@google.com" Date: Thu, 16 Sep 2010 15:19:40 +0000 Subject: Modifies the toast randomization behavior to be en-US only. R=finnur BUG=none TEST=toast should not have experimental text in non-en-US locales. Review URL: http://codereview.chromium.org/3399010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59647 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/installer/util/google_chrome_distribution.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'chrome') diff --git a/chrome/installer/util/google_chrome_distribution.cc b/chrome/installer/util/google_chrome_distribution.cc index c9f19c3..bb9a5a6 100644 --- a/chrome/installer/util/google_chrome_distribution.cc +++ b/chrome/installer/util/google_chrome_distribution.cc @@ -573,8 +573,11 @@ void GoogleChromeDistribution::LaunchUserExperiment( } // This ends up being processed by ShowTryChromeDialog to show different - // experiments. - int flavor = base::RandInt(0, 3); + // experiments. Only run the experiment in en-US. + int flavor = 0; + std::wstring language; + if (GoogleUpdateSettings::GetLanguage(&language) && (language == L"en-US")) + flavor = base::RandInt(0, 3); std::wstring brand; if (GoogleUpdateSettings::GetBrand(&brand) && (brand == L"CHXX")) { -- cgit v1.1