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

Issue 2345053006: Remove IsSynchronous API from NavigationHandle. (Closed)

Created:
4 years, 3 months ago by nasko
Modified:
4 years, 1 month ago
Reviewers:
Charlie Reis, clamy, sky
CC:
chromium-reviews, extensions-reviews_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, chromium-apps-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove IsSynchronous API from NavigationHandle. The IsSynchronous API on NavigationHandle is almost identical to IsSamePage and there is no reason for the two to exist. Also, IsSamePage can be based on the same implementation as IsSynchronous, which allows it to be called at any point in the lifetime of NavigationHandle. BUG= CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/2e9de94b320e23d920de86114648cb5e851a2fd5 Cr-Commit-Position: refs/heads/master@{#428226}

Patch Set 1 #

Patch Set 2 : #

Total comments: 8

Patch Set 3 : Use the renderer value for same_page on handles created during commit. #

Total comments: 7

Patch Set 4 : Remove about:blank check. #

Total comments: 3

Patch Set 5 : Fix a bunch of tests and review feedback. #

Patch Set 6 : Rebase. #

Total comments: 6

Patch Set 7 : Rebased on ToT. #

Patch Set 8 : Remove DCHECK in NavigationHandleImpl::DidCommitNavigation and fix comment. #

Patch Set 9 : Don't set params.was_within_same_page for invalid URLs. #

Patch Set 10 : Rebase on ToT. #

Patch Set 11 : Fix compile break. #

Patch Set 12 : Rebase on ToT. #

Patch Set 13 : Fix CaptivePortalTabHelperTest.HttpsTimeout #

Total comments: 6

Patch Set 14 : Addressed review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -70 lines) Patch
M chrome/browser/captive_portal/captive_portal_tab_helper_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/web_navigation/web_navigation_api.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ssl/chrome_security_state_model_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_navigation_observer.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl.h View 1 2 3 4 5 6 7 8 9 4 chunks +3 lines, -5 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl.cc View 1 2 3 4 5 6 7 8 9 6 chunks +4 lines, -13 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl_browsertest.cc View 1 2 3 4 5 6 7 8 9 7 chunks +59 lines, -15 lines 0 comments Download
M content/browser/frame_host/navigation_request.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +11 lines, -9 lines 0 comments Download
M content/public/browser/navigation_handle.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -9 lines 0 comments Download
M content/public/browser/navigation_handle.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M content/test/test_render_frame_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M content/test/test_render_frame_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +17 lines, -5 lines 0 comments Download

Messages

Total messages: 52 (36 generated)
nasko
Hey Charlie, Can you review this CL for me? There are some tests I need ...
4 years, 3 months ago (2016-09-16 22:12:41 UTC) #7
Charlie Reis
Cool. Adding clamy@ as well so she can sanity check it. I think this will ...
4 years, 3 months ago (2016-09-16 22:23:53 UTC) #9
nasko
https://codereview.chromium.org/2345053006/diff/20001/chrome/browser/extensions/api/web_navigation/web_navigation_api.cc File chrome/browser/extensions/api/web_navigation/web_navigation_api.cc (right): https://codereview.chromium.org/2345053006/diff/20001/chrome/browser/extensions/api/web_navigation/web_navigation_api.cc#newcode272 chrome/browser/extensions/api/web_navigation/web_navigation_api.cc:272: if (navigation_handle->IsSamePage() || On 2016/09/16 22:23:53, Charlie Reis (slow) ...
4 years, 3 months ago (2016-09-16 23:38:11 UTC) #10
Charlie Reis
Thanks! And a few more questions. Sorry, didn't realize this request would turn out to ...
4 years, 3 months ago (2016-09-16 23:59:16 UTC) #13
clamy
Thanks! There seems to be an issue with the case where the renderer tells us ...
4 years, 3 months ago (2016-09-19 11:09:50 UTC) #16
Charlie Reis
Quick note after we just stepped through this in person. https://codereview.chromium.org/2345053006/diff/60001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/2345053006/diff/60001/content/browser/frame_host/render_frame_host_impl.cc#newcode1189 ...
4 years, 3 months ago (2016-09-20 22:06:25 UTC) #17
nasko
https://codereview.chromium.org/2345053006/diff/20001/chrome/browser/extensions/api/web_navigation/web_navigation_api.cc File chrome/browser/extensions/api/web_navigation/web_navigation_api.cc (right): https://codereview.chromium.org/2345053006/diff/20001/chrome/browser/extensions/api/web_navigation/web_navigation_api.cc#newcode272 chrome/browser/extensions/api/web_navigation/web_navigation_api.cc:272: if (navigation_handle->IsSamePage() || On 2016/09/16 23:59:15, Charlie Reis (slow) ...
4 years, 3 months ago (2016-09-20 23:11:20 UTC) #20
Charlie Reis
Looks like we're down to just a few unit tests! On the right track. https://codereview.chromium.org/2345053006/diff/100001/content/browser/frame_host/navigation_handle_impl_browsertest.cc ...
4 years, 3 months ago (2016-09-20 23:35:24 UTC) #23
nasko
Hey Charlie, This is ready for another round of review after a long break. I've ...
4 years, 1 month ago (2016-10-27 17:26:59 UTC) #35
Charlie Reis
Thanks! LGTM with nits. https://codereview.chromium.org/2345053006/diff/240001/chrome/browser/captive_portal/captive_portal_tab_helper_unittest.cc File chrome/browser/captive_portal/captive_portal_tab_helper_unittest.cc (right): https://codereview.chromium.org/2345053006/diff/240001/chrome/browser/captive_portal/captive_portal_tab_helper_unittest.cc#newcode78 chrome/browser/captive_portal/captive_portal_tab_helper_unittest.cc:78: // Load kStartUrl. This ensures ...
4 years, 1 month ago (2016-10-27 20:51:24 UTC) #38
nasko
https://codereview.chromium.org/2345053006/diff/240001/chrome/browser/captive_portal/captive_portal_tab_helper_unittest.cc File chrome/browser/captive_portal/captive_portal_tab_helper_unittest.cc (right): https://codereview.chromium.org/2345053006/diff/240001/chrome/browser/captive_portal/captive_portal_tab_helper_unittest.cc#newcode78 chrome/browser/captive_portal/captive_portal_tab_helper_unittest.cc:78: // Load kStartUrl. This ensures that any subsequent navigation ...
4 years, 1 month ago (2016-10-27 21:22:34 UTC) #39
nasko
Hey Scott, Can you do an OWNERS review of chrome/ for me? Thanks in advance! ...
4 years, 1 month ago (2016-10-27 22:43:40 UTC) #45
sky
LGTM
4 years, 1 month ago (2016-10-27 23:15:32 UTC) #46
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/2345053006/260001
4 years, 1 month ago (2016-10-27 23:19:09 UTC) #49
commit-bot: I haz the power
Committed patchset #14 (id:260001)
4 years, 1 month ago (2016-10-28 00:01:12 UTC) #50
commit-bot: I haz the power
4 years, 1 month ago (2016-10-28 00:05:38 UTC) #52
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/2e9de94b320e23d920de86114648cb5e851a2fd5
Cr-Commit-Position: refs/heads/master@{#428226}

Powered by Google App Engine
This is Rietveld 408576698