Files
brave-core/browser/ai_chat
Claudio DeSouza 56924fa1f2 [cr148] ActorTasks require a TaskSourceInfo
This change adds a basic `TaskSourceInfo` instance for an experimental
actor.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/f2504cdf2460473d2b2ced505f25867704ed5e4e

commit f2504cdf2460473d2b2ced505f25867704ed5e4e
Author: David Bokan <bokan@chromium.org>
Date:   Tue Mar 17 10:40:42 2026 -0700

    Actor: Add TaskSourceInfo to ActorTasks

    Add a TaskSourceInfo struct in a new components/actor directory, usable
    outside of chrome/. This enables identifying the source creating an
    ActorTask which allows other features to tie actions taken by that task
    to the source. For example, the chrome://history page would be able to
    use the source info to group navigations (initiated by a Glic ActorTask)
    by conversation.

    This CL adds the struct and plumbs it into ActorTask. This requires
    updating a lot of test call sites. Additionally, update the Glic test
    harness to register a conversation so actor can assume a conversation id
    is always available, as it would be in the real world. GlicAPI tests
    were the only case that already register a conversation so these avoid
    the new path.

    Downstream CLs update the history service to make use of TaskSourceInfo.

    Bug: b:475235393
    Change-Id: I9b69beea3639da7b610b3776c186d192ffb8d07c
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7634587
    Commit-Queue: David Bokan <bokan@chromium.org>
    Reviewed-by: Tommy Nyquist <nyquist@chromium.org>
    Reviewed-by: Alex Gough <ajgo@chromium.org>
    Reviewed-by: Erik Chen <erikchen@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1600646}
2026-04-27 12:00:48 +01:00
..
2025-12-01 22:21:46 +01:00
2026-04-27 12:00:45 +01:00