Add comment to NavigationRequest::CommitPageActivation
CommitPageActivation is one of the functions in NavigationRequest where the NavigationRequest gets deleted, and should not be referenced after a certain point. Add a comment to make this clearer Test: Comment only change Bug: 382303496 Change-Id: I2f1784e49baeb11dceb9f2615595700ff2094316 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6092801 Reviewed-by: Alex Moshchuk <alexmos@chromium.org> Commit-Queue: Sharon Yang <yangsharon@chromium.org> Cr-Commit-Position: refs/heads/main@{#1396218}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
0b91de8357
commit
4893f76d25
@ -6538,6 +6538,9 @@ void NavigationRequest::CommitPageActivation() {
|
||||
this, IsPrerenderedPageActivation()
|
||||
? MakeDidCommitProvisionalLoadParamsForPrerenderActivation()
|
||||
: MakeDidCommitProvisionalLoadParamsForBFCacheRestore());
|
||||
|
||||
// DO NOT ADD CODE AFTER THIS, as the NavigationRequest might have been
|
||||
// deleted by the previous call.
|
||||
}
|
||||
|
||||
void NavigationRequest::SetExpectedProcess(
|
||||
|
Reference in New Issue
Block a user