DescriptionRefactoring Reload in NavigationManager and CRWWebController.
Previously, the |Reload| function in NavigationManager goes all the way
up to BrowserViewController to call web state's |openURLWithParams|,
which is completely unnecessary. Additionally, CRWWebController doesn't
use the transition type to call |-reload| when appropriate.
This CL first eliminates the excessive indirections by changing the
implementations of |Reload| function in NavigationManager to call
|LoadURLWithParams| directly and then updates callers of
CRWWebController's |Reload| to call NavigationManager's |Reload| to
correct layer violations.
This CL also adds a DCHECK to CRWWebController's |-loadWithParams:|
to make sure that it won't be called with PAGE_TRANSITION_RELOAD.
BUG=700569
Review-Url: https://codereview.chromium.org/2741413007
Cr-Commit-Position: refs/heads/master@{#457825}
Committed: https://chromium.googlesource.com/chromium/src/+/563dc4a98290952cd8058a891574bfecce24c03c
Patch Set 1 #Patch Set 2 : Addressed self review comments #Patch Set 3 : Addressed high level comments #
Total comments: 2
Patch Set 4 : Remove unused methods in navigation manager delegate #
Total comments: 13
Patch Set 5 : change value of check_for_repost to false whereever necessary #Patch Set 6 : tentative change #
Total comments: 8
Patch Set 7 : fixed more check_for_repost errors #
Total comments: 9
Patch Set 8 : Addressed comments #Patch Set 9 : Rebase and Remove DCHECK in |loadWithParams| as it has already been taken care of #Messages
Total messages: 50 (31 generated)
|