• tsepez's avatar
    Simplify RenderFrameImpl::decidePolicyForNavigation and avoid DCHECK. · 6573f1ea
    tsepez authored
    DCHECK can be tripped when there is a chain of openers or when the
    opener has been cleared. The subsequent comparison against file:
    fails, and we may make a browser navigation where one could have
    been avoided, but it is still correct.
    
    Since it is still correct, we can simplify the check, perhaps
    forking in more cases that we used to, but that doesn't matter.
    
    BUG=622509
    R=creis@chromium.org
    
    Review-Url: https://codereview.chromium.org/2153573002
    Cr-Commit-Position: refs/heads/master@{#405609}
    6573f1ea
render_frame_impl.cc 247 KB