diff options
Diffstat (limited to 'components/google/core/browser/google_util.cc')
-rw-r--r-- | components/google/core/browser/google_util.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/components/google/core/browser/google_util.cc b/components/google/core/browser/google_util.cc index 1eada34..2cdfe05 100644 --- a/components/google/core/browser/google_util.cc +++ b/components/google/core/browser/google_util.cc @@ -163,8 +163,8 @@ GURL CommandLineGoogleBaseURL() { bool StartsWithCommandLineGoogleBaseURL(const GURL& url) { GURL base_url(CommandLineGoogleBaseURL()); return base_url.is_valid() && - base::StartsWithASCII(url.possibly_invalid_spec(), base_url.spec(), - true); + base::StartsWith(url.possibly_invalid_spec(), base_url.spec(), + base::CompareCase::SENSITIVE); } bool IsGoogleHostname(const std::string& host, @@ -190,7 +190,8 @@ bool IsGoogleHomePageUrl(const GURL& url) { // Make sure the path is a known home page path. std::string path(url.path()); - return IsPathHomePageBase(path) || base::StartsWithASCII(path, "/ig", false); + return IsPathHomePageBase(path) || + base::StartsWith(path, "/ig", base::CompareCase::INSENSITIVE_ASCII); } bool IsGoogleSearchUrl(const GURL& url) { |