diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-06 00:45:58 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-06 00:45:58 +0000 |
commit | df10e1781ce06472e3c381c73a9819e7ffabb6ab (patch) | |
tree | 4d37d4c2eb27c670d53eb40b6d51fea318756b8c /chrome/browser/search_engines/template_url_service.cc | |
parent | bf17d53f37ece3467f78e4fdf7dd5e06d132841d (diff) | |
download | chromium_src-df10e1781ce06472e3c381c73a9819e7ffabb6ab.zip chromium_src-df10e1781ce06472e3c381c73a9819e7ffabb6ab.tar.gz chromium_src-df10e1781ce06472e3c381c73a9819e7ffabb6ab.tar.bz2 |
Split GoogleURLTrackerInfoBarDelegate into its own .h/.cc. This will make changes to it a little easier to understand.
As part of this, added a StrippedHost() function to net_util.* to replace the one that used to be in google_url_tracker.cc.
BUG=none
TEST=none
Review URL: https://codereview.chromium.org/11076003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160535 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/search_engines/template_url_service.cc')
-rw-r--r-- | chrome/browser/search_engines/template_url_service.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/search_engines/template_url_service.cc b/chrome/browser/search_engines/template_url_service.cc index 3d23b03..0d46d5e 100644 --- a/chrome/browser/search_engines/template_url_service.cc +++ b/chrome/browser/search_engines/template_url_service.cc @@ -316,7 +316,7 @@ string16 TemplateURLService::GenerateKeyword(const GURL& url) { // Special case: if the host was exactly "www." (not sure this can happen but // perhaps with some weird intranet and custom DNS server?), ensure we at // least don't return the empty string. - string16 keyword(net::StripWWW(UTF8ToUTF16(url.host()))); + string16 keyword(net::StripWWWFromHost(url)); return keyword.empty() ? ASCIIToUTF16("www") : keyword; } |