Remove chrome/browser/ash/display/quirks_manager_delegate_impl [chromium/src : main]

1 view
Skip to first unread message

Hidehiko Abe (Gerrit)

unread,
Jun 3, 2025, 7:28:19 AM6/3/25
to Mitsuru Oshima, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, Enterprise Policy Reviews, droger+w...@chromium.org, oshima...@chromium.org, zhangwen...@google.com
Attention needed from Mitsuru Oshima

Hidehiko Abe added 3 comments

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Hidehiko Abe . resolved

PTAL.

File chromeos/ash/components/settings/cros_settings.h
Line 130, Patchset 1 (Latest): friend class DisplayColorManagerTest;
Hidehiko Abe . resolved

NOTE: currently there's no way to set up global CrosSettings instance outside of //chrome.
I'm working on making it possible, but that'll need a bit more changes still.
This should be short term work around until that's done.

File components/quirks/BUILD.gn
Line 5, Patchset 1 (Latest):assert(is_chromeos, "Quicks can be used only in chromeos")
Hidehiko Abe . unresolved

Clarification: Looks like this is only for chromeos now.
Is there any plan to enable it for other platforms?

If not, maybe move this to chromeos/ash/components/quirks?

Open in Gerrit

Related details

Attention is currently required from:
  • Mitsuru Oshima
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not 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: I33f3d2b90e7d6975a0f40f6fefe89a9e0c8c7749
Gerrit-Change-Number: 6615403
Gerrit-PatchSet: 1
Gerrit-Owner: Hidehiko Abe <hide...@chromium.org>
Gerrit-Reviewer: Hidehiko Abe <hide...@chromium.org>
Gerrit-Reviewer: Mitsuru Oshima <osh...@chromium.org>
Gerrit-CC: Enterprise Policy Reviews <enterprise-p...@google.com>
Gerrit-Attention: Mitsuru Oshima <osh...@chromium.org>
Gerrit-Comment-Date: Tue, 03 Jun 2025 11:27:56 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Mitsuru Oshima (Gerrit)

unread,
Jun 3, 2025, 7:29:02 PM6/3/25
to Hidehiko Abe, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, Enterprise Policy Reviews, droger+w...@chromium.org, oshima...@chromium.org, zhangwen...@google.com
Attention needed from Hidehiko Abe

Mitsuru Oshima added 2 comments

File components/quirks/BUILD.gn
Line 5, Patchset 1 (Latest):assert(is_chromeos, "Quicks can be used only in chromeos")
Hidehiko Abe . unresolved

Clarification: Looks like this is only for chromeos now.
Is there any plan to enable it for other platforms?

If not, maybe move this to chromeos/ash/components/quirks?

Mitsuru Oshima

It's up to us. There are "chromeos only" components under components, such as user_manager, exo, and moving all of them is probably not important as long as it's clearly declared like this (but possbiile).

Line 23, Patchset 1 (Latest): "//chromeos/ash/components/settings",
Mitsuru Oshima . unresolved

Hmm, I feel odd if this depeneds on settings. Can't we just inject callbacks?

Open in Gerrit

Related details

Attention is currently required from:
  • Hidehiko Abe
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not 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: I33f3d2b90e7d6975a0f40f6fefe89a9e0c8c7749
Gerrit-Change-Number: 6615403
Gerrit-PatchSet: 1
Gerrit-Owner: Hidehiko Abe <hide...@chromium.org>
Gerrit-Reviewer: Hidehiko Abe <hide...@chromium.org>
Gerrit-Reviewer: Mitsuru Oshima <osh...@chromium.org>
Gerrit-CC: Enterprise Policy Reviews <enterprise-p...@google.com>
Gerrit-Attention: Hidehiko Abe <hide...@chromium.org>
Gerrit-Comment-Date: Tue, 03 Jun 2025 23:28:52 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Hidehiko Abe <hide...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Hidehiko Abe (Gerrit)

unread,
Jun 4, 2025, 6:43:37 AM6/4/25
to Greg Levin, Mitsuru Oshima, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, Enterprise Policy Reviews, droger+w...@chromium.org, oshima...@chromium.org, zhangwen...@google.com
Attention needed from Mitsuru Oshima

Hidehiko Abe added 3 comments

Patchset-level comments
File-level comment, Patchset 2 (Latest):
Hidehiko Abe . resolved

Thank you for review. PTAL.
FYI: Greg.

File components/quirks/BUILD.gn
Line 5, Patchset 1:assert(is_chromeos, "Quicks can be used only in chromeos")
Hidehiko Abe . resolved

Clarification: Looks like this is only for chromeos now.
Is there any plan to enable it for other platforms?

If not, maybe move this to chromeos/ash/components/quirks?

Mitsuru Oshima

It's up to us. There are "chromeos only" components under components, such as user_manager, exo, and moving all of them is probably not important as long as it's clearly declared like this (but possbiile).

Hidehiko Abe

Thanks for reply.

Moving the components is just an option, and indeed low priority. I just wanted to confirm this is only for chromeos (as this introduces chromeos only code to this module).

