commit | 61fd350272510a2c0421e76514f54b46cbf6caf8 | [log] [tgz] |
---|---|---|
author | Lukasz Anforowicz <lukasza@chromium.org> | Fri Sep 29 17:08:58 2017 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Sep 29 17:08:58 2017 |
tree | 0a76a75006362fe4c92680111db79eb00bf8081f | |
parent | d4c2a8f3fe9881cf21d00787c7ca422a0bbf6c2d [diff] |
Removing callers of the WebContents::GetRenderProcessHost() method. WebContents::GetRenderProcessHost is an API that doesn't behave as expected with out-of-process iframes, as multiple processes can be associated with a single WebContents. This CL replaces callers of this API, so that they go through an equivalent API that explicitly selects which frame's process is needed. This CL was started by using an ad-hoc clang-plugin that replaced existing callsites of WebContents::GetRenderProcessHost() with a call to something like wc->GetMainFrame()->GetProcess(). This was followed-up by manually adding an include of render_frame_host.h and git cl format and git cl lint and then a self-review with small tweaks (e.g. sometimes using a wc->GetRenderViewHost()->GetProcess() is more appropriate). This CL was uploaded by git cl split. R=ekaramad@chromium.org Bug: 666525 Change-Id: I8c9c9436301eabd31b5bfe1054956c63d5457dfc Reviewed-on: https://chromium-review.googlesource.com/689107 Reviewed-by: Ehsan Karamad <ekaramad@chromium.org> Commit-Queue: Ćukasz Anforowicz <lukasza@chromium.org> Cr-Commit-Position: refs/heads/master@{#505399}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .