LPP: Integrate Reauth and Recovery Reorder fixes [chromium/src : main]

0 views
Skip to first unread message

Fahad Mansoor (Gerrit)

unread,
Apr 8, 2026, 2:02:42 PM (6 days ago) Apr 8
to Denis Kuznetsov, Chromium LUCI CQ, chromium...@chromium.org, rrsilva+wat...@google.com, tbarzi...@chromium.org
Attention needed from Denis Kuznetsov

Fahad Mansoor added 3 comments

Patchset-level comments
File-level comment, Patchset 2:
Fahad Mansoor . resolved

PTAL!
I was doing some manual tests and found some issues that needed fixing.

File chrome/browser/ash/login/wizard_controller.cc
Line 1922, Patchset 2: wizard_context_->show_recovery_password_selection_screen = true;
Fahad Mansoor . unresolved

I needed to introduce a flag here, as during testing I found out that more things go through ( gaia manual password change etc) recovery, and without this flag we will always go into the password selection screen during recovery which isn't the correct behavior.

Line 2863, Patchset 2: auto mount_state = context->GetMountState();
Fahad Mansoor . unresolved

This helps us in determining whether we are before the cryptohome mount or after. as I found out that in certain edge cases ( Reauth that turns into recovery with automatic online password update we can indeed go through this flow before cryptohome is mounted.)

Open in Gerrit

Related details

Attention is currently required from:
  • Denis Kuznetsov
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: I00e1d1d4da2b75bbac550daaaba1365ae564534a
Gerrit-Change-Number: 7736032
Gerrit-PatchSet: 3
Gerrit-Owner: Fahad Mansoor <fahadm...@google.com>
Gerrit-Reviewer: Denis Kuznetsov <ant...@chromium.org>
Gerrit-Reviewer: Fahad Mansoor <fahadm...@google.com>
Gerrit-Attention: Denis Kuznetsov <ant...@chromium.org>
Gerrit-Comment-Date: Wed, 08 Apr 2026 18:02:26 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Denis Kuznetsov (Gerrit)

unread,
Apr 13, 2026, 10:59:15 AM (yesterday) Apr 13
to Fahad Mansoor, Code Review Nudger, chromiu...@luci-project-accounts.iam.gserviceaccount.com, chromium...@chromium.org, rrsilva+wat...@google.com, tbarzi...@chromium.org
Attention needed from Fahad Mansoor

Denis Kuznetsov added 4 comments

Commit Message
Line 16, Patchset 3:dynamically enable kManagedLocalPinAndPassword and kRecoveryFlowReorder flags based on test parameters.
Denis Kuznetsov . unresolved

supernit: line length

