• Aaron Colwell's avatar
    Merge CanCommitOrigin() and CanCommitURL(). · 81caf619
    Aaron Colwell authored
    This combines the origin and URL checks to remove some duplicate and
    unnecessary checks. This will also make it easier to update the URL
    checks to handle non-standard URLs in a follow-up CL.
    
    - Inlines CanCommitURL() at the beginning and end of CanCommitOrigin()
      and removes redundant checks.
    - Rename CanCommitOrigin() to CanCommitOriginAndUrl()
    - Move kDisableWebSecurity check to the top of the function so it
      skips URL checks as well. This is the only functional change.
    
    Bug: 991607
    Change-Id: Id8b9f52b594994c1a4c1c38a709ba3e4c0daffc2
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1742836
    Commit-Queue: Aaron Colwell <acolwell@chromium.org>
    Reviewed-by: default avatarNasko Oskov <nasko@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#685408}
    81caf619
render_frame_host_impl.h 105 KB