| Index: chrome/browser/net/predictor.cc
|
| diff --git a/chrome/browser/net/predictor.cc b/chrome/browser/net/predictor.cc
|
| index 48239100b5ea65e8b81c72772bea5e235509412d..dc1ce69fec345ad2bc28b17c2224e5ac83b9d9bd 100644
|
| --- a/chrome/browser/net/predictor.cc
|
| +++ b/chrome/browser/net/predictor.cc
|
| @@ -466,7 +466,7 @@ UrlList Predictor::GetPredictedUrlListAtStartup(
|
| GURL gurl = tab_start_pref.urls[i];
|
| if (!gurl.is_valid() || gurl.SchemeIsFile() || gurl.host().empty())
|
| continue;
|
| - if (gurl.SchemeIs("http") || gurl.SchemeIs("https"))
|
| + if (gurl.SchemeIsHttp())
|
| urls.push_back(gurl.GetWithEmptyPath());
|
| }
|
| }
|
| @@ -1300,7 +1300,7 @@ void Predictor::InitialObserver::Append(const GURL& url,
|
| if (kStartupResolutionCount <= first_navigations_.size())
|
| return;
|
|
|
| - DCHECK(url.SchemeIs("http") || url.SchemeIs("https"));
|
| + DCHECK(url.SchemeIsHttp());
|
| DCHECK_EQ(url, Predictor::CanonicalizeUrl(url));
|
| if (first_navigations_.find(url) == first_navigations_.end())
|
| first_navigations_[url] = base::TimeTicks::Now();
|
|
|