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

Issue 1350673003: Remove WebContentsObserver::DidCommitNavigation (Closed)

Created:
5 years, 3 months ago by clamy
Modified:
5 years, 3 months ago
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, creis+watch_chromium.org, darin-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove WebContentsObserver::DidCommitNavigation This CL removes the WebContentsObserver::DidCommitNavigation. On navigation commit, the WebContentsObserver::DidFinishNavigation will be called, making clear that the NavigationHandle tracks a navigation from start to finish. Note that if the navigation committed, the document load will still be ongoing after DidFinishNavigation is called. BUG=504347 Committed: https://crrev.com/b876f0a7041ac13322c2c8e8f53589871d4e8b63 Cr-Commit-Position: refs/heads/master@{#350637}

Patch Set 1 #

Patch Set 2 : #

Total comments: 23

Patch Set 3 : Addressed comments #

Total comments: 16

Patch Set 4 : Rebase on https://codereview.chromium.org/1312213010/ #

Patch Set 5 : Addressed comments #

Total comments: 2

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+156 lines, -143 lines) Patch
M chrome/browser/captive_portal/captive_portal_tab_helper.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/captive_portal/captive_portal_tab_helper.cc View 1 2 3 4 2 chunks +17 lines, -18 lines 0 comments Download
M components/page_load_metrics/browser/metrics_web_contents_observer.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M components/page_load_metrics/browser/metrics_web_contents_observer.cc View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl.h View 1 2 3 4 chunks +15 lines, -5 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl.cc View 1 2 3 4 chunks +24 lines, -5 lines 0 comments Download
M content/browser/frame_host/navigation_request.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigator_delegate.h View 1 2 1 chunk +3 lines, -5 lines 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 2 3 3 chunks +2 lines, -3 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M content/public/browser/navigation_handle.h View 1 2 3 4 2 chunks +12 lines, -4 lines 0 comments Download
M content/public/browser/web_contents_observer.h View 1 2 3 4 4 chunks +61 lines, -49 lines 0 comments Download
M content/test/web_contents_observer_sanity_checker.h View 2 chunks +0 lines, -3 lines 0 comments Download
M content/test/web_contents_observer_sanity_checker.cc View 1 2 3 4 4 chunks +14 lines, -40 lines 0 comments Download

Messages

