[Ash] Set primary account consent level to Signin for new profiles [chromium/src : main]

1 view
Skip to first unread message

Marc Treib (Gerrit)

unread,
Apr 28, 2026, 9:50:29 AM (7 days ago) Apr 28
to Mahmoud Rashad, Marc Treib, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, crost...@chromium.org, droger+w...@chromium.org, rrsilva+wat...@google.com, tbarzi...@chromium.org
Attention needed from Mahmoud Rashad

Marc Treib added 8 comments

File chrome/browser/ash/file_suggest/item_suggest_cache.cc
Line 336, Patchset 11 (Latest): signin::GetPrimaryAccountConsentLevel(identity_manager));
Marc Treib . unresolved

Does this actually need to depend on the new helper? I was expecting to just check the `kReplaceSyncPromos..` flag here, like we did on other platforms. (Then all these changes could also be done independently of introducing the new flag.)

File chrome/browser/ash/login/session/chrome_session_manager.cc
Line 177, Patchset 11 (Latest): signin::GetPrimaryAccountConsentLevel(identity_manager);
Marc Treib . unresolved

At this point, there is no primary account yet, so presumably we cannot get its consent level?!

File components/signin/public/base/signin_switches.h
Line 658, Patchset 11 (Latest):BASE_DECLARE_FEATURE(kChromeOSSignInOnly);
Marc Treib . unresolved

nit: Put this at the end of the file; reusing an existing CrOS section in the middle is just kinda confusing

File components/signin/public/base/signin_switches.cc
Line 686, Patchset 11 (Latest):BASE_FEATURE(kChromeOSSignInOnly, base::FEATURE_DISABLED_BY_DEFAULT);
Marc Treib . unresolved

Please add documentation for what this does

