[refactoring] Extract WebLocalFrame::CommitDataNavigationWithRequest.
This CL extracts the second half of CommitDataNavigation method into a
new CommitDataNavigationWithRequest method. The new method is called by
the old WebLocalFrameImpl::CommitDataNavigation method and by
RenderFrameImpl::LoadNavigationErrorPageInternal.
The CL also consolidates and deduplicates RenderFrameImpl code related
to committing of error pages:
- It avoids duplication of the code that calculates
blink::WebFrameLoadType and blink::WebHistoryItem based
on content::HistoryEntry*
- It removes the need to pass arguments that either 1) do not differ
among callers or 2) can be deduced from other arguments. For example:
- GURL(kUnreachableWebDataURL)
- is_client_redirect
This CL should be a pure refactoring, with no change in behavior.
Bug: 874544
Change-Id: I0088ad6367407ba70aa28c550ca46d7121dd78eb
Reviewed-on: https://chromium-review.googlesource.com/1176230
Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org>
Reviewed-by:
Kinuko Yasuda <kinuko@chromium.org>
Cr-Commit-Position: refs/heads/master@{#587208}
Showing
Please register or sign in to comment