Rewrite FocusModeController around FocusModeTasksModel [chromium/src : main]

0 views
Skip to first unread message

Sean Kau (Gerrit)

unread,
Jul 1, 2024, 9:34:49 PM (yesterday) Jul 1
to Richard Chui, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, blundell+...@chromium.org
Attention needed from Richard Chui

Sean Kau added 1 comment

Patchset-level comments
Open in Gerrit

Related details

Attention is currently required from:
  • Richard Chui
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Review
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: I7ef398e35f2b9fec84c00df0ad2b5ff6c1206923
Gerrit-Change-Number: 5610492
Gerrit-PatchSet: 7
Gerrit-Owner: Sean Kau <sk...@chromium.org>
Gerrit-Reviewer: Richard Chui <ric...@chromium.org>
Gerrit-Reviewer: Sean Kau <sk...@chromium.org>
Gerrit-Attention: Richard Chui <ric...@chromium.org>
Gerrit-Comment-Date: Tue, 02 Jul 2024 01:34:35 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Richard Chui (Gerrit)

unread,
6:34 PM (5 hours ago) 6:34 PM
to Sean Kau, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, blundell+...@chromium.org
Attention needed from Sean Kau

Richard Chui voted and added 3 comments

Votes added by Richard Chui

Code-Review+1

3 comments

Patchset-level comments
File-level comment, Patchset 8 (Latest):
Richard Chui . resolved

overall LGTM!

File ash/system/focus_mode/focus_mode_controller.cc
Line 497, Patchset 8 (Latest): return !!tasks_model_.selected_task();
Richard Chui . unresolved

do we need this?

Line 696, Patchset 8 (Latest): // If there is a selected task, we will save its `task_list_id` and
// `task_id`; otherwise, we will store an empty dict.
Richard Chui . unresolved
```suggestion
// If there is a selected task, we will save its `task_id.list_id` and
// `task_id.id`; otherwise, we will store an empty dict.
```
Open in Gerrit

Related details

Attention is currently required from:
  • Sean Kau
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
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: I7ef398e35f2b9fec84c00df0ad2b5ff6c1206923
Gerrit-Change-Number: 5610492
Gerrit-PatchSet: 8
Gerrit-Owner: Sean Kau <sk...@chromium.org>
Gerrit-Reviewer: Richard Chui <ric...@chromium.org>
Gerrit-Reviewer: Sean Kau <sk...@chromium.org>
Gerrit-Attention: Sean Kau <sk...@chromium.org>
Gerrit-Comment-Date: Tue, 02 Jul 2024 22:34:33 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Sean Kau (Gerrit)

unread,
8:46 PM (3 hours ago) 8:46 PM
to Toni Barzic, Richard Chui, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, blundell+...@chromium.org
Attention needed from Toni Barzic

Sean Kau voted and added 3 comments

Votes added by Sean Kau

Commit-Queue+1

3 comments

Patchset-level comments
File-level comment, Patchset 9 (Latest):
Sean Kau . resolved

tbarzic@ would you mind reviewing the change to the tasks API?

File ash/system/focus_mode/focus_mode_controller.cc
Line 497, Patchset 8: return !!tasks_model_.selected_task();
Richard Chui . resolved

do we need this?

Sean Kau

It's somewhat conventional for pointers so you don't accidentally invoke the `()` operator. Strictly speaking, it's not necessary here.

Line 696, Patchset 8: // If there is a selected task, we will save its `task_list_id` and

// `task_id`; otherwise, we will store an empty dict.
Richard Chui . resolved
```suggestion
// If there is a selected task, we will save its `task_id.list_id` and
// `task_id.id`; otherwise, we will store an empty dict.
```
Sean Kau

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Toni Barzic
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Review
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: I7ef398e35f2b9fec84c00df0ad2b5ff6c1206923
Gerrit-Change-Number: 5610492
Gerrit-PatchSet: 9
Gerrit-Owner: Sean Kau <sk...@chromium.org>
Gerrit-Reviewer: Richard Chui <ric...@chromium.org>
Gerrit-Reviewer: Sean Kau <sk...@chromium.org>
Gerrit-Reviewer: Toni Barzic <tba...@chromium.org>
Gerrit-Attention: Toni Barzic <tba...@chromium.org>
Gerrit-Comment-Date: Wed, 03 Jul 2024 00:46:14 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Richard Chui <ric...@chromium.org>
satisfied_requirement
open
diffy

Sean Kau (Gerrit)

unread,
8:55 PM (3 hours ago) 8:55 PM
to Toni Barzic, Richard Chui, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, blundell+...@chromium.org
Attention needed from Toni Barzic

Sean Kau voted Auto-Submit+1

Auto-Submit+1
Open in Gerrit

Related details

Attention is currently required from:
  • Toni Barzic
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Review
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: I7ef398e35f2b9fec84c00df0ad2b5ff6c1206923
Gerrit-Change-Number: 5610492
Gerrit-PatchSet: 9
Gerrit-Owner: Sean Kau <sk...@chromium.org>
Gerrit-Reviewer: Richard Chui <ric...@chromium.org>
Gerrit-Reviewer: Sean Kau <sk...@chromium.org>
Gerrit-Reviewer: Toni Barzic <tba...@chromium.org>
Gerrit-Attention: Toni Barzic <tba...@chromium.org>
Gerrit-Comment-Date: Wed, 03 Jul 2024 00:55:39 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy
Reply all
Reply to author
Forward
0 new messages