Line 23, Patchset 1: "//chromeos/ash/components/settings",
Mitsuru Oshima . resolved

Hmm, I feel odd if this depeneds on settings. Can't we just inject callbacks?

Hidehiko Abe

Updated per offline discussion.

Open in Gerrit

Related details

Attention is currently required from:
  • Mitsuru Oshima
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: I33f3d2b90e7d6975a0f40f6fefe89a9e0c8c7749
Gerrit-Change-Number: 6615403
Gerrit-PatchSet: 2
Gerrit-Owner: Hidehiko Abe <hide...@chromium.org>
Gerrit-Reviewer: Hidehiko Abe <hide...@chromium.org>
Gerrit-Reviewer: Mitsuru Oshima <osh...@chromium.org>
Gerrit-CC: Enterprise Policy Reviews <enterprise-p...@google.com>
Gerrit-CC: Greg Levin <gle...@chromium.org>
Gerrit-Attention: Mitsuru Oshima <osh...@chromium.org>
Gerrit-Comment-Date: Wed, 04 Jun 2025 10:43:14 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Hidehiko Abe <hide...@chromium.org>
Comment-In-Reply-To: Mitsuru Oshima <osh...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Greg Levin (Gerrit)

unread,
Jun 4, 2025, 3:01:44 PM6/4/25
to Hidehiko Abe, Mitsuru Oshima, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, Enterprise Policy Reviews, droger+w...@chromium.org, oshima...@chromium.org, zhangwen...@google.com
Attention needed from Hidehiko Abe and Mitsuru Oshima

Greg Levin added 1 comment

Patchset-level comments
Hidehiko Abe . resolved

Thank you for review. PTAL.
FYI: Greg.

Greg Levin

Thanks for the ping. But I work on Privacy these days, and haven't touched ChromeOS code in over 7 years(!). So I'm not really qualified to evaluate a change of this magnitude. Glad Oshima's taking a look :)

Open in Gerrit

Related details

Attention is currently required from:
  • Hidehiko Abe
  • Mitsuru Oshima
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: I33f3d2b90e7d6975a0f40f6fefe89a9e0c8c7749
Gerrit-Change-Number: 6615403
Gerrit-PatchSet: 2
Gerrit-Owner: Hidehiko Abe <hide...@chromium.org>
Gerrit-Reviewer: Hidehiko Abe <hide...@chromium.org>
Gerrit-Reviewer: Mitsuru Oshima <osh...@chromium.org>
Gerrit-CC: Enterprise Policy Reviews <enterprise-p...@google.com>
Gerrit-CC: Greg Levin <gle...@chromium.org>
Gerrit-Attention: Hidehiko Abe <hide...@chromium.org>
Gerrit-Attention: Mitsuru Oshima <osh...@chromium.org>
Gerrit-Comment-Date: Wed, 04 Jun 2025 19:01:35 +0000
satisfied_requirement
unsatisfied_requirement
open
diffy

Mitsuru Oshima (Gerrit)

unread,
Jun 10, 2025, 3:22:33 PM6/10/25
to Hidehiko Abe, Code Review Nudger, Greg Levin, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, Enterprise Policy Reviews, droger+w...@chromium.org, oshima...@chromium.org, zhangwen...@google.com
Attention needed from Hidehiko Abe

Mitsuru Oshima voted and added 2 comments

Votes added by Mitsuru Oshima

Code-Review+1

2 comments