Total messages: 31 (8 generated)
clamy
@nasko, creis: PTAL This is the change of interface in NavigationHandle that we discussed. @carlosk, ...
5 years, 3 months ago (2015-09-18 00:00:35 UTC) #3
nasko
Awesome! Few nits here and there. https://codereview.chromium.org/1350673003/diff/20001/content/browser/frame_host/navigation_request.cc File content/browser/frame_host/navigation_request.cc (right): https://codereview.chromium.org/1350673003/diff/20001/content/browser/frame_host/navigation_request.cc#newcode207 content/browser/frame_host/navigation_request.cc:207: render_frame_host->navigation_handle()->ReadyToCommitNavigation( Why here ...
5 years, 3 months ago (2015-09-18 16:42:16 UTC) #4
nasko
https://codereview.chromium.org/1350673003/diff/20001/content/public/browser/web_contents_observer.h File content/public/browser/web_contents_observer.h (right): https://codereview.chromium.org/1350673003/diff/20001/content/public/browser/web_contents_observer.h#newcode160 content/public/browser/web_contents_observer.h:160: Let's also organize the document loading notifications in a ...
5 years, 3 months ago (2015-09-18 16:48:44 UTC) #5
Charlie Reis
I like the simpler API. Hopefully it proves easier for others to use correctly. A ...
5 years, 3 months ago (2015-09-18 17:05:21 UTC) #6
clamy
Thanks! https://codereview.chromium.org/1350673003/diff/20001/chrome/browser/captive_portal/captive_portal_tab_helper.cc File chrome/browser/captive_portal/captive_portal_tab_helper.cc (right): https://codereview.chromium.org/1350673003/diff/20001/chrome/browser/captive_portal/captive_portal_tab_helper.cc#newcode92 chrome/browser/captive_portal/captive_portal_tab_helper.cc:92: navigation_handle->HasCommittedErrorPage(); On 2015/09/18 17:05:20, Charlie Reis wrote: > ...
5 years, 3 months ago (2015-09-18 20:37:34 UTC) #7
nasko
LGTM
5 years, 3 months ago (2015-09-18 23:37:40 UTC) #8
Charlie Reis
Thanks. LGTM with nits. https://codereview.chromium.org/1350673003/diff/40001/content/public/browser/navigation_handle.h File content/public/browser/navigation_handle.h (right): https://codereview.chromium.org/1350673003/diff/40001/content/public/browser/navigation_handle.h#newcode36 content/public/browser/navigation_handle.h:36: // Whether the navigation has ...
5 years, 3 months ago (2015-09-21 16:40:42 UTC) #9
clamy
Thanks! @mmenke: PTAL at the changes in captive_portal/.
5 years, 3 months ago (2015-09-21 17:36:34 UTC) #11
mmenke
On 2015/09/21 17:36:34, clamy wrote: > Thanks! @mmenke: PTAL at the changes in captive_portal/. May ...
5 years, 3 months ago (2015-09-21 17:37:45 UTC) #12
mmenke
https://codereview.chromium.org/1350673003/diff/40001/chrome/browser/captive_portal/captive_portal_tab_helper.cc File chrome/browser/captive_portal/captive_portal_tab_helper.cc (right): https://codereview.chromium.org/1350673003/diff/40001/chrome/browser/captive_portal/captive_portal_tab_helper.cc#newcode91 chrome/browser/captive_portal/captive_portal_tab_helper.cc:91: if (!navigation_handle->HasCommitted()) Why the change in behavior here? Worth ...
5 years, 3 months ago (2015-09-21 20:28:24 UTC) #13
clamy
Thanks! @csharrison: PTAL at the changes in components/page_load_metrics/ https://codereview.chromium.org/1350673003/diff/40001/chrome/browser/captive_portal/captive_portal_tab_helper.cc File chrome/browser/captive_portal/captive_portal_tab_helper.cc (right): https://codereview.chromium.org/1350673003/diff/40001/chrome/browser/captive_portal/captive_portal_tab_helper.cc#newcode91 chrome/browser/captive_portal/captive_portal_tab_helper.cc:91: if ...
5 years, 3 months ago (2015-09-22 00:38:05 UTC) #15
Charlie Harrison
On 2015/09/22 00:38:05, clamy wrote: > Thanks! > > @csharrison: PTAL at the changes in ...
5 years, 3 months ago (2015-09-22 01:37:51 UTC) #16
Charlie Harrison
On 2015/09/22 00:38:05, clamy wrote: > Thanks! > > @csharrison: PTAL at the changes in ...
5 years, 3 months ago (2015-09-22 01:37:52 UTC) #17
mmenke
captive_portal LGTM
5 years, 3 months ago (2015-09-22 14:47:52 UTC) #18
Charlie Harrison
https://codereview.chromium.org/1350673003/diff/80001/components/page_load_metrics/browser/metrics_web_contents_observer.cc File components/page_load_metrics/browser/metrics_web_contents_observer.cc (right): https://codereview.chromium.org/1350673003/diff/80001/components/page_load_metrics/browser/metrics_web_contents_observer.cc#newcode76 components/page_load_metrics/browser/metrics_web_contents_observer.cc:76: if (!navigation_handle->HasCommitted()) Will this ever be called while the ...
5 years, 3 months ago (2015-09-22 19:39:45 UTC) #19
clamy
@rdsmith: pTAL at the changes in components/page_load_metrics https://codereview.chromium.org/1350673003/diff/80001/components/page_load_metrics/browser/metrics_web_contents_observer.cc File components/page_load_metrics/browser/metrics_web_contents_observer.cc (right): https://codereview.chromium.org/1350673003/diff/80001/components/page_load_metrics/browser/metrics_web_contents_observer.cc#newcode76 components/page_load_metrics/browser/metrics_web_contents_observer.cc:76: if (!navigation_handle->HasCommitted()) ...
5 years, 3 months ago (2015-09-22 23:04:45 UTC) #21
Charlie Harrison
On 2015/09/22 23:04:45, clamy wrote: > @rdsmith: pTAL at the changes in components/page_load_metrics > > ...
5 years, 3 months ago (2015-09-22 23:11:25 UTC) #22
clamy
@rdsmith: friendly ping :)
5 years, 3 months ago (2015-09-24 18:32:25 UTC) #23
clamy
@ttuttle: PTAL at the changes components/page_load_metrics/
5 years, 3 months ago (2015-09-24 18:41:14 UTC) #25
Deprecated (see juliatuttle)
On 2015/09/24 18:41:14, clamy wrote: > @ttuttle: PTAL at the changes components/page_load_metrics/ components/page_load_metrics/* lgtm
5 years, 3 months ago (2015-09-24 18:45:12 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1350673003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1350673003/100001
5 years, 3 months ago (2015-09-24 18:48:42 UTC) #29
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 3 months ago (2015-09-24 20:01:29 UTC) #30
commit-bot: I haz the power
5 years, 3 months ago (2015-09-24 20:02:36 UTC) #31
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/b876f0a7041ac13322c2c8e8f53589871d4e8b63
Cr-Commit-Position: refs/heads/master@{#350637}

Powered by Google App Engine
This is Rietveld 408576698