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

Issue 2645713003: [Prerender] Cleanup prerender_util (Closed)

Created:
3 years, 11 months ago by droger
Modified:
3 years, 11 months ago
Reviewers:
Ilya Sherman, mattcary
CC:
chromium-reviews, tburkard+watch_chromium.org, gavinp+prer_chromium.org, cbentzel+watch_chromium.org, Peter Kasting, Ilya Sherman
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Prerender] Cleanup prerender_util IsGoogleDomain() and IsGoogleSearchResultURL() are bad re-implementations of functions that already exist in google_util. This CL removes these functions and uses the ones from google_util that are not bugged, widely used and more maintained. ALLOW_NON_STANDARD_PORT is used, as it matches existing behavior, and is required by integration tests. It would certainly be good to disallow such ports as future work. Some dead code is removed as well. Review-Url: https://codereview.chromium.org/2645713003 Cr-Commit-Position: refs/heads/master@{#445374} Committed: https://chromium.googlesource.com/chromium/src/+/4239cebc352889db1bd41ba9abbc17d9261a5769

Patch Set 1 #

Patch Set 2 #

Patch Set 3 : ALLOW_NON_STANDARD_PORTS #

Total comments: 6

Patch Set 4 : Review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -110 lines) Patch
M chrome/browser/prerender/prerender_histograms.cc View 1 2 3 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/prerender/prerender_manager.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/prerender/prerender_util.h View 1 2 3 1 chunk +3 lines, -11 lines 0 comments Download
M chrome/browser/prerender/prerender_util.cc View 1 2 3 2 chunks +9 lines, -47 lines 0 comments Download
M chrome/browser/prerender/prerender_util_unittest.cc View 1 2 3 1 chunk +16 lines, -47 lines 0 comments Download
M chrome/test/data/prerender/prerender_loader_with_replace_state.html View 1 2 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 39 (28 generated)
droger
mattcary for general review I'll file a bug about removing the ALLOW_NON_STANDARD_HOST as future work. ...
3 years, 11 months ago (2017-01-20 12:07:30 UTC) #21
mattcary
lgtm https://codereview.chromium.org/2645713003/diff/120001/chrome/test/data/prerender/prerender_loader_with_replace_state.html File chrome/test/data/prerender/prerender_loader_with_replace_state.html (right): https://codereview.chromium.org/2645713003/diff/120001/chrome/test/data/prerender/prerender_loader_with_replace_state.html#newcode8 chrome/test/data/prerender/prerender_loader_with_replace_state.html:8: history.replaceState(null, "Preloader", "/"); What's going on here?
3 years, 11 months ago (2017-01-20 13:24:21 UTC) #23
droger
https://codereview.chromium.org/2645713003/diff/120001/chrome/test/data/prerender/prerender_loader_with_replace_state.html File chrome/test/data/prerender/prerender_loader_with_replace_state.html (right): https://codereview.chromium.org/2645713003/diff/120001/chrome/test/data/prerender/prerender_loader_with_replace_state.html#newcode8 chrome/test/data/prerender/prerender_loader_with_replace_state.html:8: history.replaceState(null, "Preloader", "/"); On 2017/01/20 13:24:21, mattcary wrote: > ...
3 years, 11 months ago (2017-01-20 13:41:39 UTC) #24
droger
While I'm not 100% sure, I think the reason why the empty path is allowed ...
3 years, 11 months ago (2017-01-20 13:45:00 UTC) #25
droger
While I'm not 100% sure, I think the reason why the empty path is allowed ...
3 years, 11 months ago (2017-01-20 13:45:03 UTC) #26
Ilya Sherman
Use of google_utils LGTM. A couple of nits inline: https://codereview.chromium.org/2645713003/diff/120001/chrome/browser/prerender/prerender_util.cc File chrome/browser/prerender/prerender_util.cc (right): https://codereview.chromium.org/2645713003/diff/120001/chrome/browser/prerender/prerender_util.cc#newcode38 chrome/browser/prerender/prerender_util.cc:38: ...
3 years, 11 months ago (2017-01-21 00:21:09 UTC) #28
droger
Thanks. https://codereview.chromium.org/2645713003/diff/120001/chrome/browser/prerender/prerender_util.cc File chrome/browser/prerender/prerender_util.cc (right): https://codereview.chromium.org/2645713003/diff/120001/chrome/browser/prerender/prerender_util.cc#newcode38 chrome/browser/prerender/prerender_util.cc:38: bool IsGWSOriginURL(const GURL& origin_url) { On 2017/01/21 00:21:08, ...
3 years, 11 months ago (2017-01-23 10:51:17 UTC) #29
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/2645713003/140001
3 years, 11 months ago (2017-01-23 10:51:38 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/375890)
3 years, 11 months ago (2017-01-23 11:46:02 UTC) #34
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/2645713003/140001
3 years, 11 months ago (2017-01-23 13:00:44 UTC) #36
commit-bot: I haz the power
3 years, 11 months ago (2017-01-23 15:17:41 UTC) #39
Message was sent while issue was closed.
Committed patchset #4 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/4239cebc352889db1bd41ba9abbc...

Powered by Google App Engine
This is Rietveld 408576698