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

Issue 2967363002: Refactor NavigationHandleImpl::RegisterNavigationThrottles. (Closed)

Created:
3 years, 5 months ago by arthursonzogni
Modified:
3 years, 5 months ago
Reviewers:
clamy, saschakuhn24
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org, nasko
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor NavigationHandleImpl::RegisterNavigationThrottles. This CL removes |throttles_to_register| and introduces |AddThrottle()|. This will be easier to know understand in which order the throttle are inserted into |throttle_|. Some throttle were not inserted in the right order. AncestorThrottle and MixedContentThrottle for instance. BUG=733099 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2967363002 Cr-Commit-Position: refs/heads/master@{#485911} Committed: https://chromium.googlesource.com/chromium/src/+/b7c5f00adf724e496dfa6f866e770276239ede47

Patch Set 1 #

Patch Set 2 #

Total comments: 8

Patch Set 3 : Addressed comments (@clamy) (and rebase...) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -35 lines) Patch
M content/browser/frame_host/navigation_handle_impl.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl.cc View 1 2 1 chunk +28 lines, -35 lines 0 comments Download

Messages

Total messages: 50 (39 generated)
arthursonzogni
Hi Camille, Could you please take a look? Prior to this CL, the order of ...
3 years, 5 months ago (2017-07-06 12:01:57 UTC) #9
arthursonzogni
Hi Camille, I think the current order of NavigationThrottle is wrong. If you look at ...
3 years, 5 months ago (2017-07-07 08:53:40 UTC) #17
SaschaKuhn24
3 years, 5 months ago (2017-07-10 09:37:18 UTC) #26
arthursonzogni
I understood why testing throttles needs to be at the end of the vector and ...
3 years, 5 months ago (2017-07-10 13:34:19 UTC) #37
clamy
Thanks! The functionality lgtm, some comments about comments. https://codereview.chromium.org/2967363002/diff/180001/content/browser/frame_host/navigation_handle_impl.cc File content/browser/frame_host/navigation_handle_impl.cc (right): https://codereview.chromium.org/2967363002/diff/180001/content/browser/frame_host/navigation_handle_impl.cc#newcode1094 content/browser/frame_host/navigation_handle_impl.cc:1094: // ...
3 years, 5 months ago (2017-07-11 12:32:37 UTC) #38
arthursonzogni
Thanks! https://codereview.chromium.org/2967363002/diff/180001/content/browser/frame_host/navigation_handle_impl.h File content/browser/frame_host/navigation_handle_impl.h (right): https://codereview.chromium.org/2967363002/diff/180001/content/browser/frame_host/navigation_handle_impl.h#newcode432 content/browser/frame_host/navigation_handle_impl.h:432: // Append a new NavigationThrottle (if any) to ...
3 years, 5 months ago (2017-07-11 14:36:35 UTC) #39
arthursonzogni
https://codereview.chromium.org/2967363002/diff/180001/content/browser/frame_host/navigation_handle_impl.cc File content/browser/frame_host/navigation_handle_impl.cc (right): https://codereview.chromium.org/2967363002/diff/180001/content/browser/frame_host/navigation_handle_impl.cc#newcode1094 content/browser/frame_host/navigation_handle_impl.cc:1094: // Note: |throttle_| might not be empty. Some NavigationThrottle ...
3 years, 5 months ago (2017-07-11 14:37:24 UTC) #40
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/2967363002/200001
3 years, 5 months ago (2017-07-11 14:37:42 UTC) #43
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/497851)
3 years, 5 months ago (2017-07-11 16:02:16 UTC) #45
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/2967363002/200001
3 years, 5 months ago (2017-07-12 09:22:53 UTC) #47
commit-bot: I haz the power
3 years, 5 months ago (2017-07-12 10:08:17 UTC) #50
Message was sent while issue was closed.
Committed patchset #3 (id:200001) as
https://chromium.googlesource.com/chromium/src/+/b7c5f00adf724e496dfa6f866e77...

Powered by Google App Engine
This is Rietveld 408576698