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

Issue 2740843004: Add DCHECK that Reload should never be called with ReloadType::NONE (Closed)

Created:
3 years, 9 months ago by liaoyuke
Modified:
3 years, 9 months ago
Reviewers:
Charlie Reis
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org, Takashi Toyoshima
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add DCHECK that Reload should never be called with ReloadType::NONE In ReloadType, NONE means that the navigation is not a reload, so it makes no sense to call Reload function with ReloadType::NONE as parameter. This CL clarifies it by mentioning it in public API comment and add a DCHECK in the implementation. BUG= CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2740843004 Cr-Commit-Position: refs/heads/master@{#456129} Committed: https://chromium.googlesource.com/chromium/src/+/9168fba24e7585305b61b67f426e025c358b3c61

Patch Set 1 #

Total comments: 2

Patch Set 2 : Swapped arguments order in DCHECK_NE #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -0 lines) Patch
M content/browser/frame_host/navigation_controller_impl.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/browser/navigation_controller.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 19 (14 generated)
liaoyuke
Hi Charlie, PTAL. Thank you very much!
3 years, 9 months ago (2017-03-10 16:57:33 UTC) #7
Charlie Reis
[CC toyoshim] Thanks-- that should help clarify the intent. Also glad to see the bots ...
3 years, 9 months ago (2017-03-10 17:41:05 UTC) #8
liaoyuke
Addressed comments. Thank you for the quick response! https://codereview.chromium.org/2740843004/diff/1/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/2740843004/diff/1/content/browser/frame_host/navigation_controller_impl.cc#newcode300 content/browser/frame_host/navigation_controller_impl.cc:300: DCHECK_NE(reload_type, ...
3 years, 9 months ago (2017-03-10 18:00:14 UTC) #9
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/2740843004/20001
3 years, 9 months ago (2017-03-10 19:16:25 UTC) #16
commit-bot: I haz the power
3 years, 9 months ago (2017-03-10 19:21:14 UTC) #19
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/9168fba24e7585305b61b67f426e...

Powered by Google App Engine
This is Rietveld 408576698