File chrome/browser/ash/login/existing_user_controller.cc
Line 815, Patchset 4 (Parent): if (!has_required_feature_flags ||
Denis Kuznetsov . resolved

nice!

File chrome/browser/ash/login/wizard_context.h
Line 281, Patchset 4 (Latest): bool show_recovery_password_selection_screen = false;
Denis Kuznetsov . unresolved

Please add a comment on the intended use/effect.
It is unclear if it used to suppress screen or force it to be shown.

File chrome/browser/ash/login/wizard_controller.cc
Line 2863, Patchset 2: auto mount_state = context->GetMountState();
Fahad Mansoor . unresolved

This helps us in determining whether we are before the cryptohome mount or after. as I found out that in certain edge cases ( Reauth that turns into recovery with automatic online password update we can indeed go through this flow before cryptohome is mounted.)

Denis Kuznetsov

Could you comment (in code) a bit more here what is the flow that leads us here without mounting?
This is kind of knowledge that gets lost very fast.

Open in Gerrit

Related details

Attention is currently required from:
  • Fahad Mansoor
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: I00e1d1d4da2b75bbac550daaaba1365ae564534a
Gerrit-Change-Number: 7736032
Gerrit-PatchSet: 4
Gerrit-Owner: Fahad Mansoor <fahadm...@google.com>
Gerrit-Reviewer: Denis Kuznetsov <ant...@chromium.org>
Gerrit-Reviewer: Fahad Mansoor <fahadm...@google.com>
Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
Gerrit-Attention: Fahad Mansoor <fahadm...@google.com>
Gerrit-Comment-Date: Mon, 13 Apr 2026 14:59:01 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Fahad Mansoor <fahadm...@google.com>
satisfied_requirement
unsatisfied_requirement
open
diffy

Fahad Mansoor (Gerrit)

unread,
4:38 AM (7 hours ago) 4:38 AM
to Code Review Nudger, Denis Kuznetsov, chromiu...@luci-project-accounts.iam.gserviceaccount.com, chromium...@chromium.org, rrsilva+wat...@google.com, tbarzi...@chromium.org

Message from Fahad Mansoor

Done. Addressed all comments: reformatted commit message line lengths and added descriptive comments in wizard_context.h and wizard_controller.cc.

Open in Gerrit

Related details

Attention set is empty
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: I00e1d1d4da2b75bbac550daaaba1365ae564534a
Gerrit-Change-Number: 7736032
Gerrit-PatchSet: 5
Gerrit-Owner: Fahad Mansoor <fahadm...@google.com>
Gerrit-Reviewer: Denis Kuznetsov <ant...@chromium.org>
Gerrit-Reviewer: Fahad Mansoor <fahadm...@google.com>
Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
Gerrit-Comment-Date: Tue, 14 Apr 2026 08:38:40 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Fahad Mansoor (Gerrit)

unread,
4:41 AM (7 hours ago) 4:41 AM
to Code Review Nudger, Denis Kuznetsov, chromiu...@luci-project-accounts.iam.gserviceaccount.com, chromium...@chromium.org, rrsilva+wat...@google.com, tbarzi...@chromium.org
Attention needed from Denis Kuznetsov

Fahad Mansoor added 4 comments

Commit Message
Line 16, Patchset 3:dynamically enable kManagedLocalPinAndPassword and kRecoveryFlowReorder flags based on test parameters.
Denis Kuznetsov . resolved

supernit: line length

Fahad Mansoor

Done

File chrome/browser/ash/login/wizard_context.h
Line 281, Patchset 4: bool show_recovery_password_selection_screen = false;
Denis Kuznetsov . resolved

Please add a comment on the intended use/effect.
It is unclear if it used to suppress screen or force it to be shown.

Fahad Mansoor

Done

File chrome/browser/ash/login/wizard_controller.cc
Line 1922, Patchset 2: wizard_context_->show_recovery_password_selection_screen = true;
Fahad Mansoor . resolved

I needed to introduce a flag here, as during testing I found out that more things go through ( gaia manual password change etc) recovery, and without this flag we will always go into the password selection screen during recovery which isn't the correct behavior.

Fahad Mansoor

Acknowledged

Line 2863, Patchset 2: auto mount_state = context->GetMountState();
Fahad Mansoor . resolved

This helps us in determining whether we are before the cryptohome mount or after. as I found out that in certain edge cases ( Reauth that turns into recovery with automatic online password update we can indeed go through this flow before cryptohome is mounted.)

Denis Kuznetsov

Could you comment (in code) a bit more here what is the flow that leads us here without mounting?
This is kind of knowledge that gets lost very fast.

Fahad Mansoor

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Denis Kuznetsov
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: I00e1d1d4da2b75bbac550daaaba1365ae564534a
    Gerrit-Change-Number: 7736032
    Gerrit-PatchSet: 6
    Gerrit-Owner: Fahad Mansoor <fahadm...@google.com>
    Gerrit-Reviewer: Denis Kuznetsov <ant...@chromium.org>
    Gerrit-Reviewer: Fahad Mansoor <fahadm...@google.com>
    Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
    Gerrit-Attention: Denis Kuznetsov <ant...@chromium.org>
    Gerrit-Comment-Date: Tue, 14 Apr 2026 08:40:54 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Fahad Mansoor <fahadm...@google.com>
    Comment-In-Reply-To: Denis Kuznetsov <ant...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages