[AIM] Switch back to a focused tab puts us in STANDBY. [chromium/src : main]

0 views
Skip to first unread message

Sky Malice (Gerrit)

unread,
Jul 8, 2026, 1:09:42 PM (22 hours ago) Jul 8
to Patrick Noland, Chromium LUCI CQ, chromium...@chromium.org, ender...@chromium.org
Attention needed from Patrick Noland

Sky Malice voted and added 2 comments

Votes added by Sky Malice

Commit-Queue+1

2 comments

Commit Message
Line 7, Patchset 2:[AIM] Switch back to a focused tap puts us in STANDBY.
Patrick Noland . resolved

Tab?

Sky Malice

Done

File chrome/browser/ui/android/omnibox/java/src/org/chromium/chrome/browser/omnibox/LocationBarMediator.java
Line 2645, Patchset 2: if (input.getAutocompleteState() == AutocompleteState.ENABLED) {
Patrick Noland . unresolved

What other states could it be and why would we not want to switch to STANDBY in these cases?

Sky Malice

So there are currently 4 states. DISABLED, STANDBY, ENABLED, STANDBY_NO_FOCUS. DISABLED should stay disabled. STANDBY already is STADNBY. ENABLED is the one I explicitly handle here. And STANDBY_NO_FOCUS is the odd one out.

The thing is, I don't really know what STANDBY_NO_FOCUS should be doing. I don't think we should ever get it here unless something has gone wrong. STANDBY_NO_FOCUS is mostly only used on the NTP fakebox when we're going to show the popup and we need to init machinery but not affect the UI at all. I'm hesitant to assert because it might be possible to hit. I think leaving it as is probably fine.

Open in Gerrit

Related details

Attention is currently required from:
  • Patrick Noland
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement 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: Ia9c960819e17680d1f0c562e976789b8820356d4
Gerrit-Change-Number: 8065828
Gerrit-PatchSet: 3
Gerrit-Owner: Sky Malice <sk...@chromium.org>
Gerrit-Reviewer: Patrick Noland <pno...@chromium.org>
Gerrit-Reviewer: Sky Malice <sk...@chromium.org>
Gerrit-Attention: Patrick Noland <pno...@chromium.org>
Gerrit-Comment-Date: Wed, 08 Jul 2026 17:09:28 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Patrick Noland <pno...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Sky Malice (Gerrit)

unread,
Jul 8, 2026, 1:15:44 PM (21 hours ago) Jul 8
to Patrick Noland, Chromium LUCI CQ, chromium...@chromium.org, ender...@chromium.org
Attention needed from Patrick Noland

Sky Malice added 1 comment

File chrome/browser/ui/android/omnibox/java/src/org/chromium/chrome/browser/omnibox/LocationBarMediator.java
Line 2645, Patchset 2: if (input.getAutocompleteState() == AutocompleteState.ENABLED) {
Patrick Noland . unresolved

What other states could it be and why would we not want to switch to STANDBY in these cases?

Sky Malice

So there are currently 4 states. DISABLED, STANDBY, ENABLED, STANDBY_NO_FOCUS. DISABLED should stay disabled. STANDBY already is STADNBY. ENABLED is the one I explicitly handle here. And STANDBY_NO_FOCUS is the odd one out.

The thing is, I don't really know what STANDBY_NO_FOCUS should be doing. I don't think we should ever get it here unless something has gone wrong. STANDBY_NO_FOCUS is mostly only used on the NTP fakebox when we're going to show the popup and we need to init machinery but not affect the UI at all. I'm hesitant to assert because it might be possible to hit. I think leaving it as is probably fine.

Sky Malice

Wait, maybe I don't even need the if at all. If we were active, we should just downgrade to standby, right?

Open in Gerrit

Related details

Attention is currently required from:
  • Patrick Noland
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement 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: Ia9c960819e17680d1f0c562e976789b8820356d4
Gerrit-Change-Number: 8065828
Gerrit-PatchSet: 3
Gerrit-Owner: Sky Malice <sk...@chromium.org>
Gerrit-Reviewer: Patrick Noland <pno...@chromium.org>
Gerrit-Reviewer: Sky Malice <sk...@chromium.org>
Gerrit-Attention: Patrick Noland <pno...@chromium.org>
Gerrit-Comment-Date: Wed, 08 Jul 2026 17:15:27 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Patrick Noland <pno...@chromium.org>
Comment-In-Reply-To: Sky Malice <sk...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Patrick Noland (Gerrit)

unread,
Jul 8, 2026, 1:18:38 PM (21 hours ago) Jul 8
to Sky Malice, Chromium LUCI CQ, chromium...@chromium.org, ender...@chromium.org
Attention needed from Sky Malice

Patrick Noland added 1 comment

File chrome/browser/ui/android/omnibox/java/src/org/chromium/chrome/browser/omnibox/LocationBarMediator.java
Line 2645, Patchset 2: if (input.getAutocompleteState() == AutocompleteState.ENABLED) {
Patrick Noland . unresolved

What other states could it be and why would we not want to switch to STANDBY in these cases?

Sky Malice

So there are currently 4 states. DISABLED, STANDBY, ENABLED, STANDBY_NO_FOCUS. DISABLED should stay disabled. STANDBY already is STADNBY. ENABLED is the one I explicitly handle here. And STANDBY_NO_FOCUS is the odd one out.

The thing is, I don't really know what STANDBY_NO_FOCUS should be doing. I don't think we should ever get it here unless something has gone wrong. STANDBY_NO_FOCUS is mostly only used on the NTP fakebox when we're going to show the popup and we need to init machinery but not affect the UI at all. I'm hesitant to assert because it might be possible to hit. I think leaving it as is probably fine.

Sky Malice

Wait, maybe I don't even need the if at all. If we were active, we should just downgrade to standby, right?

Patrick Noland

You still don't want to upgrade from DISABLED to STANDBY though?

Open in Gerrit

Related details

Attention is currently required from:
  • Sky Malice
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement 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: Ia9c960819e17680d1f0c562e976789b8820356d4
Gerrit-Change-Number: 8065828
Gerrit-PatchSet: 3
Gerrit-Owner: Sky Malice <sk...@chromium.org>
Gerrit-Reviewer: Patrick Noland <pno...@chromium.org>
Gerrit-Reviewer: Sky Malice <sk...@chromium.org>
Gerrit-Attention: Sky Malice <sk...@chromium.org>
Gerrit-Comment-Date: Wed, 08 Jul 2026 17:18:24 +0000
satisfied_requirement
unsatisfied_requirement
open
diffy

Sky Malice (Gerrit)

unread,
Jul 8, 2026, 1:22:51 PM (21 hours ago) Jul 8
to Patrick Noland, Chromium LUCI CQ, chromium...@chromium.org, ender...@chromium.org
Attention needed from Patrick Noland

Sky Malice voted and added 1 comment

Votes added by Sky Malice

Commit-Queue+1

1 comment

File chrome/browser/ui/android/omnibox/java/src/org/chromium/chrome/browser/omnibox/LocationBarMediator.java
Line 2645, Patchset 2: if (input.getAutocompleteState() == AutocompleteState.ENABLED) {
Patrick Noland . resolved

What other states could it be and why would we not want to switch to STANDBY in these cases?

Sky Malice

So there are currently 4 states. DISABLED, STANDBY, ENABLED, STANDBY_NO_FOCUS. DISABLED should stay disabled. STANDBY already is STADNBY. ENABLED is the one I explicitly handle here. And STANDBY_NO_FOCUS is the odd one out.

The thing is, I don't really know what STANDBY_NO_FOCUS should be doing. I don't think we should ever get it here unless something has gone wrong. STANDBY_NO_FOCUS is mostly only used on the NTP fakebox when we're going to show the popup and we need to init machinery but not affect the UI at all. I'm hesitant to assert because it might be possible to hit. I think leaving it as is probably fine.

Sky Malice

Wait, maybe I don't even need the if at all. If we were active, we should just downgrade to standby, right?

Patrick Noland

You still don't want to upgrade from DISABLED to STANDBY though?

Sky Malice

In that case it should fail the state.isSessionActive check. Simplified.

Open in Gerrit

Related details

Attention is currently required from:
  • Patrick Noland
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement 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: Ia9c960819e17680d1f0c562e976789b8820356d4
    Gerrit-Change-Number: 8065828
    Gerrit-PatchSet: 3
    Gerrit-Owner: Sky Malice <sk...@chromium.org>
    Gerrit-Reviewer: Patrick Noland <pno...@chromium.org>
    Gerrit-Reviewer: Sky Malice <sk...@chromium.org>
    Gerrit-Attention: Patrick Noland <pno...@chromium.org>
    Gerrit-Comment-Date: Wed, 08 Jul 2026 17:22:25 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Patrick Noland (Gerrit)

    unread,
    Jul 8, 2026, 1:26:05 PM (21 hours ago) Jul 8
    to Sky Malice, Chromium LUCI CQ, chromium...@chromium.org, ender...@chromium.org
    Attention needed from Sky Malice

    Patrick Noland voted Code-Review+1

    Code-Review+1
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Sky Malice
    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: Ia9c960819e17680d1f0c562e976789b8820356d4
      Gerrit-Change-Number: 8065828
      Gerrit-PatchSet: 4
      Gerrit-Owner: Sky Malice <sk...@chromium.org>
      Gerrit-Reviewer: Patrick Noland <pno...@chromium.org>
      Gerrit-Reviewer: Sky Malice <sk...@chromium.org>
      Gerrit-Attention: Sky Malice <sk...@chromium.org>
      Gerrit-Comment-Date: Wed, 08 Jul 2026 17:25:52 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Chromium LUCI CQ (Gerrit)

      unread,
      Jul 8, 2026, 6:38:46 PM (16 hours ago) Jul 8
      to Sky Malice, Patrick Noland, chromium...@chromium.org, ender...@chromium.org

      Chromium LUCI CQ submitted the change

      Change information

      Commit message:
      [AIM] Switch back to a focused tab puts us in STANDBY.

      This matches W/M/L behavior more closely, if we were previously in
      ENABLED, and we switch back to a tab, while we maintain text and
      selection, we downgrade to STANDBY which also avoids suggestions.
      Bug: 522911537, 529854485, 526655008
      Change-Id: Ia9c960819e17680d1f0c562e976789b8820356d4
      Reviewed-by: Patrick Noland <pno...@chromium.org>
      Commit-Queue: Sky Malice <sk...@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#1659103}
      Files:
      • M chrome/browser/ui/android/omnibox/java/src/org/chromium/chrome/browser/omnibox/LocationBarMediator.java
      • M chrome/browser/ui/android/omnibox/java/src/org/chromium/chrome/browser/omnibox/LocationBarMediatorTest.java
      Change size: S
      Delta: 2 files changed, 18 insertions(+), 4 deletions(-)
      Branch: refs/heads/main
      Submit Requirements:
      • requirement satisfiedCode-Review: +1 by Patrick Noland
      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: Ia9c960819e17680d1f0c562e976789b8820356d4
      Gerrit-Change-Number: 8065828
      Gerrit-PatchSet: 5
      Gerrit-Owner: Sky Malice <sk...@chromium.org>
      Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
      Gerrit-Reviewer: Patrick Noland <pno...@chromium.org>
      Gerrit-Reviewer: Sky Malice <sk...@chromium.org>
      open
      diffy
      satisfied_requirement
      Reply all
      Reply to author
      Forward
      0 new messages