Change information
Commit message:
Ash: Migrate ArcSupportHost off ProfileHelper
This changelist is part of an ongoing series to decouple ChromeOS
code from the main Chrome browser codebase. By migrating away from
ash::ProfileHelper (//chrome/browser/ash) to lower-level Ash APIs such
as ash::BrowserContextHelper (//chromeos/ash/components), it removes
inappropriate upward dependencies from lower-level Ash components to
the higher-level browser application layer. This modernization also
moves code away from heavy, UI-bound Profile objects and toward the
cleaner content::BrowserContext abstraction. Where ProfileHelper wraps
user checks, the migration uses components/user_manager directly.
ArcSupportHost now asks BrowserContextHelper for the user attached to
its profile before checking owner status through user_manager. The
existing ARC target already depends on both lower-level helpers, so this
removes the stale ProfileHelper include and target dependency without
changing the load-time data key.
Bug: b:511961755
Test: CQ
Change-Id: I8897a72121814d68c1173ffbe233119303cbfa56
Cr-Commit-Position: refs/heads/main@{#1665196}
Files:
- M chrome/browser/ash/arc/BUILD.gn
- M chrome/browser/ash/arc/arc_support_host.cc
Change size: XS
Delta: 2 files changed, 4 insertions(+), 4 deletions(-)
Branch: refs/heads/main
Submit Requirements:
Code-Review: +1 by Yury Khmel