From 8600e1b767b582276c0d51165d886c99b098545a Mon Sep 17 00:00:00 2001 From: "finnur@chromium.org" Date: Fri, 6 Jan 2012 13:00:59 +0000 Subject: Failure to determine brand code should not be treated as failure to determine toast experiment. BUG=109106 TEST=chrome.exe --try-chrome-again=0 should result in a toast for en-US locale on chromium builds, without having to set brand code manually. Review URL: http://codereview.chromium.org/9008062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116661 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/installer/util/google_chrome_distribution.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'chrome/installer') diff --git a/chrome/installer/util/google_chrome_distribution.cc b/chrome/installer/util/google_chrome_distribution.cc index b8bf4c5..fcb6c07 100644 --- a/chrome/installer/util/google_chrome_distribution.cc +++ b/chrome/installer/util/google_chrome_distribution.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // @@ -613,9 +613,9 @@ bool GoogleChromeDistribution::GetExperimentDetails( std::wstring brand; if (!GoogleUpdateSettings::GetLanguage(&locale)) - locale = L"en-US"; + locale = ASCIIToWide("en-US"); if (!GoogleUpdateSettings::GetBrand(&brand)) - return false; + brand = ASCIIToWide(""); // Could still be viable for catch-all rules. for (int i = 0; i < arraysize(kExperimentFlavors); ++i) { // A maximum of four flavors is supported at the moment. -- cgit v1.1