• Daniel Bratell's avatar
    Avoid having two GetWebContents and GetBrowserClient in content/browser · 45e148a1
    Daniel Bratell authored
    There are currently two GetWebContents and two GetBrowserClient in
    content/browser. In certain non-default extreme jumbo builds
    GetWebContents in storage_partition_impl.cc and GetWebContents in
    network_service_client.cc could end up in the same
    translation unit and it would not compile. There were also
    one GetBrowserClient in storage_partition_impl.cc and one in
    clear_site_data_throttle.cc
    
    This renames one of the functions
    GetWebContents -> GetWebContentsForStoragePartition
    and one
    GetBrowserContext -> GetBrowserContextFromStoragePartition
    
    Bug: 952723
    Change-Id: I85207edde5fcb85eaa6f32cf22ca05a6e324237b
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1617837
    Auto-Submit: Daniel Bratell <bratell@opera.com>
    Commit-Queue: Kinuko Yasuda <kinuko@chromium.org>
    Reviewed-by: default avatarKinuko Yasuda <kinuko@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#661348}
    45e148a1
storage_partition_impl.cc 58.1 KB