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

Issue 989473003: Reland of Refactor the loading tracking logic in WebContentsImpl. (Closed)

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

Description

Reland of Refactor the loading tracking logic in WebContentsImpl. Reason for reland: Changed the DCHECK to a Warning in the log. This removes the loading_progresses_ map and the loading_frames_in_progress counter in WebContentsImpl. Instead, tracking of these is done at the RFHI level. TBR=clamy@chromium.org,carlosk@chromium.org,nasko@chromium.org,creis@chromium.org,tasak@google.com BUG=429399 Committed: https://crrev.com/4a49ce93d4f845512f4bdeb6c22850506bf1882a Cr-Commit-Position: refs/heads/master@{#320305}

Patch Set 1 #

Patch Set 2 : Change DCHECK to LOG(WARNING) and go cry in a corner. #

Total comments: 2

Patch Set 3 : Review comment. #

Total comments: 2

Patch Set 4 : Review comment. #

Total comments: 2

Patch Set 5 : Review comment. #

Patch Set 6 : Rebase #

Total comments: 6

Patch Set 7 : Revert change + nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+230 lines, -94 lines) Patch
M content/browser/frame_host/frame_tree_node.h View 1 2 3 4 4 chunks +7 lines, -18 lines 0 comments Download
M content/browser/frame_host/frame_tree_node.cc View 1 2 3 4 2 chunks +23 lines, -2 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 4 3 chunks +36 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 1 chunk +0 lines, -8 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 11 chunks +94 lines, -66 lines 0 comments Download
M content/browser/web_contents/web_contents_impl_unittest.cc View 1 1 chunk +64 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (6 generated)
Fabrice (no longer in Chrome)
Created Revert of Revert of Refactor the loading tracking logic in WebContentsImpl.
5 years, 9 months ago (2015-03-06 15:15:54 UTC) #1
Fabrice (no longer in Chrome)
https://codereview.chromium.org/984983002/ has landed blink-side. This fixes the only tests that failed, let's try relanding?
5 years, 9 months ago (2015-03-07 00:33:10 UTC) #2
Charlie Reis
On 2015/03/07 00:33:10, Fabrice wrote: > https://codereview.chromium.org/984983002/ has landed blink-side. > This fixes the only ...
5 years, 9 months ago (2015-03-07 01:03:48 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/989473003/1
5 years, 9 months ago (2015-03-07 01:12:41 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_TIMED_OUT, no build URL) mac_chromium_rel_ng on ...
5 years, 9 months ago (2015-03-07 03:13:52 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/989473003/1
5 years, 9 months ago (2015-03-07 10:14:23 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_TIMED_OUT, no build URL) mac_chromium_rel_ng on ...
5 years, 9 months ago (2015-03-07 12:14:45 UTC) #11
Fabrice (no longer in Chrome)
So, following the revert of my attempt to fix the issue in Blink, clamy@ and ...
5 years, 9 months ago (2015-03-09 15:56:19 UTC) #12
clamy
Thanks! https://codereview.chromium.org/989473003/diff/190001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/989473003/diff/190001/content/browser/web_contents/web_contents_impl.cc#newcode2923 content/browser/web_contents/web_contents_impl.cc:2923: // Unfortunately, it can happen if there is ...
5 years, 9 months ago (2015-03-10 13:49:10 UTC) #13
Fabrice (no longer in Chrome)
Thanks! https://codereview.chromium.org/989473003/diff/190001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/989473003/diff/190001/content/browser/web_contents/web_contents_impl.cc#newcode2923 content/browser/web_contents/web_contents_impl.cc:2923: // Unfortunately, it can happen if there is ...
5 years, 9 months ago (2015-03-10 14:44:19 UTC) #14
nasko
https://codereview.chromium.org/989473003/diff/210001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/989473003/diff/210001/content/browser/web_contents/web_contents_impl.cc#newcode2924 content/browser/web_contents/web_contents_impl.cc:2924: // BeforeUnload event. Since this also applies to the ...
5 years, 9 months ago (2015-03-10 18:05:33 UTC) #15
Fabrice (no longer in Chrome)
Thanks for the review! https://codereview.chromium.org/989473003/diff/210001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/989473003/diff/210001/content/browser/web_contents/web_contents_impl.cc#newcode2924 content/browser/web_contents/web_contents_impl.cc:2924: // BeforeUnload event. On 2015/03/10 ...
5 years, 9 months ago (2015-03-10 18:10:10 UTC) #16
Charlie Reis
Diff from original LGTM with nit. https://codereview.chromium.org/989473003/diff/230001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/989473003/diff/230001/content/browser/web_contents/web_contents_impl.cc#newcode2926 content/browser/web_contents/web_contents_impl.cc:2926: // refactored in ...
5 years, 9 months ago (2015-03-10 22:25:29 UTC) #17
Fabrice (no longer in Chrome)
I rebased following https://codereview.chromium.org/996843002 +erikchen to make sure we're still tracking the right things. I ...
5 years, 9 months ago (2015-03-11 15:30:38 UTC) #19
erikchen
The changes to ScopedTracker seem reasonable.
5 years, 9 months ago (2015-03-11 16:55:14 UTC) #20
Charlie Reis
Sorry, not LGTM unless we clarify this last change. On 2015/03/11 15:30:38, Fabrice wrote: > ...
5 years, 9 months ago (2015-03-11 23:20:52 UTC) #21
Fabrice (no longer in Chrome)
As discussed offline last night, I reverted that change. https://codereview.chromium.org/989473003/diff/270001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/989473003/diff/270001/content/browser/web_contents/web_contents_impl.cc#newcode2991 content/browser/web_contents/web_contents_impl.cc:2991: ...
5 years, 9 months ago (2015-03-12 14:35:11 UTC) #22
Charlie Reis
Thanks! LGTM again.
5 years, 9 months ago (2015-03-12 16:56:42 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/989473003/290001
5 years, 9 months ago (2015-03-12 17:05:37 UTC) #25
commit-bot: I haz the power
Committed patchset #7 (id:290001)
5 years, 9 months ago (2015-03-12 17:11:45 UTC) #26
commit-bot: I haz the power
5 years, 9 months ago (2015-03-12 17:12:33 UTC) #27
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/4a49ce93d4f845512f4bdeb6c22850506bf1882a
Cr-Commit-Position: refs/heads/master@{#320305}

Powered by Google App Engine
This is Rietveld 408576698