Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(583)

Issue 2871323006: Make Network Predictor skip empty urls (Closed)

Created:
3 years, 7 months ago by xunjieli
Modified:
3 years, 7 months ago
Reviewers:
Charlie Harrison
CC:
chromium-reviews, cbentzel+watch_chromium.org, net-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make Network Predictor skip empty urls Predictor::CanonicalizeUrl() can return empty urls. This causes HttpStreamFactoryImpl::PreconnectStream() to preconnect empty urls, which is bad because HttpStreamFactoryImpl layer and lower (e.g. proxy resolution) assume that the urls are valid. This CL makes Predictor to skip empty urls. BUG=721981 Review-Url: https://codereview.chromium.org/2871323006 Cr-Commit-Position: refs/heads/master@{#471837} Committed: https://chromium.googlesource.com/chromium/src/+/cb7c661c1e2dbeb007a02832f9305ebc7199b845

Patch Set 1 : self #

Total comments: 2

Patch Set 2 : add test #

Patch Set 3 : forgot one #

Patch Set 4 : self #

Total comments: 5

Patch Set 5 : address comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -5 lines) Patch
M chrome/browser/net/predictor.cc View 1 2 3 4 2 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/net/predictor_browsertest.cc View 1 4 chunks +19 lines, -0 lines 0 comments Download
M net/http/http_stream_factory_impl.cc View 1 chunk +2 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 28 (19 generated)
xunjieli
Charlie, PTAL. Thanks.
3 years, 7 months ago (2017-05-14 22:53:18 UTC) #8
Charlie Harrison
LGTM % comment. A test would be nice (predictor_browsertests is where they live) but I'm ...
3 years, 7 months ago (2017-05-15 00:01:07 UTC) #10
xunjieli
Charlie, could you take another look? I added a test which will fail without the ...
3 years, 7 months ago (2017-05-15 16:41:44 UTC) #14
Charlie Harrison
https://codereview.chromium.org/2871323006/diff/100001/chrome/browser/net/predictor.cc File chrome/browser/net/predictor.cc (right): https://codereview.chromium.org/2871323006/diff/100001/chrome/browser/net/predictor.cc#newcode249 chrome/browser/net/predictor.cc:249: GURL canonicalized_url = CanonicalizeUrl(url); nit: const GURL https://codereview.chromium.org/2871323006/diff/100001/chrome/browser/net/predictor_browsertest.cc File ...
3 years, 7 months ago (2017-05-15 17:01:25 UTC) #19
xunjieli
Thanks for the review. https://codereview.chromium.org/2871323006/diff/100001/chrome/browser/net/predictor.cc File chrome/browser/net/predictor.cc (right): https://codereview.chromium.org/2871323006/diff/100001/chrome/browser/net/predictor.cc#newcode249 chrome/browser/net/predictor.cc:249: GURL canonicalized_url = CanonicalizeUrl(url); On ...
3 years, 7 months ago (2017-05-15 17:06:51 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2871323006/120001
3 years, 7 months ago (2017-05-15 17:07:53 UTC) #23
xunjieli
https://codereview.chromium.org/2871323006/diff/100001/chrome/browser/net/predictor_browsertest.cc File chrome/browser/net/predictor_browsertest.cc (right): https://codereview.chromium.org/2871323006/diff/100001/chrome/browser/net/predictor_browsertest.cc#newcode323 chrome/browser/net/predictor_browsertest.cc:323: preconnect_url_attempts_.insert(original_url); On 2017/05/15 17:06:51, xunjieli wrote: > On 2017/05/15 ...
3 years, 7 months ago (2017-05-15 17:08:56 UTC) #24
Charlie Harrison
LGTM it would be great to avoid RunUntilIdle but I think it would be a ...
3 years, 7 months ago (2017-05-15 17:12:58 UTC) #25
commit-bot: I haz the power
3 years, 7 months ago (2017-05-15 18:26:23 UTC) #28
Message was sent while issue was closed.
Committed patchset #5 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/cb7c661c1e2dbeb007a02832f930...

Powered by Google App Engine
This is Rietveld 408576698