Check thread type and implement remote task update calls [chromium/src : main]

0 views
Skip to first unread message

پری کیوانلو (Gerrit)

unread,
2:07 PM (6 hours ago) 2:07 PM
to Min Qin, chromium...@chromium.org, Sophie Chang
Attention needed from Min Qin

پری کیوانلو added 1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
پری کیوانلو . resolved

سلا

Open in Gerrit

Related details

Attention is currently required from:
  • Min Qin
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ibf588591ff1604aa8e0f13388ec26f9b2923d7ac
Gerrit-Change-Number: 7064136
Gerrit-PatchSet: 1
Gerrit-Owner: Min Qin <qin...@chromium.org>
Gerrit-CC: Sophie Chang <sophi...@chromium.org>
Gerrit-CC: پری کیوانلو <521009...@gmail.com>
Gerrit-Attention: Min Qin <qin...@chromium.org>
Gerrit-Comment-Date: Mon, 20 Oct 2025 18:07:07 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Min Qin (Gerrit)

unread,
3:52 PM (4 hours ago) 3:52 PM
to Shakti Sahu, Tommy Nyquist, Chromium LUCI CQ, chromium...@chromium.org, Sophie Chang
Attention needed from Shakti Sahu and Tommy Nyquist

Min Qin voted and added 1 comment

Votes added by Min Qin

Commit-Queue+1

1 comment

Patchset-level comments
Min Qin . resolved

PTAL

Open in Gerrit

Related details

Attention is currently required from:
  • Shakti Sahu
  • Tommy Nyquist
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ibf588591ff1604aa8e0f13388ec26f9b2923d7ac
Gerrit-Change-Number: 7064136
Gerrit-PatchSet: 1
Gerrit-Owner: Min Qin <qin...@chromium.org>
Gerrit-Reviewer: Min Qin <qin...@chromium.org>
Gerrit-Reviewer: Shakti Sahu <shakt...@chromium.org>
Gerrit-Reviewer: Tommy Nyquist <nyq...@chromium.org>
Gerrit-CC: Name of user not set #4423472
Gerrit-CC: Sophie Chang <sophi...@chromium.org>
Gerrit-Attention: Shakti Sahu <shakt...@chromium.org>
Gerrit-Attention: Tommy Nyquist <nyq...@chromium.org>
Gerrit-Comment-Date: Mon, 20 Oct 2025 19:52:32 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Shakti Sahu (Gerrit)

unread,
4:26 PM (4 hours ago) 4:26 PM
to Min Qin, Tommy Nyquist, Chromium LUCI CQ, chromium...@chromium.org, Sophie Chang
Attention needed from Min Qin and Tommy Nyquist

Shakti Sahu voted and added 3 comments

Votes added by Shakti Sahu

Code-Review+1

3 comments

File components/contextual_tasks/internal/contextual_tasks_service_impl.cc
Line 165, Patchset 1 (Latest): return;
Shakti Sahu . unresolved

When is this going to happen? Maybe a comment that this is unexpected edge case?

Line 170, Patchset 1 (Latest): Thread(thread_type, server_id, "", conversation_turn_id));
Shakti Sahu . unresolved

comment for this param /*param_name=*/

Line 435, Patchset 1 (Latest): tasks_.insert_or_assign(task.GetTaskId(), task);
Shakti Sahu . unresolved

This should be before notifying observers? In case they make a GetTask(..) call..

Open in Gerrit

Related details

