Rename `IsAccountStorageEnabled()` to `IsAccountStorageActive()` [chromium/src : main]

0 views
Skip to first unread message

Thomas Thrainer (Gerrit)

unread,
Dec 19, 2025, 9:09:49 AM12/19/25
to AyeAye, feature-me...@chromium.org, ios-r...@chromium.org, derinel+wat...@google.com, tmartino+tran...@chromium.org, ios-rev...@chromium.org, dullweb...@chromium.org, ios-web-view...@google.com, chromium-a...@chromium.org, ios-revie...@chromium.org, msrame...@chromium.org, marq+...@chromium.org, extension...@chromium.org, webauthn...@chromium.org, gcasto+w...@chromium.org, vasilii+watchlis...@chromium.org

Thomas Thrainer abandoned this change

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • 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: abandon
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I468bac65caf82f3e5ff088b36c023e2a6a6a6964
Gerrit-Change-Number: 7274608
Gerrit-PatchSet: 1
Gerrit-Owner: Thomas Thrainer <thom...@google.com>
satisfied_requirement
unsatisfied_requirement
open
diffy

Thomas Thrainer (Gerrit)

unread,
Dec 19, 2025, 9:51:44 AM12/19/25
to Ioana Pandele, Chromium LUCI CQ, AyeAye, chromium-a...@chromium.org, extension...@chromium.org, derinel+wat...@google.com, gcasto+w...@chromium.org, ios-rev...@chromium.org, ios-web-view...@google.com, dullweb...@chromium.org, msrame...@chromium.org, feature-me...@chromium.org, tmartino+tran...@chromium.org, marq+...@chromium.org, ios-r...@chromium.org, vasilii+watchlis...@chromium.org, webauthn...@chromium.org, ios-revie...@chromium.org
Attention needed from Ioana Pandele

Thomas Thrainer added 1 comment

Patchset-level comments
File-level comment, Patchset 3 (Latest):
Thomas Thrainer . resolved

Hi Ioana!

I took a stab at letting Gemini make the renaming we talked about the other day. I cleaned up the changes and split them in a bunch of CLs, and I think this first one is ready for review now.

This review isn't time critical at all, I'll be OOO over the holidays anyways. But I wanted to share it already so you're aware that I started looking into this 😊.

Cheers & happy holidays,
Thomas

Open in Gerrit

Related details

Attention is currently required from:
  • Ioana Pandele
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: I0c730eca61ffe072189ed6381dcc0c016a6a6964
Gerrit-Change-Number: 7277057
Gerrit-PatchSet: 3
Gerrit-Owner: Thomas Thrainer <thom...@google.com>
Gerrit-Reviewer: Ioana Pandele <ioa...@chromium.org>
Gerrit-Reviewer: Thomas Thrainer <thom...@google.com>
Gerrit-Attention: Ioana Pandele <ioa...@chromium.org>
Gerrit-Comment-Date: Fri, 19 Dec 2025 14:51:31 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Ioana Pandele (Gerrit)

unread,
8:13 AM (11 hours ago) 8:13 AM
to Thomas Thrainer, Code Review Nudger, Chromium LUCI CQ, AyeAye, chromium-a...@chromium.org, extension...@chromium.org, derinel+wat...@google.com, gcasto+w...@chromium.org, ios-rev...@chromium.org, ios-web-view...@google.com, dullweb...@chromium.org, msrame...@chromium.org, feature-me...@chromium.org, tmartino+tran...@chromium.org, marq+...@chromium.org, ios-r...@chromium.org, vasilii+watchlis...@chromium.org, webauthn...@chromium.org, ios-revie...@chromium.org
Attention needed from Thomas Thrainer

Ioana Pandele voted and added 3 comments

Votes added by Ioana Pandele

Code-Review+1

3 comments

Patchset-level comments
File-level comment, Patchset 5 (Latest):
Ioana Pandele . resolved

LGTM! Thank you!

