[iOS] Add infobar message for Autofill AI prefetch failures [chromium/src : main]

0 views
Skip to first unread message

Leo Zhao (Gerrit)

unread,
Jun 30, 2026, 3:49:35 PMJun 30
to Angela Novakovic, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, browser-comp...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, tmartino+tran...@chromium.org
Attention needed from Angela Novakovic

Leo Zhao voted Commit-Queue+1

Commit-Queue+1
Open in Gerrit

Related details

Attention is currently required from:
  • Angela Novakovic
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: Ia2adb231cb3ee169717033ea626fcd2b7ed55092
Gerrit-Change-Number: 8025271
Gerrit-PatchSet: 2
Gerrit-Owner: Leo Zhao <leo...@google.com>
Gerrit-Reviewer: Angela Novakovic <novak...@google.com>
Gerrit-Reviewer: Leo Zhao <leo...@google.com>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-Attention: Angela Novakovic <novak...@google.com>
Gerrit-Comment-Date: Tue, 30 Jun 2026 19:49:21 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Angela Novakovic (Gerrit)

unread,
Jun 30, 2026, 4:12:25 PMJun 30
to Leo Zhao, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, browser-comp...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, tmartino+tran...@chromium.org
Attention needed from Leo Zhao

Angela Novakovic added 3 comments

Patchset-level comments
File-level comment, Patchset 2 (Latest):
Angela Novakovic . resolved

LGTM! I've added two optional questions/suggestions.

