summaryrefslogtreecommitdiffstats
path: root/chrome/installer
diff options
context:
space:
mode:
authorlzheng@chromium.org <lzheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-27 17:35:25 +0000
committerlzheng@chromium.org <lzheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-27 17:35:25 +0000
commit9ea4fca41f2440a48006be192579de041a9f2b0f (patch)
tree2cef048c43ad365a00709fb68f4ad7b4770de623 /chrome/installer
parent97a97e3129993ebc31f77b54f9367b055458f4e2 (diff)
downloadchromium_src-9ea4fca41f2440a48006be192579de041a9f2b0f.zip
chromium_src-9ea4fca41f2440a48006be192579de041a9f2b0f.tar.gz
chromium_src-9ea4fca41f2440a48006be192579de041a9f2b0f.tar.bz2
Enable the spdy A/B test for SxS installations. npn_with_http and npn_with_spdy
will be enabled at 50% of chance. BUG=45022 TEST=Use command-line flag --chrome-sxs to force the browser as SxS, go to gmail.com, login/logout, check about:histograms, you should see xx_spdytrial_xxx histograms. Review URL: http://codereview.chromium.org/2188001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48404 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer')
-rw-r--r--chrome/installer/util/google_chrome_sxs_distribution.cc7
-rw-r--r--chrome/installer/util/google_chrome_sxs_distribution.h3
2 files changed, 8 insertions, 2 deletions
diff --git a/chrome/installer/util/google_chrome_sxs_distribution.cc b/chrome/installer/util/google_chrome_sxs_distribution.cc
index 19dad79..6807e93 100644
--- a/chrome/installer/util/google_chrome_sxs_distribution.cc
+++ b/chrome/installer/util/google_chrome_sxs_distribution.cc
@@ -11,6 +11,7 @@
namespace {
const wchar_t kChromeSxSGuid[] = L"{4ea16ac7-fd5a-47c3-875b-dbf4a2008c20}";
+const wchar_t kChannelName[] = L"SxS";
} // namespace
@@ -47,6 +48,10 @@ bool GoogleChromeSxSDistribution::ShouldUseAlternateIcon() {
}
bool GoogleChromeSxSDistribution::GetChromeChannel(std::wstring* channel) {
- *channel = L"SxS";
+ *channel = kChannelName;
return true;
}
+
+std::wstring GoogleChromeSxSDistribution::ChannelName() {
+ return kChannelName;
+}
diff --git a/chrome/installer/util/google_chrome_sxs_distribution.h b/chrome/installer/util/google_chrome_sxs_distribution.h
index 6503e0a..3062f43 100644
--- a/chrome/installer/util/google_chrome_sxs_distribution.h
+++ b/chrome/installer/util/google_chrome_sxs_distribution.h
@@ -26,7 +26,8 @@ class GoogleChromeSxSDistribution : public GoogleChromeDistribution {
virtual bool CanSetAsDefault();
virtual bool ShouldUseAlternateIcon();
virtual bool GetChromeChannel(std::wstring* channel);
-
+ // returns the channel name for GoogleChromeSxSDistribution
+ static std::wstring ChannelName();
private:
friend class BrowserDistribution;