File chrome/browser/extensions/api/passwords_private/passwords_private_delegate_impl.cc
Line 834, Patchset 5 (Latest):bool PasswordsPrivateDelegateImpl::IsAccountStorageEnabled() {
Ioana Pandele . unresolved

Could you please file a bug for updating the names/intention of these methods too and add it to the fixit hotlist? There are multiple cases now in which a method called IsAccountStorageEnabled calls IsAccountStorageActive.

File components/password_manager/core/browser/features/password_manager_features_util.h
Line 49, Patchset 5 (Latest):// signed-in user. This always returns false for sync-the-feature users and
Ioana Pandele . unresolved

nit: Should we add a disclaimer that these users sync passwords from the profile store instead? Only because in combination with the paragraph below, it might sound like passwords are synced to the Google account only if IsAccountStorageActive is true.

Open in Gerrit

Related details

Attention is currently required from:
  • Thomas Thrainer
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: I0c730eca61ffe072189ed6381dcc0c016a6a6964
    Gerrit-Change-Number: 7277057
    Gerrit-PatchSet: 5
    Gerrit-Owner: Thomas Thrainer <thom...@google.com>
    Gerrit-Reviewer: Ioana Pandele <ioa...@chromium.org>
    Gerrit-Reviewer: Thomas Thrainer <thom...@google.com>
    Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
    Gerrit-Attention: Thomas Thrainer <thom...@google.com>
    Gerrit-Comment-Date: Mon, 19 Jan 2026 13:12:52 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Thomas Thrainer (Gerrit)

    unread,
    8:26 AM (11 hours ago) 8:26 AM
    to Ioana Pandele, Code Review Nudger, Chromium LUCI CQ, AyeAye, chromium-a...@chromium.org, extension...@chromium.org, derinel+wat...@google.com, gcasto+w...@chromium.org, ios-rev...@chromium.org, ios-web-view...@google.com, dullweb...@chromium.org, msrame...@chromium.org, feature-me...@chromium.org, tmartino+tran...@chromium.org, marq+...@chromium.org, ios-r...@chromium.org, vasilii+watchlis...@chromium.org, webauthn...@chromium.org, ios-revie...@chromium.org

    Thomas Thrainer added 2 comments

    File chrome/browser/extensions/api/passwords_private/passwords_private_delegate_impl.cc
    Line 834, Patchset 5:bool PasswordsPrivateDelegateImpl::IsAccountStorageEnabled() {
    Ioana Pandele . resolved

    Could you please file a bug for updating the names/intention of these methods too and add it to the fixit hotlist? There are multiple cases now in which a method called IsAccountStorageEnabled calls IsAccountStorageActive.

    Thomas Thrainer

    There's actually a whole list of follow-up CLs that I'm going to send your way after this one (https://crrev.com/c/7278259, https://crrev.com/c/7277269, https://crrev.com/c/7280345 and https://crrev.com/c/7280346). They cover this (and other) methods. I saw crbug.com/469954506 as the umbrella bug for all of those changes...

    File components/password_manager/core/browser/features/password_manager_features_util.h
    Line 49, Patchset 5:// signed-in user. This always returns false for sync-the-feature users and
    Ioana Pandele . resolved

    nit: Should we add a disclaimer that these users sync passwords from the profile store instead? Only because in combination with the paragraph below, it might sound like passwords are synced to the Google account only if IsAccountStorageActive is true.

    Thomas Thrainer

    Done.

    Open in Gerrit

    Related details

    Attention set is empty
    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: I0c730eca61ffe072189ed6381dcc0c016a6a6964
      Gerrit-Change-Number: 7277057
      Gerrit-PatchSet: 6
      Gerrit-Owner: Thomas Thrainer <thom...@google.com>
      Gerrit-Reviewer: Ioana Pandele <ioa...@chromium.org>
      Gerrit-Reviewer: Thomas Thrainer <thom...@google.com>
      Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
      Gerrit-Comment-Date: Mon, 19 Jan 2026 13:26:14 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Ioana Pandele <ioa...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      gwsq (Gerrit)

      unread,
      8:33 AM (11 hours ago) 8:33 AM
      to Thomas Thrainer, Chromium Sync Reviews, Ankush Singh, Mohamed Amir Yosef, Martin Šrámek, Vasilii Sukhanov, Rafał Godlewski, Hiroshi Ichikawa, Sylvain Defresne, Alexis Hétu, Ioana Pandele, Code Review Nudger, Chromium LUCI CQ, AyeAye, chromium-a...@chromium.org, extension...@chromium.org, derinel+wat...@google.com, gcasto+w...@chromium.org, ios-rev...@chromium.org, ios-web-view...@google.com, dullweb...@chromium.org, msrame...@chromium.org, feature-me...@chromium.org, tmartino+tran...@chromium.org, marq+...@chromium.org, ios-r...@chromium.org, vasilii+watchlis...@chromium.org, webauthn...@chromium.org, ios-revie...@chromium.org
      Attention needed from Alexis Hétu, Ankush Singh, Hiroshi Ichikawa, Martin Šrámek, Mohamed Amir Yosef, Rafał Godlewski, Sylvain Defresne and Vasilii Sukhanov

      Message from gwsq

      Reviewer source(s):
      ankus...@google.com is from context(googleclient/chrome/chromium_gwsq/components/sync/config.gwsq)

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Alexis Hétu
      • Ankush Singh
      • Hiroshi Ichikawa
      • Martin Šrámek
      • Mohamed Amir Yosef
      • Rafał Godlewski
      • Sylvain Defresne
      • Vasilii Sukhanov
      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: I0c730eca61ffe072189ed6381dcc0c016a6a6964
      Gerrit-Change-Number: 7277057
      Gerrit-PatchSet: 6
      Gerrit-Owner: Thomas Thrainer <thom...@google.com>
      Gerrit-Reviewer: Alexis Hétu <su...@chromium.org>
      Gerrit-Reviewer: Ankush Singh <ankus...@google.com>
      Gerrit-Reviewer: Hiroshi Ichikawa <ichi...@chromium.org>
      Gerrit-Reviewer: Ioana Pandele <ioa...@chromium.org>
      Gerrit-Reviewer: Martin Šrámek <msr...@chromium.org>
      Gerrit-Reviewer: Mohamed Amir Yosef <ma...@chromium.org>
      Gerrit-Reviewer: Rafał Godlewski <rg...@google.com>
      Gerrit-Reviewer: Sylvain Defresne <sdef...@chromium.org>
      Gerrit-Reviewer: Thomas Thrainer <thom...@google.com>
      Gerrit-Reviewer: Vasilii Sukhanov <vas...@chromium.org>
      Gerrit-CC: Chromium Sync Reviews <chromium-s...@google.com>
      Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
      Gerrit-CC: gwsq
      Gerrit-Attention: Ankush Singh <ankus...@google.com>
      Gerrit-Attention: Alexis Hétu <su...@chromium.org>
      Gerrit-Attention: Hiroshi Ichikawa <ichi...@chromium.org>
      Gerrit-Attention: Mohamed Amir Yosef <ma...@chromium.org>
      Gerrit-Attention: Martin Šrámek <msr...@chromium.org>
      Gerrit-Attention: Rafał Godlewski <rg...@google.com>
      Gerrit-Attention: Sylvain Defresne <sdef...@chromium.org>
      Gerrit-Attention: Vasilii Sukhanov <vas...@chromium.org>
      Gerrit-Comment-Date: Mon, 19 Jan 2026 13:32:44 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Mohamed Amir Yosef (Gerrit)

      unread,
      8:33 AM (11 hours ago) 8:33 AM
      to Thomas Thrainer, Chromium Sync Reviews, Ankush Singh, Martin Šrámek, Vasilii Sukhanov, Rafał Godlewski, Hiroshi Ichikawa, Sylvain Defresne, Alexis Hétu, Ioana Pandele, Code Review Nudger, Chromium LUCI CQ, AyeAye, chromium-a...@chromium.org, extension...@chromium.org, derinel+wat...@google.com, gcasto+w...@chromium.org, ios-rev...@chromium.org, ios-web-view...@google.com, dullweb...@chromium.org, msrame...@chromium.org, feature-me...@chromium.org, tmartino+tran...@chromium.org, marq+...@chromium.org, ios-r...@chromium.org, vasilii+watchlis...@chromium.org, webauthn...@chromium.org, ios-revie...@chromium.org
      Attention needed from Alexis Hétu, Ankush Singh, Hiroshi Ichikawa, Martin Šrámek, Rafał Godlewski, Sylvain Defresne, Thomas Thrainer and Vasilii Sukhanov

      Mohamed Amir Yosef voted and added 1 comment

      Votes added by Mohamed Amir Yosef

      Code-Review+1

      1 comment

      Patchset-level comments
      File-level comment, Patchset 6 (Latest):
      Mohamed Amir Yosef . resolved

      LGTM

      Thank you!

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Alexis Hétu
      • Ankush Singh
      • Hiroshi Ichikawa
      • Martin Šrámek
      • Rafał Godlewski
      • Sylvain Defresne
      • Thomas Thrainer
      • Vasilii Sukhanov
      Gerrit-Attention: Martin Šrámek <msr...@chromium.org>
      Gerrit-Attention: Rafał Godlewski <rg...@google.com>
      Gerrit-Attention: Sylvain Defresne <sdef...@chromium.org>
      Gerrit-Attention: Vasilii Sukhanov <vas...@chromium.org>
      Gerrit-Attention: Thomas Thrainer <thom...@google.com>
      Gerrit-Comment-Date: Mon, 19 Jan 2026 13:33:20 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Alexis Hétu (Gerrit)

      unread,
      8:52 AM (11 hours ago) 8:52 AM
      to Thomas Thrainer, Mohamed Amir Yosef, Chromium Sync Reviews, Ankush Singh, Martin Šrámek, Vasilii Sukhanov, Rafał Godlewski, Hiroshi Ichikawa, Sylvain Defresne, Ioana Pandele, Code Review Nudger, Chromium LUCI CQ, AyeAye, chromium-a...@chromium.org, extension...@chromium.org, derinel+wat...@google.com, gcasto+w...@chromium.org, ios-rev...@chromium.org, ios-web-view...@google.com, dullweb...@chromium.org, msrame...@chromium.org, feature-me...@chromium.org, tmartino+tran...@chromium.org, marq+...@chromium.org, ios-r...@chromium.org, vasilii+watchlis...@chromium.org, webauthn...@chromium.org, ios-revie...@chromium.org
      Attention needed from Ankush Singh, Hiroshi Ichikawa, Martin Šrámek, Rafał Godlewski, Sylvain Defresne, Thomas Thrainer and Vasilii Sukhanov

      Alexis Hétu voted Code-Review+1

      Code-Review+1
      Open in Gerrit

      Related details

      Attention is currently required from:
      Gerrit-Attention: Hiroshi Ichikawa <ichi...@chromium.org>
      Gerrit-Attention: Martin Šrámek <msr...@chromium.org>
      Gerrit-Attention: Rafał Godlewski <rg...@google.com>
      Gerrit-Attention: Sylvain Defresne <sdef...@chromium.org>
      Gerrit-Attention: Vasilii Sukhanov <vas...@chromium.org>
      Gerrit-Attention: Thomas Thrainer <thom...@google.com>
      Gerrit-Comment-Date: Mon, 19 Jan 2026 13:52:35 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Ankush Singh (Gerrit)

      unread,
      9:03 AM (11 hours ago) 9:03 AM
      to Thomas Thrainer, Alexis Hétu, Mohamed Amir Yosef, Chromium Sync Reviews, Martin Šrámek, Vasilii Sukhanov, Rafał Godlewski, Hiroshi Ichikawa, Sylvain Defresne, Ioana Pandele, Code Review Nudger, Chromium LUCI CQ, AyeAye, chromium-a...@chromium.org, extension...@chromium.org, derinel+wat...@google.com, gcasto+w...@chromium.org, ios-rev...@chromium.org, ios-web-view...@google.com, dullweb...@chromium.org, msrame...@chromium.org, feature-me...@chromium.org, tmartino+tran...@chromium.org, marq+...@chromium.org, ios-r...@chromium.org, vasilii+watchlis...@chromium.org, webauthn...@chromium.org, ios-revie...@chromium.org
      Attention needed from Hiroshi Ichikawa, Martin Šrámek, Rafał Godlewski, Sylvain Defresne, Thomas Thrainer and Vasilii Sukhanov

      Ankush Singh added 2 comments

      Patchset-level comments
      Ankush Singh . resolved

      Thanks!

      File components/password_manager/core/browser/features/password_manager_features_util.h
      Line 54, Patchset 6 (Latest):// enabled and there are no sync errors preventing sync from working. Thus,
      Ankush Singh . unresolved

      Not true tbh. First, we're [not really waiting for sync to be active](https://source.chromium.org/chromium/chromium/src/+/main:components/password_manager/core/browser/features/password_manager_features_util.cc;drc=441c9d764ccc435d421116b52d1de9cb17b3fa03;l=60) to say that there are no sync errors. Second, even if we did, passwords data type could still have faced some error and be not active, in which case we should use [GetActiveDataTypes](https://source.chromium.org/chromium/chromium/src/+/main:components/sync/service/sync_service.h;drc=c100f7a290abb5edfa2e071e480926a15c80f549;l=433), which we're not doing here.

      Based on the current implementation, `IsAccountStorageSelected` or tbh the original name feels better to me. WDYT?

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Hiroshi Ichikawa
      • Martin Šrámek
      • Rafał Godlewski
      • Sylvain Defresne
      • Thomas Thrainer
      • Vasilii Sukhanov
      Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not satisfiedCode-Owners
        • requirement satisfiedCode-Review
        • requirement is not satisfiedNo-Unresolved-Comments
        • requirement satisfiedReview-Enforcement
        Gerrit-Attention: Hiroshi Ichikawa <ichi...@chromium.org>
        Gerrit-Attention: Martin Šrámek <msr...@chromium.org>
        Gerrit-Attention: Rafał Godlewski <rg...@google.com>
        Gerrit-Attention: Sylvain Defresne <sdef...@chromium.org>
        Gerrit-Attention: Vasilii Sukhanov <vas...@chromium.org>
        Gerrit-Attention: Thomas Thrainer <thom...@google.com>
        Gerrit-Comment-Date: Mon, 19 Jan 2026 14:02:41 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Sylvain Defresne (Gerrit)

        unread,
        9:10 AM (10 hours ago) 9:10 AM
        to Thomas Thrainer, Alexis Hétu, Mohamed Amir Yosef, Chromium Sync Reviews, Ankush Singh, Martin Šrámek, Vasilii Sukhanov, Rafał Godlewski, Hiroshi Ichikawa, Ioana Pandele, Code Review Nudger, Chromium LUCI CQ, AyeAye, chromium-a...@chromium.org, extension...@chromium.org, derinel+wat...@google.com, gcasto+w...@chromium.org, ios-rev...@chromium.org, ios-web-view...@google.com, dullweb...@chromium.org, msrame...@chromium.org, feature-me...@chromium.org, tmartino+tran...@chromium.org, marq+...@chromium.org, ios-r...@chromium.org, vasilii+watchlis...@chromium.org, webauthn...@chromium.org, ios-revie...@chromium.org
        Attention needed from Hiroshi Ichikawa, Martin Šrámek, Rafał Godlewski, Thomas Thrainer and Vasilii Sukhanov

        Sylvain Defresne voted and added 1 comment

        Votes added by Sylvain Defresne

        Code-Review+1

        1 comment

        Patchset-level comments
        Sylvain Defresne . resolved

        lgtm

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Hiroshi Ichikawa
        • Martin Šrámek
        • Rafał Godlewski
        • Thomas Thrainer
        • Vasilii Sukhanov
        Gerrit-Attention: Vasilii Sukhanov <vas...@chromium.org>
        Gerrit-Attention: Thomas Thrainer <thom...@google.com>
        Gerrit-Comment-Date: Mon, 19 Jan 2026 14:10:46 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Thomas Thrainer (Gerrit)

        unread,
        9:41 AM (10 hours ago) 9:41 AM
        to Sylvain Defresne, Alexis Hétu, Mohamed Amir Yosef, Chromium Sync Reviews, Ankush Singh, Martin Šrámek, Vasilii Sukhanov, Rafał Godlewski, Hiroshi Ichikawa, Ioana Pandele, Code Review Nudger, Chromium LUCI CQ, AyeAye, chromium-a...@chromium.org, extension...@chromium.org, derinel+wat...@google.com, gcasto+w...@chromium.org, ios-rev...@chromium.org, ios-web-view...@google.com, dullweb...@chromium.org, msrame...@chromium.org, feature-me...@chromium.org, tmartino+tran...@chromium.org, marq+...@chromium.org, ios-r...@chromium.org, vasilii+watchlis...@chromium.org, webauthn...@chromium.org, ios-revie...@chromium.org
        Attention needed from Ankush Singh, Hiroshi Ichikawa, Martin Šrámek, Rafał Godlewski and Vasilii Sukhanov

        Thomas Thrainer added 1 comment

        File components/password_manager/core/browser/features/password_manager_features_util.h
        Line 54, Patchset 6:// enabled and there are no sync errors preventing sync from working. Thus,
        Ankush Singh . resolved

        Not true tbh. First, we're [not really waiting for sync to be active](https://source.chromium.org/chromium/chromium/src/+/main:components/password_manager/core/browser/features/password_manager_features_util.cc;drc=441c9d764ccc435d421116b52d1de9cb17b3fa03;l=60) to say that there are no sync errors. Second, even if we did, passwords data type could still have faced some error and be not active, in which case we should use [GetActiveDataTypes](https://source.chromium.org/chromium/chromium/src/+/main:components/sync/service/sync_service.h;drc=c100f7a290abb5edfa2e071e480926a15c80f549;l=433), which we're not doing here.

        Based on the current implementation, `IsAccountStorageSelected` or tbh the original name feels better to me. WDYT?

        Thomas Thrainer

        Thanks for your feedback!

        I chatted about this with treib@ before the holidays and summarise the rationale for the change in https://docs.google.com/document/d/1nUFA1uIzfiXLm0FxuNwgW8Y7MVkfjOmwgaippB7YoUo/edit. In particular, sync service has clear distinction between "enabled" and "active", see https://source.chromium.org/chromium/chromium/src/+/main:components/sync/service/sync_service.h;l=113;drc=c100f7a290abb5edfa2e071e480926a15c80f549.

        This method first uses `sync_service->GetUserSettings()->GetSelectedTypes().Has(syncer::UserSelectableType::kPasswords)` to check whether password syncing is enabled. It also uses `IsUserEligibleForAccountStorage(...)`, which performs some checks on whether sync actually is in a syncing state and whether there are encryption related errors that prevent password syncing. I think those additional checks are confusing, because they clash quite clearly with sync's definition of "enabled" (which was also the main motivation of the renaming, see the doc above).

        I agree that the method doesn't match sync's definition of "active" either, esp. while waiting for sync to become active. But IMO the behaviour is closer to "active" (i.e. checking for runtime state & encryption errors) than it is to "enabled". I would even argue that we should re-consider its implementation to see if it can be moved to `GetActiveDataTypes`.

        I'd like to avoid keeping the current name, because for a feature that I want to implement I want to create a `IsAccountStorageEnabled` function that actually follows sync's definition of "enabled".

        `IsAccountStorageSelected` IMO doesn't convey the fact that runtime state affects the result of the function. Also, it introduces "selected" as new state that readers have to wrap their head around, whereas "active" already mostly matches sync's definition (with a notable exception when starting). And I think that it's worthwhile to check if we could refactor this method to use `GetActiveDataTypes` eventually.

        I've updated the comment to reflect the differences between "active" here and "active" in the sync sense, WDYT?

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Ankush Singh
        • Hiroshi Ichikawa
        • Martin Šrámek
        • Rafał Godlewski
        • Vasilii Sukhanov
        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: I0c730eca61ffe072189ed6381dcc0c016a6a6964
          Gerrit-Change-Number: 7277057
          Gerrit-PatchSet: 7
          Gerrit-Owner: Thomas Thrainer <thom...@google.com>
          Gerrit-Reviewer: Alexis Hétu <su...@chromium.org>
          Gerrit-Reviewer: Ankush Singh <ankus...@google.com>
          Gerrit-Reviewer: Hiroshi Ichikawa <ichi...@chromium.org>
          Gerrit-Reviewer: Ioana Pandele <ioa...@chromium.org>
          Gerrit-Reviewer: Martin Šrámek <msr...@chromium.org>
          Gerrit-Reviewer: Mohamed Amir Yosef <ma...@chromium.org>
          Gerrit-Reviewer: Rafał Godlewski <rg...@google.com>
          Gerrit-Reviewer: Sylvain Defresne <sdef...@chromium.org>
          Gerrit-Reviewer: Thomas Thrainer <thom...@google.com>
          Gerrit-Reviewer: Vasilii Sukhanov <vas...@chromium.org>
          Gerrit-CC: Chromium Sync Reviews <chromium-s...@google.com>
          Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
          Gerrit-CC: gwsq
          Gerrit-Attention: Ankush Singh <ankus...@google.com>
          Gerrit-Attention: Hiroshi Ichikawa <ichi...@chromium.org>
          Gerrit-Attention: Martin Šrámek <msr...@chromium.org>
          Gerrit-Attention: Rafał Godlewski <rg...@google.com>
          Gerrit-Attention: Vasilii Sukhanov <vas...@chromium.org>
          Gerrit-Comment-Date: Mon, 19 Jan 2026 14:41:20 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          Comment-In-Reply-To: Ankush Singh <ankus...@google.com>
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Martin Šrámek (Gerrit)

          unread,
          9:50 AM (10 hours ago) 9:50 AM
          to Thomas Thrainer, Sylvain Defresne, Alexis Hétu, Mohamed Amir Yosef, Chromium Sync Reviews, Ankush Singh, Vasilii Sukhanov, Rafał Godlewski, Hiroshi Ichikawa, Ioana Pandele, Code Review Nudger, Chromium LUCI CQ, AyeAye, chromium-a...@chromium.org, extension...@chromium.org, derinel+wat...@google.com, gcasto+w...@chromium.org, ios-rev...@chromium.org, ios-web-view...@google.com, dullweb...@chromium.org, msrame...@chromium.org, feature-me...@chromium.org, tmartino+tran...@chromium.org, marq+...@chromium.org, ios-r...@chromium.org, vasilii+watchlis...@chromium.org, webauthn...@chromium.org, ios-revie...@chromium.org
          Attention needed from Ankush Singh, Hiroshi Ichikawa, Rafał Godlewski, Thomas Thrainer and Vasilii Sukhanov

          Martin Šrámek added 1 comment

          File chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc
          Line 1737, Patchset 7 (Latest): // TODO(crbug.com/470332074): Verify whether this should check for
          // "enabled" instead of "active".
          Martin Šrámek . unresolved

          I think this part should really be "enabled".

          There are pieces of the browsing data code that care about sync being active, e.g. the part where we hold off on deleting google.com cookies to allow deletions to propagate via sync first.

          But I don't think that's the case here. This code is just trying to delete data from all the relevant places. The `if()` statement is just making sure the storage exists before we make a deletion call on it.

          ```
          if (storage) {
          storage->DeleteData().
          }
          ```

          This seems to match the semantics of "enabled".

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Ankush Singh
          • Hiroshi Ichikawa
          • Rafał Godlewski
          • Thomas Thrainer
          • Vasilii Sukhanov
          Submit Requirements:
            • requirement satisfiedCode-Coverage
            • requirement is not satisfiedCode-Owners
            • requirement satisfiedCode-Review
            • requirement is not satisfiedNo-Unresolved-Comments
            • requirement satisfiedReview-Enforcement
            Gerrit-Attention: Rafał Godlewski <rg...@google.com>
            Gerrit-Attention: Vasilii Sukhanov <vas...@chromium.org>
            Gerrit-Attention: Thomas Thrainer <thom...@google.com>
            Gerrit-Comment-Date: Mon, 19 Jan 2026 14:49:57 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: No
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Ankush Singh (Gerrit)

            unread,
            10:10 AM (9 hours ago) 10:10 AM
            to Thomas Thrainer, Marc Treib, Sylvain Defresne, Alexis Hétu, Mohamed Amir Yosef, Chromium Sync Reviews, Martin Šrámek, Vasilii Sukhanov, Rafał Godlewski, Hiroshi Ichikawa, Ioana Pandele, Code Review Nudger, Chromium LUCI CQ, AyeAye, chromium-a...@chromium.org, extension...@chromium.org, derinel+wat...@google.com, gcasto+w...@chromium.org, ios-rev...@chromium.org, ios-web-view...@google.com, dullweb...@chromium.org, msrame...@chromium.org, feature-me...@chromium.org, tmartino+tran...@chromium.org, marq+...@chromium.org, ios-r...@chromium.org, vasilii+watchlis...@chromium.org, webauthn...@chromium.org, ios-revie...@chromium.org
            Attention needed from Hiroshi Ichikawa, Rafał Godlewski, Thomas Thrainer and Vasilii Sukhanov

            Ankush Singh voted and added 2 comments

            Votes added by Ankush Singh

            Code-Review+1

            2 comments

            Patchset-level comments
            Ankush Singh . resolved

            Thanks!

            File components/password_manager/core/browser/features/password_manager_features_util.h
            Line 54, Patchset 6:// enabled and there are no sync errors preventing sync from working. Thus,
            Ankush Singh . resolved

            Not true tbh. First, we're [not really waiting for sync to be active](https://source.chromium.org/chromium/chromium/src/+/main:components/password_manager/core/browser/features/password_manager_features_util.cc;drc=441c9d764ccc435d421116b52d1de9cb17b3fa03;l=60) to say that there are no sync errors. Second, even if we did, passwords data type could still have faced some error and be not active, in which case we should use [GetActiveDataTypes](https://source.chromium.org/chromium/chromium/src/+/main:components/sync/service/sync_service.h;drc=c100f7a290abb5edfa2e071e480926a15c80f549;l=433), which we're not doing here.

            Based on the current implementation, `IsAccountStorageSelected` or tbh the original name feels better to me. WDYT?

            Thomas Thrainer

            Thanks for your feedback!

            I chatted about this with treib@ before the holidays and summarise the rationale for the change in https://docs.google.com/document/d/1nUFA1uIzfiXLm0FxuNwgW8Y7MVkfjOmwgaippB7YoUo/edit. In particular, sync service has clear distinction between "enabled" and "active", see https://source.chromium.org/chromium/chromium/src/+/main:components/sync/service/sync_service.h;l=113;drc=c100f7a290abb5edfa2e071e480926a15c80f549.

            This method first uses `sync_service->GetUserSettings()->GetSelectedTypes().Has(syncer::UserSelectableType::kPasswords)` to check whether password syncing is enabled. It also uses `IsUserEligibleForAccountStorage(...)`, which performs some checks on whether sync actually is in a syncing state and whether there are encryption related errors that prevent password syncing. I think those additional checks are confusing, because they clash quite clearly with sync's definition of "enabled" (which was also the main motivation of the renaming, see the doc above).

            I agree that the method doesn't match sync's definition of "active" either, esp. while waiting for sync to become active. But IMO the behaviour is closer to "active" (i.e. checking for runtime state & encryption errors) than it is to "enabled". I would even argue that we should re-consider its implementation to see if it can be moved to `GetActiveDataTypes`.

            I'd like to avoid keeping the current name, because for a feature that I want to implement I want to create a `IsAccountStorageEnabled` function that actually follows sync's definition of "enabled".

            `IsAccountStorageSelected` IMO doesn't convey the fact that runtime state affects the result of the function. Also, it introduces "selected" as new state that readers have to wrap their head around, whereas "active" already mostly matches sync's definition (with a notable exception when starting). And I think that it's worthwhile to check if we could refactor this method to use `GetActiveDataTypes` eventually.

            I've updated the comment to reflect the differences between "active" here and "active" in the sync sense, WDYT?

            Ankush Singh

            Ack, since this has been discussed with @tr...@chromium.org

            I would even argue that we should re-consider its implementation to see if it can be moved to GetActiveDataTypes.

            This might require an audit of the current usages. A lot or probably most of the usages might be like "does the user want to sync these passwords" instead of "are we syncing these passwords right now".

            Another good name might have been `ShouldUseAccountStorage`, which I think fits well with the current usages? But no strong preference.

            Open in Gerrit

            Related details

            Attention is currently required from:
            Gerrit-CC: Marc Treib <tr...@chromium.org>
            Gerrit-CC: gwsq
            Gerrit-Attention: Hiroshi Ichikawa <ichi...@chromium.org>
            Gerrit-Attention: Rafał Godlewski <rg...@google.com>
            Gerrit-Attention: Vasilii Sukhanov <vas...@chromium.org>
            Gerrit-Attention: Thomas Thrainer <thom...@google.com>
            Gerrit-Comment-Date: Mon, 19 Jan 2026 15:10:44 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: Yes
            Comment-In-Reply-To: Ankush Singh <ankus...@google.com>
            Comment-In-Reply-To: Thomas Thrainer <thom...@google.com>
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Thomas Thrainer (Gerrit)

            unread,
            10:25 AM (9 hours ago) 10:25 AM
            to Ankush Singh, Marc Treib, Sylvain Defresne, Alexis Hétu, Mohamed Amir Yosef, Chromium Sync Reviews, Martin Šrámek, Vasilii Sukhanov, Rafał Godlewski, Hiroshi Ichikawa, Ioana Pandele, Code Review Nudger, Chromium LUCI CQ, AyeAye, chromium-a...@chromium.org, extension...@chromium.org, derinel+wat...@google.com, gcasto+w...@chromium.org, ios-rev...@chromium.org, ios-web-view...@google.com, dullweb...@chromium.org, msrame...@chromium.org, feature-me...@chromium.org, tmartino+tran...@chromium.org, marq+...@chromium.org, ios-r...@chromium.org, vasilii+watchlis...@chromium.org, webauthn...@chromium.org, ios-revie...@chromium.org
            Attention needed from Hiroshi Ichikawa, Martin Šrámek, Rafał Godlewski and Vasilii Sukhanov

            Thomas Thrainer added 1 comment

            File chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc
            Line 1737, Patchset 7 (Latest): // TODO(crbug.com/470332074): Verify whether this should check for
            // "enabled" instead of "active".
            Martin Šrámek . resolved

            I think this part should really be "enabled".

            There are pieces of the browsing data code that care about sync being active, e.g. the part where we hold off on deleting google.com cookies to allow deletions to propagate via sync first.

            But I don't think that's the case here. This code is just trying to delete data from all the relevant places. The `if()` statement is just making sure the storage exists before we make a deletion call on it.

            ```
            if (storage) {
            storage->DeleteData().
            }
            ```

            This seems to match the semantics of "enabled".

            Thomas Thrainer

            Thanks for you comment! I added it to crbug.com/470332074 so we can follow up on that one eventually.

            I don't want to change any behaviour in this CL (this is just a pure renaming), I hope that's OK with you.

            Open in Gerrit

            Related details

            Attention is currently required from:
            • Hiroshi Ichikawa
            • Martin Šrámek
            • Rafał Godlewski
            • Vasilii Sukhanov
            Submit Requirements:
              • requirement satisfiedCode-Coverage
              • requirement is not satisfiedCode-Owners
              • requirement satisfiedCode-Review
              • requirement satisfiedReview-Enforcement
              Gerrit-Attention: Martin Šrámek <msr...@chromium.org>
              Gerrit-Attention: Rafał Godlewski <rg...@google.com>
              Gerrit-Attention: Vasilii Sukhanov <vas...@chromium.org>
              Gerrit-Comment-Date: Mon, 19 Jan 2026 15:25:11 +0000
              Gerrit-HasComments: Yes
              Gerrit-Has-Labels: No
              Comment-In-Reply-To: Martin Šrámek <msr...@chromium.org>
              satisfied_requirement
              unsatisfied_requirement
              open
              diffy

              Martin Šrámek (Gerrit)

              unread,
              10:27 AM (9 hours ago) 10:27 AM
              to Thomas Thrainer, Ankush Singh, Marc Treib, Sylvain Defresne, Alexis Hétu, Mohamed Amir Yosef, Chromium Sync Reviews, Vasilii Sukhanov, Rafał Godlewski, Hiroshi Ichikawa, Ioana Pandele, Code Review Nudger, Chromium LUCI CQ, AyeAye, chromium-a...@chromium.org, extension...@chromium.org, derinel+wat...@google.com, gcasto+w...@chromium.org, ios-rev...@chromium.org, ios-web-view...@google.com, dullweb...@chromium.org, msrame...@chromium.org, feature-me...@chromium.org, tmartino+tran...@chromium.org, marq+...@chromium.org, ios-r...@chromium.org, vasilii+watchlis...@chromium.org, webauthn...@chromium.org, ios-revie...@chromium.org
              Attention needed from Hiroshi Ichikawa, Rafał Godlewski, Thomas Thrainer and Vasilii Sukhanov

              Martin Šrámek voted and added 2 comments

              Votes added by Martin Šrámek

              Code-Review+1

              2 comments

              Patchset-level comments
              Martin Šrámek . resolved

              browsing_data/ LGTM

              File chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc
              Line 1737, Patchset 7 (Latest): // TODO(crbug.com/470332074): Verify whether this should check for
              // "enabled" instead of "active".
              Martin Šrámek . unresolved

              I think this part should really be "enabled".

              There are pieces of the browsing data code that care about sync being active, e.g. the part where we hold off on deleting google.com cookies to allow deletions to propagate via sync first.

              But I don't think that's the case here. This code is just trying to delete data from all the relevant places. The `if()` statement is just making sure the storage exists before we make a deletion call on it.

              ```
              if (storage) {
              storage->DeleteData().
              }
              ```

              This seems to match the semantics of "enabled".

              Thomas Thrainer

              Thanks for you comment! I added it to crbug.com/470332074 so we can follow up on that one eventually.

              I don't want to change any behaviour in this CL (this is just a pure renaming), I hope that's OK with you.

              Martin Šrámek

              In that case, please update the comment to "This should ... because ..." instead of "Verify if this should..." :)

              Open in Gerrit

              Related details

              Attention is currently required from:
              • Hiroshi Ichikawa
              • Rafał Godlewski
              • Thomas Thrainer
              • Vasilii Sukhanov
              Submit Requirements:
                • requirement satisfiedCode-Coverage
                • requirement is not satisfiedCode-Owners
                • requirement satisfiedCode-Review
                • requirement is not satisfiedNo-Unresolved-Comments
                • requirement satisfiedReview-Enforcement
                Gerrit-Attention: Rafał Godlewski <rg...@google.com>
                Gerrit-Attention: Vasilii Sukhanov <vas...@chromium.org>
                Gerrit-Attention: Thomas Thrainer <thom...@google.com>
                Gerrit-Comment-Date: Mon, 19 Jan 2026 15:27:14 +0000
                Gerrit-HasComments: Yes
                Gerrit-Has-Labels: Yes
                Comment-In-Reply-To: Martin Šrámek <msr...@chromium.org>
                Comment-In-Reply-To: Thomas Thrainer <thom...@google.com>
                satisfied_requirement
                unsatisfied_requirement
                open
                diffy

                Rafał Godlewski (Gerrit)

                unread,
                10:30 AM (9 hours ago) 10:30 AM
                to Thomas Thrainer, Martin Šrámek, Ankush Singh, Marc Treib, Sylvain Defresne, Alexis Hétu, Mohamed Amir Yosef, Chromium Sync Reviews, Vasilii Sukhanov, Hiroshi Ichikawa, Ioana Pandele, Code Review Nudger, Chromium LUCI CQ, AyeAye, chromium-a...@chromium.org, extension...@chromium.org, derinel+wat...@google.com, gcasto+w...@chromium.org, ios-rev...@chromium.org, ios-web-view...@google.com, dullweb...@chromium.org, msrame...@chromium.org, feature-me...@chromium.org, tmartino+tran...@chromium.org, marq+...@chromium.org, ios-r...@chromium.org, vasilii+watchlis...@chromium.org, webauthn...@chromium.org, ios-revie...@chromium.org
                Attention needed from Hiroshi Ichikawa, Thomas Thrainer and Vasilii Sukhanov

                Rafał Godlewski voted Code-Review+1

                Code-Review+1
                Open in Gerrit

                Related details

                Attention is currently required from:
                • Hiroshi Ichikawa
                • Thomas Thrainer
                • Vasilii Sukhanov
                Gerrit-Attention: Vasilii Sukhanov <vas...@chromium.org>
                Gerrit-Attention: Thomas Thrainer <thom...@google.com>
                Gerrit-Comment-Date: Mon, 19 Jan 2026 15:30:17 +0000
                Gerrit-HasComments: No
                Gerrit-Has-Labels: Yes
                satisfied_requirement
                unsatisfied_requirement
                open
                diffy

                Vasilii Sukhanov (Gerrit)

                unread,
                11:33 AM (8 hours ago) 11:33 AM
                to Thomas Thrainer, Rafał Godlewski, Martin Šrámek, Ankush Singh, Marc Treib, Sylvain Defresne, Alexis Hétu, Mohamed Amir Yosef, Chromium Sync Reviews, Hiroshi Ichikawa, Ioana Pandele, Code Review Nudger, Chromium LUCI CQ, AyeAye, chromium-a...@chromium.org, extension...@chromium.org, derinel+wat...@google.com, gcasto+w...@chromium.org, ios-rev...@chromium.org, ios-web-view...@google.com, dullweb...@chromium.org, msrame...@chromium.org, feature-me...@chromium.org, tmartino+tran...@chromium.org, marq+...@chromium.org, ios-r...@chromium.org, vasilii+watchlis...@chromium.org, webauthn...@chromium.org, ios-revie...@chromium.org
                Attention needed from Hiroshi Ichikawa and Thomas Thrainer

                Vasilii Sukhanov voted Code-Review+1

                Code-Review+1
                Open in Gerrit

                Related details

                Attention is currently required from:
                • Hiroshi Ichikawa
                • Thomas Thrainer
                Submit Requirements:
                • requirement satisfiedCode-Coverage
                • requirement satisfiedCode-Owners
                Gerrit-Attention: Thomas Thrainer <thom...@google.com>
                Gerrit-Comment-Date: Mon, 19 Jan 2026 16:33:11 +0000
                Gerrit-HasComments: No
                Gerrit-Has-Labels: Yes
                satisfied_requirement
                unsatisfied_requirement
                open
                diffy
                Reply all
                Reply to author
                Forward
                0 new messages