DescriptionAdd 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 #
Messages
Total messages: 19 (14 generated)
|