summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjar@google.com <jar@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-24 21:47:40 +0000
committerjar@google.com <jar@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-24 21:47:40 +0000
commit60a0b7543a1ffef1828de9574648deebaec7b876 (patch)
tree94a9b58a13c0d40909362cd2552031a2d5e6cce9
parent3c6a5b31e4ad5863c34e76ba82ea7cae6e1a009b (diff)
downloadchromium_src-60a0b7543a1ffef1828de9574648deebaec7b876.zip
chromium_src-60a0b7543a1ffef1828de9574648deebaec7b876.tar.gz
chromium_src-60a0b7543a1ffef1828de9574648deebaec7b876.tar.bz2
Turn on SDCH support for google.com by default.
I'll just turn it on for google.com to start with, since I think google is the only server supporting this experimental protocol. This doesn't catch all the google usages, as search in Europe/Asia etc. may use a different server, but this should get some baseline tip-o-tree usage. After a week or two (without problems), I'll open it up by default for all sites on the net. r=openvcdiff Review URL: http://codereview.chromium.org/8154 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3940 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/browser_main.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/chrome/browser/browser_main.cc b/chrome/browser/browser_main.cc
index 7ec1830..fcdf7e5 100644
--- a/chrome/browser/browser_main.cc
+++ b/chrome/browser/browser_main.cc
@@ -535,12 +535,14 @@ int BrowserMain(CommandLine &parsed_command_line, int show_command,
// Prepare for memory caching of SDCH dictionaries.
SdchManager sdch_manager; // Construct singleton database.
+ sdch_manager.set_sdch_fetcher(new SdchDictionaryFetcher);
+ // TODO(jar): Use default to "" so that all domains are supported.
+ std::string switch_domain(".google.com"); // Provide default test domain.
if (parsed_command_line.HasSwitch(switches::kSdchFilter)) {
- sdch_manager.set_sdch_fetcher(new SdchDictionaryFetcher);
- std::wstring switch_domain =
- parsed_command_line.GetSwitchValue(switches::kSdchFilter);
- sdch_manager.EnableSdchSupport(WideToASCII(switch_domain));
+ switch_domain =
+ WideToASCII(parsed_command_line.GetSwitchValue(switches::kSdchFilter));
}
+ sdch_manager.EnableSdchSupport(switch_domain);
MetricsService* metrics = NULL;
if (!parsed_command_line.HasSwitch(switches::kDisableMetrics)) {