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

Issue 2961903003: PageTransition: Remove unreached code. (Closed)

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

Description

PageTransition: Remove unreached code. Remove a block of code that used to detect a incorrect PageTransition and to replace it by its correct value. Apparently, this block is no more reached. This CL removes it. Furthermore, a test is added. It replays the steps one had to do to reach this block of code. BUG=736772, 740461 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2961903003 Cr-Commit-Position: refs/heads/master@{#485287} Committed: https://chromium.googlesource.com/chromium/src/+/b757c63d2e76e4ea078e3ca4ca873d5b594073ea

Patch Set 1 : Check that the block of code is unreached. #

Patch Set 2 : CHECK => DCHECK, Add test. #

Total comments: 4

Patch Set 3 : Add TODO (and rebase) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -14 lines) Patch
M content/browser/frame_host/navigation_controller_impl_browsertest.cc View 1 2 1 chunk +114 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 1 chunk +1 line, -14 lines 0 comments Download

Messages

Total messages: 33 (26 generated)
arthursonzogni
Hi Avi and Charlie, Please take a look. https://codereview.chromium.org/2961903003/diff/40001/content/browser/frame_host/navigation_controller_impl_browsertest.cc File content/browser/frame_host/navigation_controller_impl_browsertest.cc (right): https://codereview.chromium.org/2961903003/diff/40001/content/browser/frame_host/navigation_controller_impl_browsertest.cc#newcode6945 content/browser/frame_host/navigation_controller_impl_browsertest.cc:6945: ui::PAGE_TRANSITION_FROM_ADDRESS_BAR))); ...
3 years, 5 months ago (2017-06-28 15:19:30 UTC) #14
Avi (use Gerrit)
This lgtm; Charlie? https://codereview.chromium.org/2961903003/diff/40001/content/browser/frame_host/navigation_controller_impl_browsertest.cc File content/browser/frame_host/navigation_controller_impl_browsertest.cc (right): https://codereview.chromium.org/2961903003/diff/40001/content/browser/frame_host/navigation_controller_impl_browsertest.cc#newcode6945 content/browser/frame_host/navigation_controller_impl_browsertest.cc:6945: ui::PAGE_TRANSITION_FROM_ADDRESS_BAR))); On 2017/06/28 15:19:30, arthursonzogni wrote: ...
3 years, 5 months ago (2017-06-28 17:03:18 UTC) #18
arthursonzogni
Thanks for the review avi! Charlie, are you okay with this change?
3 years, 5 months ago (2017-07-03 07:57:23 UTC) #19
Charlie Reis
Thanks for finding this. I'm a little wary about it since you may have actually ...
3 years, 5 months ago (2017-07-07 23:11:09 UTC) #20
arthursonzogni
Thanks for the reviews! I added a TODO and filled https://crbug.com/740461.
3 years, 5 months ago (2017-07-10 08:54:43 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/2961903003/80001
3 years, 5 months ago (2017-07-10 16:12:19 UTC) #30
commit-bot: I haz the power
3 years, 5 months ago (2017-07-10 16:16:32 UTC) #33
Message was sent while issue was closed.
Committed patchset #3 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/b757c63d2e76e4ea078e3ca4ca87...

Powered by Google App Engine
This is Rietveld 408576698