File components/signin/public/identity_manager/identity_utils.h
Line 49, Patchset 11 (Latest):ConsentLevel GetPrimaryAccountConsentLevel(
Marc Treib . unresolved

There is a function with the same name in a test utils file: https://source.chromium.org/chromium/chromium/src/+/main:components/signin/public/identity_manager/identity_test_utils.h;drc=81862aca3afbc463d2e2c2f3fcd1b512e269a3d2;l=57
(I was quite confused for a while, wondering why you're calling a test-only util in prod...)

Can you please give this (a) a unique name, and (b) a better name (currently it sounds like it's just querying the consent level of the existing primary account). Maybe something like "GetConsentLevelToUseForPrimaryAccount"?

File components/signin/public/identity_manager/identity_utils.cc
Line 104, Patchset 11 (Latest): CHECK(identity_manager);
Marc Treib . unresolved

nit: If it mustn't be null, pass by const ref instead of by pointer

Line 106, Patchset 11 (Latest): base::FeatureList::IsEnabled(switches::kChromeOSSignInOnly)
Marc Treib . unresolved

Should we also check `kReplaceSyncPromos..` here? The new flag should never be enabled without that one, but just to be safe.

Open in Gerrit

Related details

Attention is currently required from:
  • Mahmoud Rashad
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • 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: If3431282a1ec46376e28fc1a01dccb78c7a5bfdb
Gerrit-Change-Number: 7795952
Gerrit-PatchSet: 11
Gerrit-Owner: Mahmoud Rashad <mmra...@google.com>
Gerrit-Reviewer: Mahmoud Rashad <mmra...@google.com>
Gerrit-Reviewer: Marc Treib <tr...@chromium.org>
Gerrit-Attention: Mahmoud Rashad <mmra...@google.com>
Gerrit-Comment-Date: Tue, 28 Apr 2026 13:50:16 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Mahmoud Rashad (Gerrit)

unread,
Apr 29, 2026, 2:30:14 AM (6 days ago) Apr 29
to Marc Treib, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, crost...@chromium.org, droger+w...@chromium.org, rrsilva+wat...@google.com, tbarzi...@chromium.org
Attention needed from Marc Treib

Mahmoud Rashad added 8 comments

File chrome/browser/ash/file_suggest/item_suggest_cache.cc
Line 336, Patchset 11: signin::GetPrimaryAccountConsentLevel(identity_manager));
Marc Treib . resolved

Does this actually need to depend on the new helper? I was expecting to just check the `kReplaceSyncPromos..` flag here, like we did on other platforms. (Then all these changes could also be done independently of introducing the new flag.)

Mahmoud Rashad

You're right! only the set occurrences should be guarded by the new flag.

File chrome/browser/ash/login/session/chrome_session_manager.cc
Line 177, Patchset 11: signin::GetPrimaryAccountConsentLevel(identity_manager);
Marc Treib . unresolved

At this point, there is no primary account yet, so presumably we cannot get its consent level?!

Mahmoud Rashad

It works fine even if there's no primary account yet. It will just return false.

Line 177, Patchset 11: signin::GetPrimaryAccountConsentLevel(identity_manager);
Marc Treib . resolved
Mahmoud Rashad

Marked as resolved.

File components/signin/public/base/signin_switches.h
Line 658, Patchset 11:BASE_DECLARE_FEATURE(kChromeOSSignInOnly);
Marc Treib . resolved

nit: Put this at the end of the file; reusing an existing CrOS section in the middle is just kinda confusing

Mahmoud Rashad

This should be kept sorted, I put it in the correct order.

File components/signin/public/base/signin_switches.cc
Line 686, Patchset 11:BASE_FEATURE(kChromeOSSignInOnly, base::FEATURE_DISABLED_BY_DEFAULT);
Marc Treib . resolved

Please add documentation for what this does

Mahmoud Rashad

Documented in the .h

File components/signin/public/identity_manager/identity_utils.h
Line 49, Patchset 11:ConsentLevel GetPrimaryAccountConsentLevel(
Marc Treib . resolved

There is a function with the same name in a test utils file: https://source.chromium.org/chromium/chromium/src/+/main:components/signin/public/identity_manager/identity_test_utils.h;drc=81862aca3afbc463d2e2c2f3fcd1b512e269a3d2;l=57
(I was quite confused for a while, wondering why you're calling a test-only util in prod...)

Can you please give this (a) a unique name, and (b) a better name (currently it sounds like it's just querying the consent level of the existing primary account). Maybe something like "GetConsentLevelToUseForPrimaryAccount"?

Mahmoud Rashad

Done

File components/signin/public/identity_manager/identity_utils.cc
Line 104, Patchset 11: CHECK(identity_manager);
Marc Treib . resolved

nit: If it mustn't be null, pass by const ref instead of by pointer

Mahmoud Rashad

Done

Line 106, Patchset 11: base::FeatureList::IsEnabled(switches::kChromeOSSignInOnly)
Marc Treib . resolved

Should we also check `kReplaceSyncPromos..` here? The new flag should never be enabled without that one, but just to be safe.

Mahmoud Rashad

I already replaced this one with kReplaceSyncPromos..

Open in Gerrit

Related details

Attention is currently required from:
  • Marc Treib
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • 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: If3431282a1ec46376e28fc1a01dccb78c7a5bfdb
Gerrit-Change-Number: 7795952
Gerrit-PatchSet: 16
Gerrit-Owner: Mahmoud Rashad <mmra...@google.com>
Gerrit-Reviewer: Mahmoud Rashad <mmra...@google.com>
Gerrit-Reviewer: Marc Treib <tr...@chromium.org>
Gerrit-Attention: Marc Treib <tr...@chromium.org>
Gerrit-Comment-Date: Wed, 29 Apr 2026 06:29:54 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Marc Treib <tr...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Marc Treib (Gerrit)

unread,
Apr 29, 2026, 4:28:43 AM (6 days ago) Apr 29
to Mahmoud Rashad, Marc Treib, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, crost...@chromium.org, droger+w...@chromium.org, rrsilva+wat...@google.com, tbarzi...@chromium.org
Attention needed from Mahmoud Rashad

Marc Treib added 4 comments

Commit Message
Line 18, Patchset 16 (Latest):when the `kReplaceSyncPromosWithSignInPromos` flag is enabled AND the
profile is not using legacy sync (`!HasPrimaryAccount(kSync)`). This
Marc Treib . unresolved

I don't think the second part of the condition is even needed? Asking for a kSignin access token while there is a kSync account is perfectly fine and safe. It's just specifying the *minimum* consent level that's required.

Line 10, Patchset 16 (Latest):the sign-in only model. It:

1. Updates `UserSessionManager` and `ChromeSessionManager` to set the
primary account consent level to `kSignin` (instead of `kSync`) for new
profiles when both the `kReplaceSyncPromosWithSignInPromos` and
`kChromeOSSignInOnly` flags are enabled.

2. Updates several handlers and delegates to use `ConsentLevel::kSignin`
when the `kReplaceSyncPromosWithSignInPromos` flag is enabled AND the
profile is not using legacy sync (`!HasPrimaryAccount(kSync)`). This
guarantees zero behavioral change when that flag is off or for existing
profiles.
Marc Treib . unresolved

Can these two things be separate CLs now? I think 2. can (and should) be landed separately first.

File chrome/browser/ash/login/session/chrome_session_manager.cc
Line 177, Patchset 11: signin::GetPrimaryAccountConsentLevel(identity_manager);
Marc Treib . resolved

At this point, there is no primary account yet, so presumably we cannot get its consent level?!

Mahmoud Rashad

It works fine even if there's no primary account yet. It will just return false.

Marc Treib

Acknowledged

File components/signin/public/base/signin_switches.h
Line 217, Patchset 16 (Latest):BASE_DECLARE_FEATURE(kChromeOSSignInOnly);
Marc Treib . unresolved

Let's try to find a more descriptive name for this.
Something like `kChromeOsUseConsentLevelSigninForNewUsers`?

Open in Gerrit

Related details

Attention is currently required from:
  • Mahmoud Rashad
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • 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: If3431282a1ec46376e28fc1a01dccb78c7a5bfdb
Gerrit-Change-Number: 7795952
Gerrit-PatchSet: 16
Gerrit-Owner: Mahmoud Rashad <mmra...@google.com>
Gerrit-Reviewer: Mahmoud Rashad <mmra...@google.com>
Gerrit-Reviewer: Marc Treib <tr...@chromium.org>
Gerrit-Attention: Mahmoud Rashad <mmra...@google.com>
Gerrit-Comment-Date: Wed, 29 Apr 2026 08:28:28 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Mahmoud Rashad <mmra...@google.com>
Comment-In-Reply-To: Marc Treib <tr...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Marc Treib (Gerrit)

unread,
Apr 29, 2026, 12:45:31 PM (6 days ago) Apr 29
to Mahmoud Rashad, Marc Treib, Chromium LUCI CQ, chromium...@chromium.org, rrsilva+wat...@google.com, tbarzi...@chromium.org
Attention needed from Mahmoud Rashad

Marc Treib voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • Mahmoud Rashad
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not 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: Ic5f78de6d15c13dd21468815a96769aeddd9ea61
    Gerrit-Change-Number: 7803691
    Gerrit-PatchSet: 2
    Gerrit-Owner: Mahmoud Rashad <mmra...@google.com>
    Gerrit-Reviewer: Mahmoud Rashad <mmra...@google.com>
    Gerrit-Reviewer: Marc Treib <tr...@chromium.org>
    Gerrit-Attention: Mahmoud Rashad <mmra...@google.com>
    Gerrit-Comment-Date: Wed, 29 Apr 2026 16:45:16 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    gwsq (Gerrit)

    unread,
    Apr 29, 2026, 5:02:58 PM (6 days ago) Apr 29
    to Chrome Signin Team, Boris Sazonov, Marc Treib, Chromium LUCI CQ, chromium...@chromium.org, rrsilva+wat...@google.com, tbarzi...@chromium.org
    Attention needed from Boris Sazonov

    Message from gwsq

    Reviewer source(s):
    bsaz...@chromium.org is from context(googleclient/chrome/chromium_gwsq/components/signin/config.gwsq)

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Boris Sazonov
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not 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: Ic5f78de6d15c13dd21468815a96769aeddd9ea61
    Gerrit-Change-Number: 7803691
    Gerrit-PatchSet: 2
    Gerrit-Owner: Mahmoud Rashad <mmra...@google.com>
    Gerrit-Reviewer: Boris Sazonov <bsaz...@chromium.org>
    Gerrit-Reviewer: Mahmoud Rashad <mmra...@google.com>
    Gerrit-Reviewer: Marc Treib <tr...@chromium.org>
    Gerrit-CC: Chrome Signin Team <chrome-sig...@google.com>
    Gerrit-CC: gwsq
    Gerrit-Attention: Boris Sazonov <bsaz...@chromium.org>
    Gerrit-Comment-Date: Wed, 29 Apr 2026 21:02:47 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Mahmoud Rashad (Gerrit)

    unread,
    May 4, 2026, 4:37:27 AM (yesterday) May 4
    to Chrome Signin Team, Boris Sazonov, Marc Treib, Chromium LUCI CQ, chromium...@chromium.org, rrsilva+wat...@google.com, tbarzi...@chromium.org
    Attention needed from Boris Sazonov

    Mahmoud Rashad added 1 comment

    Patchset-level comments
    File-level comment, Patchset 2 (Latest):
    Mahmoud Rashad . resolved

    Friendly ping!

    Gerrit-Comment-Date: Mon, 04 May 2026 08:37:12 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Boris Sazonov (Gerrit)

    unread,
    May 4, 2026, 7:17:30 AM (yesterday) May 4
    to Mahmoud Rashad, Chrome Signin Team, Boris Sazonov, Marc Treib, Chromium LUCI CQ, chromium...@chromium.org, rrsilva+wat...@google.com, tbarzi...@chromium.org
    Attention needed from Mahmoud Rashad

    Boris Sazonov added 1 comment

    File components/signin/internal/identity_manager/primary_account_mutator_impl.cc
    Line 78, Patchset 2 (Parent):#if BUILDFLAG(IS_CHROMEOS)
    // On Chrome OS the UPA can only be set once and never removed or changed.
    DCHECK(
    !primary_account_manager_->HasPrimaryAccount(ConsentLevel::kSignin));
    #endif
    Boris Sazonov . unresolved

    The removed check along with [this check](https://source.chromium.org/chromium/chromium/src/+/main:components/signin/internal/identity_manager/primary_account_manager.cc;l=521;drc=87f4290357c0c1cb422a10d31670acfb9dff1b72) were ensuring that the primary account never changes on ChromeOS. I think we need to ensure that this is still the case after your CL. Would you mind adding a ChromeOS-specific check to keep this invariant secure? ChromeOS code wasn't built with account switching in mind, so it seems pretty important to ensure this.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Mahmoud Rashad
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not 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: Ic5f78de6d15c13dd21468815a96769aeddd9ea61
      Gerrit-Change-Number: 7803691
      Gerrit-PatchSet: 2
      Gerrit-Owner: Mahmoud Rashad <mmra...@google.com>
      Gerrit-Reviewer: Boris Sazonov <bsaz...@chromium.org>
      Gerrit-Reviewer: Mahmoud Rashad <mmra...@google.com>
      Gerrit-Reviewer: Marc Treib <tr...@chromium.org>
      Gerrit-CC: Chrome Signin Team <chrome-sig...@google.com>
      Gerrit-CC: gwsq
      Gerrit-Attention: Mahmoud Rashad <mmra...@google.com>
      Gerrit-Comment-Date: Mon, 04 May 2026 11:17:08 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Mahmoud Rashad (Gerrit)

      unread,
      May 4, 2026, 9:19:03 AM (23 hours ago) May 4
      to android-bu...@system.gserviceaccount.com, Chrome Signin Team, Boris Sazonov, Marc Treib, Chromium LUCI CQ, chromium...@chromium.org, droger+w...@chromium.org, crost...@chromium.org, rrsilva+wat...@google.com, tbarzi...@chromium.org
      Attention needed from Boris Sazonov

      Mahmoud Rashad added 1 comment

      File components/signin/internal/identity_manager/primary_account_mutator_impl.cc
      Line 78, Patchset 2 (Parent):#if BUILDFLAG(IS_CHROMEOS)
      // On Chrome OS the UPA can only be set once and never removed or changed.
      DCHECK(
      !primary_account_manager_->HasPrimaryAccount(ConsentLevel::kSignin));
      #endif
      Boris Sazonov . resolved

      The removed check along with [this check](https://source.chromium.org/chromium/chromium/src/+/main:components/signin/internal/identity_manager/primary_account_manager.cc;l=521;drc=87f4290357c0c1cb422a10d31670acfb9dff1b72) were ensuring that the primary account never changes on ChromeOS. I think we need to ensure that this is still the case after your CL. Would you mind adding a ChromeOS-specific check to keep this invariant secure? ChromeOS code wasn't built with account switching in mind, so it seems pretty important to ensure this.

      Mahmoud Rashad

      Done

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Boris Sazonov
      Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not 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: Ic5f78de6d15c13dd21468815a96769aeddd9ea61
        Gerrit-Change-Number: 7803691
        Gerrit-PatchSet: 4
        Gerrit-Owner: Mahmoud Rashad <mmra...@google.com>
        Gerrit-Reviewer: Boris Sazonov <bsaz...@chromium.org>
        Gerrit-Reviewer: Mahmoud Rashad <mmra...@google.com>
        Gerrit-Reviewer: Marc Treib <tr...@chromium.org>
        Gerrit-CC: Chrome Signin Team <chrome-sig...@google.com>
        Gerrit-CC: gwsq
        Gerrit-Attention: Boris Sazonov <bsaz...@chromium.org>
        Gerrit-Comment-Date: Mon, 04 May 2026 13:18:45 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Boris Sazonov <bsaz...@chromium.org>
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Boris Sazonov (Gerrit)

        unread,
        7:14 AM (1 hour ago) 7:14 AM
        to Mahmoud Rashad, android-bu...@system.gserviceaccount.com, Chrome Signin Team, Boris Sazonov, Marc Treib, Chromium LUCI CQ, chromium...@chromium.org, droger+w...@chromium.org, crost...@chromium.org, rrsilva+wat...@google.com, tbarzi...@chromium.org
        Attention needed from Mahmoud Rashad

        Boris Sazonov added 1 comment

        File components/signin/internal/identity_manager/primary_account_mutator_impl.cc
        Line 85, Patchset 4 (Latest): DCHECK_EQ(account_info,
        Boris Sazonov . unresolved

        [Nit] Consider using `CHECK_EQ` instead of `DCHECK_EQ`.

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Mahmoud Rashad
        Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement is not satisfiedCode-Owners
          • requirement is not satisfiedCode-Review
          • requirement is not satisfiedNo-Unresolved-Comments
          • 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: Ic5f78de6d15c13dd21468815a96769aeddd9ea61
          Gerrit-Change-Number: 7803691
          Gerrit-PatchSet: 4
          Gerrit-Owner: Mahmoud Rashad <mmra...@google.com>
          Gerrit-Reviewer: Boris Sazonov <bsaz...@chromium.org>
          Gerrit-Reviewer: Mahmoud Rashad <mmra...@google.com>
          Gerrit-Reviewer: Marc Treib <tr...@chromium.org>
          Gerrit-CC: Chrome Signin Team <chrome-sig...@google.com>
          Gerrit-CC: gwsq
          Gerrit-Attention: Mahmoud Rashad <mmra...@google.com>
          Gerrit-Comment-Date: Tue, 05 May 2026 11:14:29 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Boris Sazonov (Gerrit)

          unread,
          7:14 AM (1 hour ago) 7:14 AM
          to Mahmoud Rashad, Boris Sazonov, android-bu...@system.gserviceaccount.com, Chrome Signin Team, Marc Treib, Chromium LUCI CQ, chromium...@chromium.org, droger+w...@chromium.org, crost...@chromium.org, rrsilva+wat...@google.com, tbarzi...@chromium.org
          Attention needed from Mahmoud Rashad

          Boris Sazonov voted and added 1 comment

          Votes added by Boris Sazonov

          Code-Review+1

          1 comment

          Patchset-level comments
          File-level comment, Patchset 4 (Latest):
          Boris Sazonov . resolved

          LGTM % comment.

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Mahmoud Rashad
          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: Ic5f78de6d15c13dd21468815a96769aeddd9ea61
          Gerrit-Change-Number: 7803691
          Gerrit-PatchSet: 4
          Gerrit-Owner: Mahmoud Rashad <mmra...@google.com>
          Gerrit-Reviewer: Boris Sazonov <bsaz...@chromium.org>
          Gerrit-Reviewer: Mahmoud Rashad <mmra...@google.com>
          Gerrit-Reviewer: Marc Treib <tr...@chromium.org>
          Gerrit-CC: Chrome Signin Team <chrome-sig...@google.com>
          Gerrit-CC: gwsq
          Gerrit-Attention: Mahmoud Rashad <mmra...@google.com>
          Gerrit-Comment-Date: Tue, 05 May 2026 11:14:44 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: Yes
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Mahmoud Rashad (Gerrit)

          unread,
          7:48 AM (1 hour ago) 7:48 AM
          to Boris Sazonov, android-bu...@system.gserviceaccount.com, Chrome Signin Team, Marc Treib, Chromium LUCI CQ, chromium...@chromium.org, droger+w...@chromium.org, crost...@chromium.org, rrsilva+wat...@google.com, tbarzi...@chromium.org

          Mahmoud Rashad voted Commit-Queue+2

          Commit-Queue+2
          Open in Gerrit

          Related details

          Attention set is empty
          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: Ic5f78de6d15c13dd21468815a96769aeddd9ea61
            Gerrit-Change-Number: 7803691
            Gerrit-PatchSet: 5
            Gerrit-Owner: Mahmoud Rashad <mmra...@google.com>
            Gerrit-Reviewer: Boris Sazonov <bsaz...@chromium.org>
            Gerrit-Reviewer: Mahmoud Rashad <mmra...@google.com>
            Gerrit-Reviewer: Marc Treib <tr...@chromium.org>
            Gerrit-CC: Chrome Signin Team <chrome-sig...@google.com>
            Gerrit-CC: gwsq
            Gerrit-Comment-Date: Tue, 05 May 2026 11:47:51 +0000
            Gerrit-HasComments: No
            Gerrit-Has-Labels: Yes
            satisfied_requirement
            open
            diffy

            Mahmoud Rashad (Gerrit)

            unread,
            7:48 AM (1 hour ago) 7:48 AM
            to Boris Sazonov, android-bu...@system.gserviceaccount.com, Chrome Signin Team, Marc Treib, Chromium LUCI CQ, chromium...@chromium.org, droger+w...@chromium.org, crost...@chromium.org, rrsilva+wat...@google.com, tbarzi...@chromium.org

            Mahmoud Rashad added 2 comments

            Patchset-level comments
            File-level comment, Patchset 5 (Latest):
            Mahmoud Rashad . resolved

            Thanks!

            File components/signin/internal/identity_manager/primary_account_mutator_impl.cc
            Line 85, Patchset 4: DCHECK_EQ(account_info,
            Boris Sazonov . resolved

            [Nit] Consider using `CHECK_EQ` instead of `DCHECK_EQ`.

            Mahmoud Rashad

            Done

            Gerrit-Comment-Date: Tue, 05 May 2026 11:47:46 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: No
            Comment-In-Reply-To: Boris Sazonov <bsaz...@chromium.org>
            satisfied_requirement
            open
            diffy

            Chromium LUCI CQ (Gerrit)

            unread,
            8:35 AM (7 minutes ago) 8:35 AM
            to Mahmoud Rashad, Boris Sazonov, android-bu...@system.gserviceaccount.com, Chrome Signin Team, Marc Treib, chromium...@chromium.org, droger+w...@chromium.org, crost...@chromium.org, rrsilva+wat...@google.com, tbarzi...@chromium.org

            Chromium LUCI CQ submitted the change with unreviewed changes

            Unreviewed changes

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

            ```
            The name of the file: components/signin/internal/identity_manager/primary_account_mutator_impl.cc
            Insertions: 3, Deletions: 3.

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

            Change information

            Commit message:
            Set primary account consent level to Signin for new profiles

            This CL updates the primary account consent level on ChromeOS to support
            the sign-in only model. It updates `UserSessionManager` and

            `ChromeSessionManager` to set the primary account consent level to
            `kSignin` (instead of `kSync`) for new profiles when both the
            `kReplaceSyncPromosWithSignInPromos` and
            `kChromeOsUseConsentLevelSigninForNewUsers` flags are enabled.
            Bug: 509847617
            Change-Id: Ic5f78de6d15c13dd21468815a96769aeddd9ea61
            Reviewed-by: Boris Sazonov <bsaz...@chromium.org>
            Commit-Queue: Mahmoud Rashad <mmra...@google.com>
            Cr-Commit-Position: refs/heads/main@{#1625337}
            Files:
            • M chrome/browser/ash/login/session/chrome_session_manager.cc
            • M chrome/browser/ash/login/session/user_session_manager.cc
            • M components/signin/internal/identity_manager/primary_account_mutator_impl.cc
            • M components/signin/public/base/signin_switches.cc
            • M components/signin/public/base/signin_switches.h
            Change size: M
            Delta: 5 files changed, 55 insertions(+), 11 deletions(-)
            Branch: refs/heads/main
            Submit Requirements:
            • requirement satisfiedCode-Review: +1 by Boris Sazonov
            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: Ic5f78de6d15c13dd21468815a96769aeddd9ea61
            Gerrit-Change-Number: 7803691
            Gerrit-PatchSet: 7
            Gerrit-Owner: Mahmoud Rashad <mmra...@google.com>
            Gerrit-Reviewer: Boris Sazonov <bsaz...@chromium.org>
            Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
            Gerrit-Reviewer: Mahmoud Rashad <mmra...@google.com>
            Gerrit-Reviewer: Marc Treib <tr...@chromium.org>
            Gerrit-CC: Chrome Signin Team <chrome-sig...@google.com>
            open
            diffy
            satisfied_requirement
            Reply all
            Reply to author
            Forward
            0 new messages