Skip to content

Commit 7ea9f9a

Browse files
[cr144] ActorKeyedService::StopTask takes an enum
This used to be a bool, but now it has been improved into an enum. Chromium changes: https://chromium.googlesource.com/chromium/src/+/adfa72255216f1ffad175697717421c27f9dca36 commit adfa72255216f1ffad175697717421c27f9dca36 Author: chrstne <[email protected]> Date: Wed Nov 5 07:50:53 2025 -0800 Pipe Failed state to Actor Task This will be rebase and submitted after https://chromium-review.googlesource.com/c/chromium/src/+/7113019 Bug: 453997100, 453724281 Change-Id: I511519a0c1f9760e309ba6e46d899f40c42f4bbb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7118220 Reviewed-by: Dave Tapuska <[email protected]> Reviewed-by: Kevin Graney <[email protected]> Reviewed-by: Erik Chen <[email protected]> Commit-Queue: Christine Ying <[email protected]> Cr-Commit-Position: refs/heads/main@{#1540641}
1 parent fb1a43c commit 7ea9f9a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

browser/ai_chat/content_agent_tool_provider.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ std::vector<base::WeakPtr<Tool>> ContentAgentToolProvider::GetTools() {
8282
void ContentAgentToolProvider::StopAllTasks() {
8383
if (!task_id_.is_null()) {
8484
// `success` sets whether the task ends as state kFinished or kCancelled
85-
actor_service_->StopTask(task_id_, true /* success */);
85+
actor_service_->StopTask(task_id_,
86+
actor::ActorTask::StoppedReason::kTaskComplete);
8687
}
8788
}
8889

0 commit comments

Comments
 (0)