File chrome/browser/ash/main_parts/chrome_browser_main_parts_ash.cc
Line 811, Patchset 2 (Latest): if (!base::SysInfo::IsRunningOnChromeOS()) {
Mitsuru Oshima . unresolved

optional:

#if !BUILDFLAG(IS_CHROMEOS_DEVICE)

to exclude non production code.

Line 1799, Patchset 2 (Latest): quirks_policy_controller_.reset();
Mitsuru Oshima . unresolved

It's less intuitive to reset then call shutdown related classes. Can you elaborate this dependency in the comment?

Open in Gerrit

Related details

Attention is currently required from:
  • Hidehiko Abe
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: I33f3d2b90e7d6975a0f40f6fefe89a9e0c8c7749
Gerrit-Change-Number: 6615403
Gerrit-PatchSet: 2
Gerrit-Owner: Hidehiko Abe <hide...@chromium.org>
Gerrit-Reviewer: Hidehiko Abe <hide...@chromium.org>
Gerrit-Reviewer: Mitsuru Oshima <osh...@chromium.org>
Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
Gerrit-CC: Enterprise Policy Reviews <enterprise-p...@google.com>
Gerrit-CC: Greg Levin <gle...@chromium.org>
Gerrit-Attention: Hidehiko Abe <hide...@chromium.org>
Gerrit-Comment-Date: Tue, 10 Jun 2025 19:22:24 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Hidehiko Abe (Gerrit)

unread,
Jun 12, 2025, 9:20:34 AM6/12/25
to Mitsuru Oshima, Code Review Nudger, Greg Levin, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, Enterprise Policy Reviews, droger+w...@chromium.org, oshima...@chromium.org, zhangwen...@google.com

Hidehiko Abe voted and added 3 comments

Votes added by Hidehiko Abe

Commit-Queue+2

3 comments

Patchset-level comments
File-level comment, Patchset 3 (Latest):
Hidehiko Abe . resolved

Thank you for review. Submitting.

File chrome/browser/ash/main_parts/chrome_browser_main_parts_ash.cc
Line 811, Patchset 2: if (!base::SysInfo::IsRunningOnChromeOS()) {
Mitsuru Oshima . resolved

optional:

#if !BUILDFLAG(IS_CHROMEOS_DEVICE)

to exclude non production code.

Hidehiko Abe

Done

Line 1799, Patchset 2: quirks_policy_controller_.reset();
Mitsuru Oshima . resolved

It's less intuitive to reset then call shutdown related classes. Can you elaborate this dependency in the comment?

Hidehiko Abe

Done

Open in Gerrit

Related details

Attention set is empty
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: I33f3d2b90e7d6975a0f40f6fefe89a9e0c8c7749
Gerrit-Change-Number: 6615403
Gerrit-PatchSet: 3
Gerrit-Owner: Hidehiko Abe <hide...@chromium.org>
Gerrit-Reviewer: Hidehiko Abe <hide...@chromium.org>
Gerrit-Reviewer: Mitsuru Oshima <osh...@chromium.org>
Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
Gerrit-CC: Enterprise Policy Reviews <enterprise-p...@google.com>
Gerrit-CC: Greg Levin <gle...@chromium.org>
Gerrit-Comment-Date: Thu, 12 Jun 2025 13:20:06 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Mitsuru Oshima <osh...@chromium.org>
satisfied_requirement
open
diffy

Chromium LUCI CQ (Gerrit)

unread,
Jun 12, 2025, 9:51:46 AM6/12/25
to Hidehiko Abe, Mitsuru Oshima, Code Review Nudger, Greg Levin, AyeAye, chromium...@chromium.org, Enterprise Policy Reviews, droger+w...@chromium.org, oshima...@chromium.org, zhangwen...@google.com

Chromium LUCI CQ submitted the change with unreviewed changes

Unreviewed changes

2 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:

```
The name of the file: chrome/browser/ash/main_parts/chrome_browser_main_parts_ash.cc
Insertions: 15, Deletions: 14.

The diff is too large to show. Please review the diff.
```

Change information

Commit message:
Remove chrome/browser/ash/display/quirks_manager_delegate_impl

The impl is living in //chrome. However, the actual dependency is
only user dir path injection for linux-chromeos.
That can be handled in chromeos-chrome start up in a way to override
an entry in PathService.

BUG=422082022
TEST=Tryjob
Change-Id: I33f3d2b90e7d6975a0f40f6fefe89a9e0c8c7749
Reviewed-by: Mitsuru Oshima <osh...@chromium.org>
Commit-Queue: Hidehiko Abe <hide...@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1473017}
Files:
  • M ash/display/display_color_manager_unittest.cc
  • M chrome/browser/ash/display/BUILD.gn
  • M chrome/browser/ash/display/DEPS
  • M chrome/browser/ash/display/quirks_browsertest.cc
  • D chrome/browser/ash/display/quirks_manager_delegate_impl.cc
  • D chrome/browser/ash/display/quirks_manager_delegate_impl.h
  • M chrome/browser/ash/main_parts/BUILD.gn
  • M chrome/browser/ash/main_parts/DEPS
  • M chrome/browser/ash/main_parts/chrome_browser_main_parts_ash.cc
  • M chrome/browser/ash/main_parts/chrome_browser_main_parts_ash.h
  • M chrome/browser/ash/policy/handlers/device_quirks_policy_browsertest.cc
  • A chromeos/ash/experiences/policy/handlers/quirks/BUILD.gn
  • A chromeos/ash/experiences/policy/handlers/quirks/DEPS
  • A chromeos/ash/experiences/policy/handlers/quirks/quirks_policy_controller.cc
  • A chromeos/ash/experiences/policy/handlers/quirks/quirks_policy_controller.h
  • M components/quirks/BUILD.gn
  • M components/quirks/DEPS
  • M components/quirks/quirks_client.cc
  • M components/quirks/quirks_client.h
  • M components/quirks/quirks_manager.cc
  • M components/quirks/quirks_manager.h
Change size: L
Delta: 21 files changed, 191 insertions(+), 208 deletions(-)
Branch: refs/heads/main
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by Mitsuru Oshima
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I33f3d2b90e7d6975a0f40f6fefe89a9e0c8c7749
Gerrit-Change-Number: 6615403
Gerrit-PatchSet: 4
Gerrit-Owner: Hidehiko Abe <hide...@chromium.org>
Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Reviewer: Hidehiko Abe <hide...@chromium.org>
Gerrit-Reviewer: Mitsuru Oshima <osh...@chromium.org>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages