summaryrefslogtreecommitdiffstats
path: root/chrome/installer/util
diff options
context:
space:
mode:
authorfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-16 21:21:24 +0000
committerfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-16 21:21:24 +0000
commit706d96bd103cd0850f3eb594b75d4823a08240c9 (patch)
tree31c2cd7f4aef880f8eefd43eb1b99724f568f1d9 /chrome/installer/util
parentabf953b2d97497807592e49d4b0997f3c6acf10e (diff)
downloadchromium_src-706d96bd103cd0850f3eb594b75d4823a08240c9.zip
chromium_src-706d96bd103cd0850f3eb594b75d4823a08240c9.tar.gz
chromium_src-706d96bd103cd0850f3eb594b75d4823a08240c9.tar.bz2
Add Japanese inactive user toast experiments.
(patch from Dominic Cooney, already reviewed here: http://codereview.chromium.org/5270011/) TBR=finnur BUG=58886 TEST=None Review URL: http://codereview.chromium.org/5948001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69465 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer/util')
-rw-r--r--chrome/installer/util/google_chrome_distribution.cc13
1 files changed, 10 insertions, 3 deletions
diff --git a/chrome/installer/util/google_chrome_distribution.cc b/chrome/installer/util/google_chrome_distribution.cc
index 364f14b..5289fb8 100644
--- a/chrome/installer/util/google_chrome_distribution.cc
+++ b/chrome/installer/util/google_chrome_distribution.cc
@@ -569,11 +569,18 @@ void GoogleChromeDistribution::LaunchUserExperiment(
}
// This ends up being processed by ShowTryChromeDialog to show different
- // experiments. Only run the experiment in en-US.
+ // experiments. Only run the experiment in en-US and ja.
int flavor = 0;
std::wstring language;
- if (GoogleUpdateSettings::GetLanguage(&language) && (language == L"en-US"))
- flavor = base::RandInt(0, 3);
+ if (GoogleUpdateSettings::GetLanguage(&language)) {
+ if (language == L"en-US") {
+ // en-US has four different toasts.
+ flavor = base::RandInt(0, 3);
+ } else if (language == L"ja") {
+ // ja has three different toasts.
+ flavor = base::RandInt(0, 2);
+ }
+ }
std::wstring brand;
if (GoogleUpdateSettings::GetBrand(&brand) && (brand == L"CHXX")) {