diff options
author | gwilson@google.com <gwilson@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-16 15:19:40 +0000 |
---|---|---|
committer | gwilson@google.com <gwilson@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-16 15:19:40 +0000 |
commit | 7d0d873cda456ce8c8380ebea00be1627ca114ff (patch) | |
tree | 50047ded8273ebbfa1f89d33eb633c32ff2d65f1 /chrome/installer | |
parent | 440e4928ac89d844f79bb4377ced0a2d964c5d0a (diff) | |
download | chromium_src-7d0d873cda456ce8c8380ebea00be1627ca114ff.zip chromium_src-7d0d873cda456ce8c8380ebea00be1627ca114ff.tar.gz chromium_src-7d0d873cda456ce8c8380ebea00be1627ca114ff.tar.bz2 |
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
Diffstat (limited to 'chrome/installer')
-rw-r--r-- | chrome/installer/util/google_chrome_distribution.cc | 7 |
1 files changed, 5 insertions, 2 deletions
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")) { |