No-op refactors to remove uses of RenderFrameHostImpl::frame_tree_node().

These simplify the code and get the desired information more directly.

frame_tree_node() is tricky because the frame-tree of a frame in BFCache
is not valid (the root FTN will be the root of the current active page
in the WebContents).

The follow-on CL, https://crrev.com/c/3189850, makes variations of
the frame_tree_node getter that are explicit about whether it's OK to
get it while in BFCache. It's unclear that we would land this but the
tidies in this CL are still improvements.

This also adds WebContentsImpl::FromRenderFrameHostImpl.

Bug: 1253863,1179502,1183639
Change-Id: Ic301ccf39d50c618ac897711b61b8485cfc86eea
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3189581
Auto-Submit: Fergal Daly <fergal@chromium.org>
Commit-Queue: Fergal Daly <fergal@chromium.org>
Reviewed-by: Alexander Timin <altimin@chromium.org>
Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
Cr-Commit-Position: refs/heads/main@{#931371}
6 files changed
tree: f087972172c68e3b752ffb0385c157ab9ec059f5
  1. .clang-format
  2. .clang-tidy
  3. .eslintrc.js
  4. .git-blame-ignore-revs
  5. .gitattributes
  6. .gitignore
  7. .gn
  8. .mailmap
  9. .rustfmt.toml
  10. .vpython
  11. .vpython3
  12. .yapfignore
  13. AUTHORS
  14. BUILD.gn
  15. CODE_OF_CONDUCT.md
  16. DEPS
  17. DIR_METADATA
  18. ENG_REVIEW_OWNERS
  19. LICENSE
  20. LICENSE.chromium_os
  21. OWNERS
  22. PRESUBMIT.py
  23. PRESUBMIT_test.py
  24. PRESUBMIT_test_mocks.py
  25. README.md
  26. WATCHLISTS
  27. android_webview/
  28. apps/
  29. ash/
  30. base/
  31. build/
  32. build_overrides/
  33. buildtools/
  34. cc/
  35. chrome/
  36. chromecast/
  37. chromeos/
  38. cloud_print/
  39. codelabs/
  40. codereview.settings
  41. components/
  42. content/
  43. courgette/
  44. crypto/
  45. dbus/
  46. device/
  47. docs/
  48. extensions/
  49. fuchsia/
  50. gin/
  51. google_apis/
  52. google_update/
  53. gpu/
  54. headless/
  55. infra/
  56. ios/
  57. ipc/
  58. jingle/
  59. media/
  60. mojo/
  61. native_client_sdk/
  62. net/
  63. pdf/
  64. ppapi/
  65. printing/
  66. remoting/
  67. rlz/
  68. sandbox/
  69. services/
  70. skia/
  71. sql/
  72. storage/
  73. styleguide/
  74. testing/
  75. third_party/
  76. tools/
  77. ui/
  78. url/
  79. weblayer/
README.md

Logo Chromium

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.

To check out the source code locally, don't use git clone! Instead, follow the instructions on how to get the code.

Documentation in the source is rooted in docs/README.md.

Learn how to Get Around the Chromium Source Code Directory Structure .

For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.

If you found a bug, please file it at https://crbug.com/new.