File ios/chrome/browser/autofill/model/autofill_ai_prefetch_failure_infobar_delegate_ios.mm
Line 21, Patchset 2 (Latest):#if BUILDFLAG(IOS_USE_BRANDED_ASSETS)
UIImage* image = MakeSymbolMulticolor(CustomSymbolWithPointSize(
kMulticolorChromeballSymbol, kAutofillAiInfobarSymbolPointSize));
#else
UIImage* image = CustomSymbolWithPointSize(kChromeProductSymbol,
kAutofillAiInfobarSymbolPointSize);
#endif // BUILDFLAG(IOS_USE_BRANDED_ASSETS)
if (image) {
icon_ = ui::ImageModel::FromImage(gfx::Image(image));
Angela Novakovic . unresolved

optional nit: Can we move the icon setup in a method in the namespace and call it here?

File ios/chrome/browser/autofill/ui_bundled/chrome_autofill_client_ios_unittest.mm
Line 257, Patchset 2 (Latest):TEST_F(ChromeAutofillClientIOSTest, ShowAutofillAiPreFetchFailureNotification) {
Angela Novakovic . unresolved

Would it be useful to add a test for when an infobar already is being shown (that is not the AUTOFILL_AI_PREFETCH_FAILURE_INFOBAR_DELEGATE_IOS), and verifying that after ````client().ShowAutofillAiPreFetchFailureNotification();```` the final infobar is of type AUTOFILL_AI_PREFETCH_FAILURE_INFOBAR_DELEGATE_IOS ?

Open in Gerrit

Related details

Attention is currently required from:
  • Leo Zhao
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: Ia2adb231cb3ee169717033ea626fcd2b7ed55092
    Gerrit-Change-Number: 8025271
    Gerrit-PatchSet: 2
    Gerrit-Owner: Leo Zhao <leo...@google.com>
    Gerrit-Reviewer: Angela Novakovic <novak...@google.com>
    Gerrit-Reviewer: Leo Zhao <leo...@google.com>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Leo Zhao <leo...@google.com>
    Gerrit-Comment-Date: Tue, 30 Jun 2026 20:12:10 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Leo Zhao (Gerrit)

    unread,
    Jun 30, 2026, 5:09:16 PMJun 30
    to Angela Novakovic, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, browser-comp...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, tmartino+tran...@chromium.org
    Attention needed from Angela Novakovic

    Leo Zhao added 2 comments

    File ios/chrome/browser/autofill/model/autofill_ai_prefetch_failure_infobar_delegate_ios.mm
    Line 21, Patchset 2:#if BUILDFLAG(IOS_USE_BRANDED_ASSETS)

    UIImage* image = MakeSymbolMulticolor(CustomSymbolWithPointSize(
    kMulticolorChromeballSymbol, kAutofillAiInfobarSymbolPointSize));
    #else
    UIImage* image = CustomSymbolWithPointSize(kChromeProductSymbol,
    kAutofillAiInfobarSymbolPointSize);
    #endif // BUILDFLAG(IOS_USE_BRANDED_ASSETS)
    if (image) {
    icon_ = ui::ImageModel::FromImage(gfx::Image(image));
    Angela Novakovic . resolved

    optional nit: Can we move the icon setup in a method in the namespace and call it here?

    Leo Zhao

    Done.

    File ios/chrome/browser/autofill/ui_bundled/chrome_autofill_client_ios_unittest.mm
    Line 257, Patchset 2:TEST_F(ChromeAutofillClientIOSTest, ShowAutofillAiPreFetchFailureNotification) {
    Angela Novakovic . resolved

    Would it be useful to add a test for when an infobar already is being shown (that is not the AUTOFILL_AI_PREFETCH_FAILURE_INFOBAR_DELEGATE_IOS), and verifying that after ````client().ShowAutofillAiPreFetchFailureNotification();```` the final infobar is of type AUTOFILL_AI_PREFETCH_FAILURE_INFOBAR_DELEGATE_IOS ?

    Leo Zhao

    Infobar popups have priority. If two infobar popups with different priorities are called at the same time, infobars should contain both. Showing them on the screen is not directly tied to the array. What we can do however here is to call it twice, and see the same infobar item is only scheduled once.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Angela Novakovic
    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: Ia2adb231cb3ee169717033ea626fcd2b7ed55092
      Gerrit-Change-Number: 8025271
      Gerrit-PatchSet: 3
      Gerrit-Owner: Leo Zhao <leo...@google.com>
      Gerrit-Reviewer: Angela Novakovic <novak...@google.com>
      Gerrit-Reviewer: Leo Zhao <leo...@google.com>
      Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
      Gerrit-Attention: Angela Novakovic <novak...@google.com>
      Gerrit-Comment-Date: Tue, 30 Jun 2026 21:09:05 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Angela Novakovic <novak...@google.com>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Angela Novakovic (Gerrit)

      unread,
      Jul 2, 2026, 8:38:12 AMJul 2
      to Leo Zhao, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, browser-comp...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, tmartino+tran...@chromium.org
      Attention needed from Leo Zhao

      Angela Novakovic added 1 comment

      Angela Novakovic . resolved

      LGTM!

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Leo Zhao
      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: Ia2adb231cb3ee169717033ea626fcd2b7ed55092
      Gerrit-Change-Number: 8025271
      Gerrit-PatchSet: 3
      Gerrit-Owner: Leo Zhao <leo...@google.com>
      Gerrit-Reviewer: Angela Novakovic <novak...@google.com>
      Gerrit-Reviewer: Leo Zhao <leo...@google.com>
      Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
      Gerrit-Attention: Leo Zhao <leo...@google.com>
      Gerrit-Comment-Date: Thu, 02 Jul 2026 12:38:01 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Angela Novakovic (Gerrit)

      unread,
      Jul 2, 2026, 8:41:33 AMJul 2
      to Leo Zhao, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, browser-comp...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, tmartino+tran...@chromium.org
      Attention needed from Leo Zhao

      Angela Novakovic added 3 comments

      Patchset-level comments
      Angela Novakovic . resolved

      Small nit that I forgot to mention in my last review.

      File ios/chrome/browser/autofill/model/autofill_ai_prefetch_failure_infobar_delegate_ios.mm
      Line 14, Patchset 3 (Latest):constexpr CGFloat kAutofillAiInfobarSymbolPointSize = 24.0;
      Angela Novakovic . unresolved

      nit: There should be a comment above this constant.

      Line 16, Patchset 3 (Latest):ui::ImageModel GetPrefetchFailureIcon() {
      Angela Novakovic . unresolved

      nit: There should be a comment above this method.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Leo Zhao
      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: Ia2adb231cb3ee169717033ea626fcd2b7ed55092
        Gerrit-Change-Number: 8025271
        Gerrit-PatchSet: 3
        Gerrit-Owner: Leo Zhao <leo...@google.com>
        Gerrit-Reviewer: Angela Novakovic <novak...@google.com>
        Gerrit-Reviewer: Leo Zhao <leo...@google.com>
        Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
        Gerrit-Attention: Leo Zhao <leo...@google.com>
        Gerrit-Comment-Date: Thu, 02 Jul 2026 12:41:22 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Leo Zhao (Gerrit)

        unread,
        Jul 2, 2026, 11:07:43 AMJul 2
        to Alexis Hétu, Angela Novakovic, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, browser-comp...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, tmartino+tran...@chromium.org
        Attention needed from Alexis Hétu and Angela Novakovic

        Leo Zhao added 2 comments

        File ios/chrome/browser/autofill/model/autofill_ai_prefetch_failure_infobar_delegate_ios.mm
        Line 14, Patchset 3:constexpr CGFloat kAutofillAiInfobarSymbolPointSize = 24.0;
        Angela Novakovic . resolved

        nit: There should be a comment above this constant.

        Leo Zhao

        Done.

        Line 16, Patchset 3:ui::ImageModel GetPrefetchFailureIcon() {
        Angela Novakovic . resolved

        nit: There should be a comment above this method.

        Leo Zhao

        Done.

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Alexis Hétu
        • Angela Novakovic
        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: Ia2adb231cb3ee169717033ea626fcd2b7ed55092
          Gerrit-Change-Number: 8025271
          Gerrit-PatchSet: 4
          Gerrit-Owner: Leo Zhao <leo...@google.com>
          Gerrit-Reviewer: Alexis Hétu <su...@chromium.org>
          Gerrit-Reviewer: Angela Novakovic <novak...@google.com>
          Gerrit-Reviewer: Leo Zhao <leo...@google.com>
          Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
          Gerrit-Attention: Angela Novakovic <novak...@google.com>
          Gerrit-Attention: Alexis Hétu <su...@chromium.org>
          Gerrit-Comment-Date: Thu, 02 Jul 2026 15:07:35 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          Comment-In-Reply-To: Angela Novakovic <novak...@google.com>
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Alexis Hétu (Gerrit)

          unread,
          Jul 2, 2026, 11:22:11 AMJul 2
          to Leo Zhao, Angela Novakovic, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, browser-comp...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, tmartino+tran...@chromium.org
          Attention needed from Angela Novakovic and Leo Zhao

          Alexis Hétu added 4 comments

          File components/infobars/core/infobar_delegate.h
          Line 211, Patchset 3: AUTOFILL_AI_PREFETCH_FAILURE_INFOBAR_DELEGATE_IOS = 136,
          Alexis Hétu . unresolved

          Nit: the UI string uses "PRE_FETCH" instead of "PREFETCH", so this probably should use the same two word spelling.

          File ios/chrome/browser/autofill/model/autofill_ai_prefetch_failure_infobar_delegate_ios.mm
          Line 64, Patchset 3:bool AutofillAiPrefetchFailureInfoBarDelegateIOS::Accept() {
          return true;
          }
          Alexis Hétu . unresolved

          Do we need this? (seems like the default behaviour is the same as the default behaviour if you don't have observers)

          Line 68, Patchset 3:bool AutofillAiPrefetchFailureInfoBarDelegateIOS::ShouldExpire(
          const NavigationDetails& details) const {
          return true;
          }
          Alexis Hétu . unresolved

          I think this one should be removed, or the infobar will immediately expire on ANY navigation event, including same-document navigations (like hash changes) or subframe loads. The default implementation (InfoBarDelegate::ShouldExpire) should be correct.

          Line 73, Patchset 3:infobars::InfoBarDelegate::InfobarPriority
          AutofillAiPrefetchFailureInfoBarDelegateIOS::GetPriority() const {
          return infobars::InfoBarDelegate::InfobarPriority::kDefault;
          }
          Alexis Hétu . unresolved

          Isn't this the default implementation too?

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Angela Novakovic
          • Leo Zhao
          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: Ia2adb231cb3ee169717033ea626fcd2b7ed55092
            Gerrit-Change-Number: 8025271
            Gerrit-PatchSet: 3
            Gerrit-Owner: Leo Zhao <leo...@google.com>
            Gerrit-Reviewer: Alexis Hétu <su...@chromium.org>
            Gerrit-Reviewer: Angela Novakovic <novak...@google.com>
            Gerrit-Reviewer: Leo Zhao <leo...@google.com>
            Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
            Gerrit-Attention: Angela Novakovic <novak...@google.com>
            Gerrit-Attention: Leo Zhao <leo...@google.com>
            Gerrit-Comment-Date: Thu, 02 Jul 2026 15:22:00 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: No
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Leo Zhao (Gerrit)

            unread,
            Jul 2, 2026, 1:50:14 PMJul 2
            to Alexis Hétu, Angela Novakovic, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, browser-comp...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, tmartino+tran...@chromium.org
            Attention needed from Alexis Hétu and Angela Novakovic

            Leo Zhao added 4 comments

            File components/infobars/core/infobar_delegate.h
            Line 211, Patchset 3: AUTOFILL_AI_PREFETCH_FAILURE_INFOBAR_DELEGATE_IOS = 136,
            Alexis Hétu . resolved

            Nit: the UI string uses "PRE_FETCH" instead of "PREFETCH", so this probably should use the same two word spelling.

            Leo Zhao

            I have updated this to use two word spelling. I searched `./components` and found "Prefetch" is commonly used in code. So, I am keeping the file names and class names in this CL.

            File ios/chrome/browser/autofill/model/autofill_ai_prefetch_failure_infobar_delegate_ios.mm
            Line 64, Patchset 3:bool AutofillAiPrefetchFailureInfoBarDelegateIOS::Accept() {
            return true;
            }
            Alexis Hétu . resolved

            Do we need this? (seems like the default behaviour is the same as the default behaviour if you don't have observers)

            Leo Zhao

            Removed. This is the default behavior.

            Line 68, Patchset 3:bool AutofillAiPrefetchFailureInfoBarDelegateIOS::ShouldExpire(
            const NavigationDetails& details) const {
            return true;
            }
            Alexis Hétu . resolved

            I think this one should be removed, or the infobar will immediately expire on ANY navigation event, including same-document navigations (like hash changes) or subframe loads. The default implementation (InfoBarDelegate::ShouldExpire) should be correct.

            Leo Zhao

            Removed.

            Line 73, Patchset 3:infobars::InfoBarDelegate::InfobarPriority
            AutofillAiPrefetchFailureInfoBarDelegateIOS::GetPriority() const {
            return infobars::InfoBarDelegate::InfobarPriority::kDefault;
            }
            Alexis Hétu . resolved

            Isn't this the default implementation too?

            Leo Zhao

            Removed. This is the default implementation.

            Open in Gerrit

            Related details

            Attention is currently required from:
            • Alexis Hétu
            • Angela Novakovic
            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: Ia2adb231cb3ee169717033ea626fcd2b7ed55092
              Gerrit-Change-Number: 8025271
              Gerrit-PatchSet: 5
              Gerrit-Owner: Leo Zhao <leo...@google.com>
              Gerrit-Reviewer: Alexis Hétu <su...@chromium.org>
              Gerrit-Reviewer: Angela Novakovic <novak...@google.com>
              Gerrit-Reviewer: Leo Zhao <leo...@google.com>
              Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
              Gerrit-Attention: Angela Novakovic <novak...@google.com>
              Gerrit-Attention: Alexis Hétu <su...@chromium.org>
              Gerrit-Comment-Date: Thu, 02 Jul 2026 17:50:03 +0000
              Gerrit-HasComments: Yes
              Gerrit-Has-Labels: No
              Comment-In-Reply-To: Alexis Hétu <su...@chromium.org>
              satisfied_requirement
              unsatisfied_requirement
              open
              diffy

              Alexis Hétu (Gerrit)

              unread,
              Jul 2, 2026, 2:06:04 PMJul 2
              to Leo Zhao, Angela Novakovic, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, browser-comp...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, tmartino+tran...@chromium.org
              Attention needed from Angela Novakovic and Leo Zhao

              Alexis Hétu voted Code-Review+1

              Code-Review+1
              Open in Gerrit

              Related details

              Attention is currently required from:
              • Angela Novakovic
              • Leo Zhao
              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: Ia2adb231cb3ee169717033ea626fcd2b7ed55092
                Gerrit-Change-Number: 8025271
                Gerrit-PatchSet: 5
                Gerrit-Owner: Leo Zhao <leo...@google.com>
                Gerrit-Reviewer: Alexis Hétu <su...@chromium.org>
                Gerrit-Reviewer: Angela Novakovic <novak...@google.com>
                Gerrit-Reviewer: Leo Zhao <leo...@google.com>
                Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
                Gerrit-Attention: Angela Novakovic <novak...@google.com>
                Gerrit-Attention: Leo Zhao <leo...@google.com>
                Gerrit-Comment-Date: Thu, 02 Jul 2026 18:05:52 +0000
                Gerrit-HasComments: No
                Gerrit-Has-Labels: Yes
                satisfied_requirement
                unsatisfied_requirement
                open
                diffy

                Leo Zhao (Gerrit)

                unread,
                Jul 2, 2026, 2:21:22 PMJul 2
                to Kaan Alsan, Alexis Hétu, Angela Novakovic, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, browser-comp...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, tmartino+tran...@chromium.org
                Attention needed from Angela Novakovic and Kaan Alsan

                Leo Zhao added 1 comment

                Patchset-level comments
                File-level comment, Patchset 5 (Latest):
                Leo Zhao . resolved

                Hi Kaan, please take a look at the changes to `components/infobars/core/infobar_delegate.h`.

                Open in Gerrit

                Related details

                Attention is currently required from:
                • Angela Novakovic
                • Kaan Alsan
                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: Ia2adb231cb3ee169717033ea626fcd2b7ed55092
                Gerrit-Change-Number: 8025271
                Gerrit-PatchSet: 5
                Gerrit-Owner: Leo Zhao <leo...@google.com>
                Gerrit-Reviewer: Alexis Hétu <su...@chromium.org>
                Gerrit-Reviewer: Angela Novakovic <novak...@google.com>
                Gerrit-Reviewer: Kaan Alsan <al...@chromium.org>
                Gerrit-Reviewer: Leo Zhao <leo...@google.com>
                Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
                Gerrit-Attention: Angela Novakovic <novak...@google.com>
                Gerrit-Attention: Kaan Alsan <al...@chromium.org>
                Gerrit-Comment-Date: Thu, 02 Jul 2026 18:21:14 +0000
                Gerrit-HasComments: Yes
                Gerrit-Has-Labels: No
                satisfied_requirement
                unsatisfied_requirement
                open
                diffy

                Leo Zhao (Gerrit)

                unread,
                Jul 2, 2026, 2:23:02 PMJul 2
                to Kaan Alsan, Alexis Hétu, Angela Novakovic, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, browser-comp...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, tmartino+tran...@chromium.org
                Attention needed from Angela Novakovic, Joe Mason and Kaan Alsan

                Leo Zhao added 1 comment

                Patchset-level comments
                Leo Zhao . resolved

                Hi Joe. Please take a look at the changes to `t/m/h/m/b/enums.xml`.

                Open in Gerrit

                Related details

                Attention is currently required from:
                • Angela Novakovic
                • Joe Mason
                • Kaan Alsan
                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: Ia2adb231cb3ee169717033ea626fcd2b7ed55092
                Gerrit-Change-Number: 8025271
                Gerrit-PatchSet: 5
                Gerrit-Owner: Leo Zhao <leo...@google.com>
                Gerrit-Reviewer: Alexis Hétu <su...@chromium.org>
                Gerrit-Reviewer: Angela Novakovic <novak...@google.com>
                Gerrit-Reviewer: Joe Mason <joenot...@google.com>
                Gerrit-Reviewer: Kaan Alsan <al...@chromium.org>
                Gerrit-Reviewer: Leo Zhao <leo...@google.com>
                Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
                Gerrit-Attention: Angela Novakovic <novak...@google.com>
                Gerrit-Attention: Kaan Alsan <al...@chromium.org>
                Gerrit-Attention: Joe Mason <joenot...@google.com>
                Gerrit-Comment-Date: Thu, 02 Jul 2026 18:22:45 +0000
                Gerrit-HasComments: Yes
                Gerrit-Has-Labels: No
                satisfied_requirement
                unsatisfied_requirement
                open
                diffy

                Kaan Alsan (Gerrit)

                unread,
                Jul 2, 2026, 2:24:07 PMJul 2
                to Leo Zhao, Alexis Hétu, Angela Novakovic, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, browser-comp...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, tmartino+tran...@chromium.org
                Attention needed from Angela Novakovic, Joe Mason and Leo Zhao

                Kaan Alsan voted Code-Review+1

                Code-Review+1
                Open in Gerrit

                Related details

                Attention is currently required from:
                • Angela Novakovic
                • Joe Mason
                • Leo Zhao
                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: Ia2adb231cb3ee169717033ea626fcd2b7ed55092
                Gerrit-Change-Number: 8025271
                Gerrit-PatchSet: 5
                Gerrit-Owner: Leo Zhao <leo...@google.com>
                Gerrit-Reviewer: Alexis Hétu <su...@chromium.org>
                Gerrit-Reviewer: Angela Novakovic <novak...@google.com>
                Gerrit-Reviewer: Joe Mason <joenot...@google.com>
                Gerrit-Reviewer: Kaan Alsan <al...@chromium.org>
                Gerrit-Reviewer: Leo Zhao <leo...@google.com>
                Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
                Gerrit-Attention: Angela Novakovic <novak...@google.com>
                Gerrit-Attention: Leo Zhao <leo...@google.com>
                Gerrit-Attention: Joe Mason <joenot...@google.com>
                Gerrit-Comment-Date: Thu, 02 Jul 2026 18:23:53 +0000
                Gerrit-HasComments: No
                Gerrit-Has-Labels: Yes
                satisfied_requirement
                unsatisfied_requirement
                open
                diffy

                Joe Mason (Gerrit)

                unread,
                Jul 2, 2026, 4:41:29 PMJul 2
                to Leo Zhao, Kaan Alsan, Alexis Hétu, Angela Novakovic, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, browser-comp...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, tmartino+tran...@chromium.org
                Attention needed from Angela Novakovic and Leo Zhao

                Joe Mason voted Code-Review+1

                Code-Review+1
                Open in Gerrit

                Related details

                Attention is currently required from:
                • Angela Novakovic
                • Leo Zhao
                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: Ia2adb231cb3ee169717033ea626fcd2b7ed55092
                Gerrit-Change-Number: 8025271
                Gerrit-PatchSet: 5
                Gerrit-Owner: Leo Zhao <leo...@google.com>
                Gerrit-Reviewer: Alexis Hétu <su...@chromium.org>
                Gerrit-Reviewer: Angela Novakovic <novak...@google.com>
                Gerrit-Reviewer: Joe Mason <joenot...@google.com>
                Gerrit-Reviewer: Kaan Alsan <al...@chromium.org>
                Gerrit-Reviewer: Leo Zhao <leo...@google.com>
                Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
                Gerrit-Attention: Angela Novakovic <novak...@google.com>
                Gerrit-Attention: Leo Zhao <leo...@google.com>
                Gerrit-Comment-Date: Thu, 02 Jul 2026 20:41:19 +0000
                Gerrit-HasComments: No
                Gerrit-Has-Labels: Yes
                satisfied_requirement
                open
                diffy

                Leo Zhao (Gerrit)

                unread,
                Jul 2, 2026, 4:59:20 PMJul 2
                to Kaan Alsan, Alexis Hétu, Angela Novakovic, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, browser-comp...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, tmartino+tran...@chromium.org
                Attention needed from Angela Novakovic

                Leo Zhao voted Commit-Queue+2

                Commit-Queue+2
                Open in Gerrit

                Related details

                Attention is currently required from:
                • Angela Novakovic
                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: Ia2adb231cb3ee169717033ea626fcd2b7ed55092
                Gerrit-Change-Number: 8025271
                Gerrit-PatchSet: 5
                Gerrit-Owner: Leo Zhao <leo...@google.com>
                Gerrit-Reviewer: Alexis Hétu <su...@chromium.org>
                Gerrit-Reviewer: Angela Novakovic <novak...@google.com>
                Gerrit-Reviewer: Joe Mason <joenot...@google.com>
                Gerrit-Reviewer: Kaan Alsan <al...@chromium.org>
                Gerrit-Reviewer: Leo Zhao <leo...@google.com>
                Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
                Gerrit-Attention: Angela Novakovic <novak...@google.com>
                Gerrit-Comment-Date: Thu, 02 Jul 2026 20:58:56 +0000
                Gerrit-HasComments: No
                Gerrit-Has-Labels: Yes
                satisfied_requirement
                open
                diffy

                Leo Zhao (Gerrit)

                unread,
                Jul 2, 2026, 6:10:19 PMJul 2
                to Kaan Alsan, Alexis Hétu, Angela Novakovic, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, browser-comp...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, tmartino+tran...@chromium.org
                Attention needed from Angela Novakovic

                Leo Zhao voted Commit-Queue+2

                Commit-Queue+2
                Open in Gerrit

                Related details

                Attention is currently required from:
                • Angela Novakovic
                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: Ia2adb231cb3ee169717033ea626fcd2b7ed55092
                Gerrit-Change-Number: 8025271
                Gerrit-PatchSet: 6
                Gerrit-Owner: Leo Zhao <leo...@google.com>
                Gerrit-Reviewer: Alexis Hétu <su...@chromium.org>
                Gerrit-Reviewer: Angela Novakovic <novak...@google.com>
                Gerrit-Reviewer: Joe Mason <joenot...@google.com>
                Gerrit-Reviewer: Kaan Alsan <al...@chromium.org>
                Gerrit-Reviewer: Leo Zhao <leo...@google.com>
                Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
                Gerrit-Attention: Angela Novakovic <novak...@google.com>
                Gerrit-Comment-Date: Thu, 02 Jul 2026 22:10:07 +0000
                Gerrit-HasComments: No
                Gerrit-Has-Labels: Yes
                satisfied_requirement
                open
                diffy

                Chromium LUCI CQ (Gerrit)

                unread,
                Jul 2, 2026, 7:40:33 PMJul 2
                to Leo Zhao, Kaan Alsan, Alexis Hétu, Angela Novakovic, android-bu...@system.gserviceaccount.com, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, browser-comp...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, tmartino+tran...@chromium.org

                Chromium LUCI CQ submitted the change with unreviewed changes

                Unreviewed changes

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

                ```
                The name of the file: ios/chrome/browser/autofill/ui_bundled/chrome_autofill_client_ios_unittest.mm
                Insertions: 1, Deletions: 1.

                @@ -265,7 +265,7 @@
                infobars::InfoBar* infobar = infobar_manager->infobars()[0];
                EXPECT_EQ(infobar->delegate()->GetIdentifier(),
                infobars::InfoBarDelegate::
                - AUTOFILL_AI_PREFETCH_FAILURE_INFOBAR_DELEGATE_IOS);
                + AUTOFILL_AI_PRE_FETCH_FAILURE_INFOBAR_DELEGATE_IOS);

                // Calling it again should replace the existing one, so count remains 1.
                client().ShowAutofillAiPreFetchFailureNotification();
                ```
                ```
                The name of the file: ios/chrome/browser/autofill/ui_bundled/chrome_autofill_client_ios.mm
                Insertions: 1, Deletions: 1.

                @@ -690,7 +690,7 @@
                const auto existing_infobar =
                std::ranges::find(infobar_manager_->infobars(),
                infobars::InfoBarDelegate::
                - AUTOFILL_AI_PREFETCH_FAILURE_INFOBAR_DELEGATE_IOS,
                + AUTOFILL_AI_PRE_FETCH_FAILURE_INFOBAR_DELEGATE_IOS,
                &infobars::InfoBar::GetIdentifier);

                if (existing_infobar != infobar_manager_->infobars().cend()) {
                ```
                ```
                The name of the file: ios/chrome/browser/autofill/model/autofill_ai_prefetch_failure_infobar_delegate_ios.mm
                Insertions: 1, Deletions: 1.

                @@ -41,7 +41,7 @@
                infobars::InfoBarDelegate::InfoBarIdentifier
                AutofillAiPrefetchFailureInfoBarDelegateIOS::GetIdentifier() const {
                return infobars::InfoBarDelegate::
                - AUTOFILL_AI_PREFETCH_FAILURE_INFOBAR_DELEGATE_IOS;
                + AUTOFILL_AI_PRE_FETCH_FAILURE_INFOBAR_DELEGATE_IOS;
                }

                ui::ImageModel AutofillAiPrefetchFailureInfoBarDelegateIOS::GetIcon() const {
                ```

                Change information

                Commit message:
                [iOS] Add infobar message for Autofill AI prefetch failures

                This CL adds infobar support for Autofill AI prefetch failures which can
                happen for fetching Ambient Autofill entities.

                Branded Asset:
                https://screenshot.googleplex.com/AVRH5qEgap6Mn5T

                None Branded Asset:
                https://screenshot.googleplex.com/LZxPqe4gpgiiuak
                Bug: 529834204
                Change-Id: Ia2adb231cb3ee169717033ea626fcd2b7ed55092
                Reviewed-by: Alexis Hétu <su...@chromium.org>
                Commit-Queue: Leo Zhao <leo...@google.com>
                Reviewed-by: Kaan Alsan <al...@chromium.org>
                Reviewed-by: Joe Mason <joenot...@google.com>
                Cr-Commit-Position: refs/heads/main@{#1656303}
                Files:
                Change size: M
                Delta: 8 files changed, 162 insertions(+), 0 deletions(-)
                Branch: refs/heads/main
                Submit Requirements:
                • requirement satisfiedCode-Review: +1 by Joe Mason, +1 by Kaan Alsan, +1 by Alexis Hétu
                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: Ia2adb231cb3ee169717033ea626fcd2b7ed55092
                Gerrit-Change-Number: 8025271
                Gerrit-PatchSet: 7
                Gerrit-Owner: Leo Zhao <leo...@google.com>
                Gerrit-Reviewer: Alexis Hétu <su...@chromium.org>
                Gerrit-Reviewer: Angela Novakovic <novak...@google.com>
                Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
                Gerrit-Reviewer: Joe Mason <joenot...@google.com>
                Gerrit-Reviewer: Kaan Alsan <al...@chromium.org>
                Gerrit-Reviewer: Leo Zhao <leo...@google.com>
                open
                diffy
                satisfied_requirement

                Ginny Huang (Gerrit)

                unread,
                Jul 20, 2026, 12:27:20 PM (yesterday) Jul 20
                to Chromium LUCI CQ, Leo Zhao, Kaan Alsan, Alexis Hétu, Angela Novakovic, android-bu...@system.gserviceaccount.com, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, browser-comp...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, tmartino+tran...@chromium.org
                Attention needed from Leo Zhao

                Ginny Huang added 1 comment

                File ios/chrome/browser/autofill/ui_bundled/chrome_autofill_client_ios.mm
                Line 704, Patchset 7 (Latest): InfobarType::kInfobarTypeConfirm, std::move(delegate)));
                Ginny Huang . unresolved

                I've came across the autofill AI infobar when reviewing another infobar CL, and I'm wondering why haven't you used `kInfobarTypeAutofillAiSaveEntity` here? If you are doing `kInfobarTypeConfirm` here, does all the switch statement with `kInfobarTypeAutofillAiSaveEntity` even work?

                Open in Gerrit

                Related details

                Attention is currently required from:
                • Leo Zhao
                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: Ia2adb231cb3ee169717033ea626fcd2b7ed55092
                Gerrit-Change-Number: 8025271
                Gerrit-PatchSet: 7
                Gerrit-Owner: Leo Zhao <leo...@google.com>
                Gerrit-Reviewer: Alexis Hétu <su...@chromium.org>
                Gerrit-Reviewer: Angela Novakovic <novak...@google.com>
                Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
                Gerrit-Reviewer: Joe Mason <joenot...@google.com>
                Gerrit-Reviewer: Kaan Alsan <al...@chromium.org>
                Gerrit-Reviewer: Leo Zhao <leo...@google.com>
                Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
                Gerrit-CC: Ginny Huang <ginny...@chromium.org>
                Gerrit-Attention: Leo Zhao <leo...@google.com>
                Gerrit-Comment-Date: Mon, 20 Jul 2026 16:27:09 +0000
                Gerrit-HasComments: Yes
                Gerrit-Has-Labels: No
                satisfied_requirement
                open
                diffy

                Leo Zhao (Gerrit)

                unread,
                Jul 20, 2026, 1:11:39 PM (yesterday) Jul 20
                to Chromium LUCI CQ, Ginny Huang, Kaan Alsan, Alexis Hétu, Angela Novakovic, android-bu...@system.gserviceaccount.com, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, browser-comp...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, tmartino+tran...@chromium.org

                Leo Zhao added 1 comment

                File ios/chrome/browser/autofill/ui_bundled/chrome_autofill_client_ios.mm
                Line 704, Patchset 7 (Latest): InfobarType::kInfobarTypeConfirm, std::move(delegate)));
                Ginny Huang . unresolved

                I've came across the autofill AI infobar when reviewing another infobar CL, and I'm wondering why haven't you used `kInfobarTypeAutofillAiSaveEntity` here? If you are doing `kInfobarTypeConfirm` here, does all the switch statement with `kInfobarTypeAutofillAiSaveEntity` even work?

                Leo Zhao

                The `ShowAutofillAiPreFetchFailureNotification` method is showing another type of infobar message that differs from `ShowEntityImportBubble` (which uses `kInfobarTypeAutofillAiSaveEntity`).

                This is showing a generic confirmation infobar message. When a user taps Got It, it disappears.

                `kInfobarTypeAutofillAiSaveEntity` however, shows an infobar, and pops up a dialog when a user taps "Save", and performs a series of actions.

                Yes, `kInfobarTypeAutofillAiSaveEntity` is working. There are mutilple EG tests testing its behavior. Did you notice any issues that may not be covered by EG tests?

                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: Ia2adb231cb3ee169717033ea626fcd2b7ed55092
                Gerrit-Change-Number: 8025271
                Gerrit-PatchSet: 7
                Gerrit-Owner: Leo Zhao <leo...@google.com>
                Gerrit-Reviewer: Alexis Hétu <su...@chromium.org>
                Gerrit-Reviewer: Angela Novakovic <novak...@google.com>
                Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
                Gerrit-Reviewer: Joe Mason <joenot...@google.com>
                Gerrit-Reviewer: Kaan Alsan <al...@chromium.org>
                Gerrit-Reviewer: Leo Zhao <leo...@google.com>
                Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
                Gerrit-CC: Ginny Huang <ginny...@chromium.org>
                Gerrit-Comment-Date: Mon, 20 Jul 2026 17:11:33 +0000
                Gerrit-HasComments: Yes
                Gerrit-Has-Labels: No
                Comment-In-Reply-To: Ginny Huang <ginny...@chromium.org>
                satisfied_requirement
                open
                diffy

                Ginny Huang (Gerrit)

                unread,
                Jul 20, 2026, 2:08:56 PM (yesterday) Jul 20
                to Chromium LUCI CQ, Leo Zhao, Kaan Alsan, Alexis Hétu, Angela Novakovic, android-bu...@system.gserviceaccount.com, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, browser-comp...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, tmartino+tran...@chromium.org
                Attention needed from Leo Zhao

                Ginny Huang added 1 comment

                File ios/chrome/browser/autofill/ui_bundled/chrome_autofill_client_ios.mm
                Line 704, Patchset 7 (Latest): InfobarType::kInfobarTypeConfirm, std::move(delegate)));
                Ginny Huang . unresolved

                I've came across the autofill AI infobar when reviewing another infobar CL, and I'm wondering why haven't you used `kInfobarTypeAutofillAiSaveEntity` here? If you are doing `kInfobarTypeConfirm` here, does all the switch statement with `kInfobarTypeAutofillAiSaveEntity` even work?

                Leo Zhao

                The `ShowAutofillAiPreFetchFailureNotification` method is showing another type of infobar message that differs from `ShowEntityImportBubble` (which uses `kInfobarTypeAutofillAiSaveEntity`).

                This is showing a generic confirmation infobar message. When a user taps Got It, it disappears.

                `kInfobarTypeAutofillAiSaveEntity` however, shows an infobar, and pops up a dialog when a user taps "Save", and performs a series of actions.

                Yes, `kInfobarTypeAutofillAiSaveEntity` is working. There are mutilple EG tests testing its behavior. Did you notice any issues that may not be covered by EG tests?

                Ginny Huang

                I didn't see `ShowEntityImportBubble`. Ok that makes sense, thanks!

                One question - should the metric "Mobile.Messages.Banner.Event.InfobarTypeAutofillAiSaveEntity" fire as a result of `ShowAutofillAiPreFetchFailureNotification`? If I understand the infobar code correctly it shouldn't. If the metric is expected to fire, you might want to double check.

                Open in Gerrit

                Related details

                Attention is currently required from:
                • Leo Zhao
                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: Ia2adb231cb3ee169717033ea626fcd2b7ed55092
                Gerrit-Change-Number: 8025271
                Gerrit-PatchSet: 7
                Gerrit-Owner: Leo Zhao <leo...@google.com>
                Gerrit-Reviewer: Alexis Hétu <su...@chromium.org>
                Gerrit-Reviewer: Angela Novakovic <novak...@google.com>
                Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
                Gerrit-Reviewer: Joe Mason <joenot...@google.com>
                Gerrit-Reviewer: Kaan Alsan <al...@chromium.org>
                Gerrit-Reviewer: Leo Zhao <leo...@google.com>
                Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
                Gerrit-CC: Ginny Huang <ginny...@chromium.org>
                Gerrit-Attention: Leo Zhao <leo...@google.com>
                Gerrit-Comment-Date: Mon, 20 Jul 2026 18:08:44 +0000
                Gerrit-HasComments: Yes
                Gerrit-Has-Labels: No
                Comment-In-Reply-To: Leo Zhao <leo...@google.com>
                Comment-In-Reply-To: Ginny Huang <ginny...@chromium.org>
                satisfied_requirement
                open
                diffy

                Ginny Huang (Gerrit)

                unread,
                Jul 20, 2026, 2:09:54 PM (yesterday) Jul 20
                to Chromium LUCI CQ, Leo Zhao, Kaan Alsan, Alexis Hétu, Angela Novakovic, android-bu...@system.gserviceaccount.com, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, browser-comp...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, tmartino+tran...@chromium.org
                Attention needed from Leo Zhao

                Ginny Huang added 1 comment

                File ios/chrome/browser/autofill/ui_bundled/chrome_autofill_client_ios.mm
                Line 704, Patchset 7 (Latest): InfobarType::kInfobarTypeConfirm, std::move(delegate)));
                Ginny Huang . unresolved

                I've came across the autofill AI infobar when reviewing another infobar CL, and I'm wondering why haven't you used `kInfobarTypeAutofillAiSaveEntity` here? If you are doing `kInfobarTypeConfirm` here, does all the switch statement with `kInfobarTypeAutofillAiSaveEntity` even work?

                Leo Zhao

                The `ShowAutofillAiPreFetchFailureNotification` method is showing another type of infobar message that differs from `ShowEntityImportBubble` (which uses `kInfobarTypeAutofillAiSaveEntity`).

                This is showing a generic confirmation infobar message. When a user taps Got It, it disappears.

                `kInfobarTypeAutofillAiSaveEntity` however, shows an infobar, and pops up a dialog when a user taps "Save", and performs a series of actions.

                Yes, `kInfobarTypeAutofillAiSaveEntity` is working. There are mutilple EG tests testing its behavior. Did you notice any issues that may not be covered by EG tests?

                Ginny Huang

                I didn't see `ShowEntityImportBubble`. Ok that makes sense, thanks!

                One question - should the metric "Mobile.Messages.Banner.Event.InfobarTypeAutofillAiSaveEntity" fire as a result of `ShowAutofillAiPreFetchFailureNotification`? If I understand the infobar code correctly it shouldn't. If the metric is expected to fire, you might want to double check.

                Ginny Huang

                (I mean as a result of `ShowAutofillAiPreFetchFailureNotification` - I am sure that `ShowEntityImportBubble` would have triggered that histogram)

                Gerrit-Comment-Date: Mon, 20 Jul 2026 18:09:43 +0000
                satisfied_requirement
                open
                diffy

                Leo Zhao (Gerrit)

                unread,
                Jul 20, 2026, 5:33:34 PM (yesterday) Jul 20
                to Chromium LUCI CQ, Ginny Huang, Kaan Alsan, Alexis Hétu, Angela Novakovic, android-bu...@system.gserviceaccount.com, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, browser-comp...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, tmartino+tran...@chromium.org

                Leo Zhao added 1 comment

                File ios/chrome/browser/autofill/ui_bundled/chrome_autofill_client_ios.mm
                Line 704, Patchset 7 (Latest): InfobarType::kInfobarTypeConfirm, std::move(delegate)));
                Ginny Huang . resolved

                I've came across the autofill AI infobar when reviewing another infobar CL, and I'm wondering why haven't you used `kInfobarTypeAutofillAiSaveEntity` here? If you are doing `kInfobarTypeConfirm` here, does all the switch statement with `kInfobarTypeAutofillAiSaveEntity` even work?

                Leo Zhao

                The `ShowAutofillAiPreFetchFailureNotification` method is showing another type of infobar message that differs from `ShowEntityImportBubble` (which uses `kInfobarTypeAutofillAiSaveEntity`).

                This is showing a generic confirmation infobar message. When a user taps Got It, it disappears.

                `kInfobarTypeAutofillAiSaveEntity` however, shows an infobar, and pops up a dialog when a user taps "Save", and performs a series of actions.

                Yes, `kInfobarTypeAutofillAiSaveEntity` is working. There are mutilple EG tests testing its behavior. Did you notice any issues that may not be covered by EG tests?

                Ginny Huang

                I didn't see `ShowEntityImportBubble`. Ok that makes sense, thanks!

                One question - should the metric "Mobile.Messages.Banner.Event.InfobarTypeAutofillAiSaveEntity" fire as a result of `ShowAutofillAiPreFetchFailureNotification`? If I understand the infobar code correctly it shouldn't. If the metric is expected to fire, you might want to double check.

                Ginny Huang

                (I mean as a result of `ShowAutofillAiPreFetchFailureNotification` - I am sure that `ShowEntityImportBubble` would have triggered that histogram)

                Leo Zhao

                It is nice to know that ShowAutofillAiPreFetchFailureNotification did not trigger `Mobile.Messages.Banner.Event.InfobarTypeAutofillAiSaveEntity`. The two infobar messages serve different purposes. Prefetch notification should not trigger save entity. (Some background, `InfobarTypeAutofillAiSaveEntity` is triggered by a user submitting a form that Autofill Ai recognizes. The prefetch notification is for another project called Ambient Autofill which only happens when prefetch of a form failed).

                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: Ia2adb231cb3ee169717033ea626fcd2b7ed55092
                Gerrit-Change-Number: 8025271
                Gerrit-PatchSet: 7
                Gerrit-Owner: Leo Zhao <leo...@google.com>
                Gerrit-Reviewer: Alexis Hétu <su...@chromium.org>
                Gerrit-Reviewer: Angela Novakovic <novak...@google.com>
                Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
                Gerrit-Reviewer: Joe Mason <joenot...@google.com>
                Gerrit-Reviewer: Kaan Alsan <al...@chromium.org>
                Gerrit-Reviewer: Leo Zhao <leo...@google.com>
                Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
                Gerrit-CC: Ginny Huang <ginny...@chromium.org>
                Gerrit-Comment-Date: Mon, 20 Jul 2026 21:33:27 +0000
                satisfied_requirement
                open
                diffy
                Reply all
                Reply to author
                Forward
                0 new messages