Attention is currently required from:
  • Min Qin
  • Tommy Nyquist
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ibf588591ff1604aa8e0f13388ec26f9b2923d7ac
    Gerrit-Change-Number: 7064136
    Gerrit-PatchSet: 1
    Gerrit-Owner: Min Qin <qin...@chromium.org>
    Gerrit-Reviewer: Min Qin <qin...@chromium.org>
    Gerrit-Reviewer: Shakti Sahu <shakt...@chromium.org>
    Gerrit-Reviewer: Tommy Nyquist <nyq...@chromium.org>
    Gerrit-CC: Name of user not set #4423472
    Gerrit-CC: Sophie Chang <sophi...@chromium.org>
    Gerrit-Attention: Tommy Nyquist <nyq...@chromium.org>
    Gerrit-Attention: Min Qin <qin...@chromium.org>
    Gerrit-Comment-Date: Mon, 20 Oct 2025 20:26:04 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Min Qin (Gerrit)

    unread,
    4:47 PM (3 hours ago) 4:47 PM
    to Shakti Sahu, Tommy Nyquist, Chromium LUCI CQ, chromium...@chromium.org, Sophie Chang
    Attention needed from Tommy Nyquist

    Min Qin added 3 comments

    File components/contextual_tasks/internal/contextual_tasks_service_impl.cc
    Line 165, Patchset 1: return;
    Shakti Sahu . resolved

    When is this going to happen? Maybe a comment that this is unexpected edge case?

    Min Qin

    Done

    Line 170, Patchset 1: Thread(thread_type, server_id, "", conversation_turn_id));
    Shakti Sahu . resolved

    comment for this param /*param_name=*/

    Min Qin

    Done

    Line 435, Patchset 1: tasks_.insert_or_assign(task.GetTaskId(), task);
    Shakti Sahu . resolved

    This should be before notifying observers? In case they make a GetTask(..) call..

    Min Qin

    this notify is a post task, so it will always be executed later. But changed the code to put the insert_or_assign call into the if-else statement.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Tommy Nyquist
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement satisfiedCode-Owners
      • requirement satisfiedCode-Review
      • requirement satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Ibf588591ff1604aa8e0f13388ec26f9b2923d7ac
      Gerrit-Change-Number: 7064136
      Gerrit-PatchSet: 1
      Gerrit-Owner: Min Qin <qin...@chromium.org>
      Gerrit-Reviewer: Min Qin <qin...@chromium.org>
      Gerrit-Reviewer: Shakti Sahu <shakt...@chromium.org>
      Gerrit-Reviewer: Tommy Nyquist <nyq...@chromium.org>
      Gerrit-CC: Name of user not set #4423472
      Gerrit-CC: Sophie Chang <sophi...@chromium.org>
      Gerrit-Attention: Tommy Nyquist <nyq...@chromium.org>
      Gerrit-Comment-Date: Mon, 20 Oct 2025 20:46:55 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Shakti Sahu <shakt...@chromium.org>
      satisfied_requirement
      open
      diffy

      Shakti Sahu (Gerrit)

      unread,
      5:08 PM (3 hours ago) 5:08 PM
      to Min Qin, Tommy Nyquist, Chromium LUCI CQ, chromium...@chromium.org, Sophie Chang
      Attention needed from Min Qin and Tommy Nyquist

      Shakti Sahu voted and added 1 comment

      Votes added by Shakti Sahu

      Code-Review+1

      1 comment

      File components/contextual_tasks/internal/contextual_tasks_service_impl.cc
      Line 431, Patchset 2 (Latest): tasks_.insert_or_assign(task.GetTaskId(), task);
      Shakti Sahu . unresolved

      This is common to both blocks.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Min Qin
      • Tommy Nyquist
      Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement satisfiedCode-Owners
        • requirement satisfiedCode-Review
        • requirement is not satisfiedNo-Unresolved-Comments
        • requirement satisfiedReview-Enforcement
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: Ibf588591ff1604aa8e0f13388ec26f9b2923d7ac
        Gerrit-Change-Number: 7064136
        Gerrit-PatchSet: 2
        Gerrit-Owner: Min Qin <qin...@chromium.org>
        Gerrit-Reviewer: Min Qin <qin...@chromium.org>
        Gerrit-Reviewer: Shakti Sahu <shakt...@chromium.org>
        Gerrit-Reviewer: Tommy Nyquist <nyq...@chromium.org>
        Gerrit-CC: Name of user not set #4423472
        Gerrit-CC: Sophie Chang <sophi...@chromium.org>
        Gerrit-Attention: Tommy Nyquist <nyq...@chromium.org>
        Gerrit-Attention: Min Qin <qin...@chromium.org>
        Gerrit-Comment-Date: Mon, 20 Oct 2025 21:08:39 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Min Qin (Gerrit)

        unread,
        5:13 PM (3 hours ago) 5:13 PM
        to Shakti Sahu, Tommy Nyquist, Chromium LUCI CQ, chromium...@chromium.org, Sophie Chang
        Attention needed from Tommy Nyquist

        Min Qin added 1 comment

        File components/contextual_tasks/internal/contextual_tasks_service_impl.cc
        Line 431, Patchset 2 (Latest): tasks_.insert_or_assign(task.GetTaskId(), task);
        Shakti Sahu . resolved

        This is common to both blocks.

        Min Qin

        Yes, but I cannot do it before the if statement since the that will make the if statement always return true. Alternatively, I can introduce a temporary variable to store tasks_.find(task.GetTaskId()) == tasks_.end(), and then use that variable later after the insert_or_assign call. But i think the current code is probably better for understanding.

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Tommy Nyquist
        Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement satisfiedCode-Owners
          • requirement satisfiedCode-Review
          • requirement satisfiedReview-Enforcement
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: Ibf588591ff1604aa8e0f13388ec26f9b2923d7ac
          Gerrit-Change-Number: 7064136
          Gerrit-PatchSet: 2
          Gerrit-Owner: Min Qin <qin...@chromium.org>
          Gerrit-Reviewer: Min Qin <qin...@chromium.org>
          Gerrit-Reviewer: Shakti Sahu <shakt...@chromium.org>
          Gerrit-Reviewer: Tommy Nyquist <nyq...@chromium.org>
          Gerrit-CC: Name of user not set #4423472
          Gerrit-CC: Sophie Chang <sophi...@chromium.org>
          Gerrit-Attention: Tommy Nyquist <nyq...@chromium.org>
          Gerrit-Comment-Date: Mon, 20 Oct 2025 21:13:30 +0000
          satisfied_requirement
          open
          diffy
          Reply all
          Reply to author
          Forward
          0 new messages