Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid using UserData in //content/browser/browser_context.cc
Before this CL, //content/browser/browser_context.cc would rely on base::SupportsUserData to simulate 10+ fields of BrowserContext. The motivation for this was to hide //content-internal details (e.g. the fields and their types) from //content/public API (e.g. from the declaration of the BrowserContext class). After this CL, explicit fields are used while still being hidden from //content/public API behind a private, fwd-declared Impl class. Motivation: - Removing the SupportsUserData dependency is a necessary step toward migration to separate BrowserContext, BrowserContextImpl and BrowserContextDelegate classes. - Explicit fields are easier to read and use (when coding or when using a debugger). Bug: 1179776 Change-Id: Ifdc3ff1d7b945678fa0a915af780c9631c998058 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2706279 Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org> Reviewed-by: Chrome Cunningham <chcunningham@chromium.org> Reviewed-by: John Abd-El-Malek <jam@chromium.org> Reviewed-by: danakj <danakj@chromium.org> Cr-Commit-Position: refs/heads/master@{#868166}
- Loading branch information