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

Issue 2802213002: Simplify WebContentsState::GetContentsStateAsByteBuffer (Closed)

Created:
3 years, 8 months ago by arthursonzogni
Modified:
3 years, 7 months ago
CC:
chromium-reviews, clamy
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Simplify WebContentsState::GetContentsStateAsByteBuffer This CL remove some conditions that must never be true: * (entry_count == 0 && pending_index == 0) because (entry_count == 0 => pending_index == -1) * (current_index == -1 && entry_count > 0) because (current_index == -1 => entry_count == 0) A similar simplification can be found in: https://codereview.chromium.org/2762363002/ This CL was done while trying to understand the crashes in: https://crbug.com/709431 BUG=709431 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2802213002 Cr-Commit-Position: refs/heads/master@{#469178} Committed: https://chromium.googlesource.com/chromium/src/+/02084c771e830293de3cc4919d29a83341558035

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebase. #

Patch Set 3 : Addressed comments (@eugenebut) #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -18 lines) Patch
M chrome/browser/android/tab_state.cc View 1 2 1 chunk +6 lines, -17 lines 2 comments Download
M content/browser/frame_host/navigation_controller_impl.h View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 38 (18 generated)
arthursonzogni
Hi @creis and @dfalcantara Please take a look. Thanks! @dfalcantara: as an OWNER and main ...
3 years, 8 months ago (2017-04-07 13:02:41 UTC) #5
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2802213002/diff/1/chrome/browser/android/tab_state.cc File chrome/browser/android/tab_state.cc (right): https://codereview.chromium.org/2802213002/diff/1/chrome/browser/android/tab_state.cc#newcode308 chrome/browser/android/tab_state.cc:308: navigations[i] = (i == pending_index) ? controller.GetPendingEntry() I was ...
3 years, 8 months ago (2017-04-07 15:21:07 UTC) #9
arthursonzogni
Thanks Eugene. https://codereview.chromium.org/2802213002/diff/1/chrome/browser/android/tab_state.cc File chrome/browser/android/tab_state.cc (right): https://codereview.chromium.org/2802213002/diff/1/chrome/browser/android/tab_state.cc#newcode308 chrome/browser/android/tab_state.cc:308: navigations[i] = (i == pending_index) ? controller.GetPendingEntry() ...
3 years, 8 months ago (2017-04-10 08:16:36 UTC) #10
Eugene But (OOO till 7-30)
> So if |controller.GetPendingEntry() == controller.GetEntryAtIndex(i)| > Then |pending_index == -1| Thanks! I thought that ...
3 years, 8 months ago (2017-04-10 15:57:24 UTC) #11
gone
I actually barely touch native code. The only reason my fingerprint is on this is ...
3 years, 8 months ago (2017-04-11 04:49:57 UTC) #12
arthursonzogni
On 2017/04/10 15:57:24, Eugene But wrote: > > So if |controller.GetPendingEntry() == controller.GetEntryAtIndex(i)| > > ...
3 years, 8 months ago (2017-04-11 08:13:22 UTC) #13
arthursonzogni
On 2017/04/11 08:13:22, arthursonzogni wrote: > On 2017/04/10 15:57:24, Eugene But wrote: > > > ...
3 years, 8 months ago (2017-04-11 08:16:58 UTC) #14
Eugene But (OOO till 7-30)
lgtm! Adding Charlie who better knows this code and owns NavigationController.
3 years, 8 months ago (2017-04-11 14:45:44 UTC) #21
Charlie Reis
Thanks for adding me! That definitely looks like a typo you're fixing in navigation_controller_impl.h-- thanks. ...
3 years, 8 months ago (2017-04-11 16:22:41 UTC) #22
Charlie Reis
It certainly looks like your change should be a no-op, and that the old code ...
3 years, 8 months ago (2017-04-11 23:31:08 UTC) #23
Charlie Reis
Ah, I might have found it! My try jobs for https://codereview.chromium.org/2815753003/ failed in a few ...
3 years, 8 months ago (2017-04-11 23:54:48 UTC) #24
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/2802213002/40001
3 years, 8 months ago (2017-04-26 12:10:56 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/420760)
3 years, 8 months ago (2017-04-26 12:18:29 UTC) #28
Charlie Reis
On 2017/04/26 12:18:29, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 7 months ago (2017-04-26 23:50:09 UTC) #29
arthursonzogni
On 2017/04/26 23:50:09, Charlie Reis wrote: > On 2017/04/26 12:18:29, commit-bot: I haz the power ...
3 years, 7 months ago (2017-05-02 11:57:24 UTC) #30
Charlie Reis
On 2017/05/02 11:57:24, arthursonzogni OOO until tue wrote: > On 2017/04/26 23:50:09, Charlie Reis wrote: ...
3 years, 7 months ago (2017-05-03 05:32:35 UTC) #31
arthursonzogni
On 2017/05/03 05:32:35, Charlie Reis wrote: > On 2017/05/02 11:57:24, arthursonzogni OOO until tue wrote: ...
3 years, 7 months ago (2017-05-03 08:06:13 UTC) #32
gone
owners lgtm
3 years, 7 months ago (2017-05-03 16:33:50 UTC) #33
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/2802213002/40001
3 years, 7 months ago (2017-05-03 21:50:29 UTC) #35
commit-bot: I haz the power
3 years, 7 months ago (2017-05-03 22:53:01 UTC) #38
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/02084c771e830293de3cc4919d29...

Powered by Google App Engine
This is Rietveld 408576698