[iOS]Remove code repetition [chromium/src : main]

1 view
Skip to first unread message

Arthur Milchior (Gerrit)

unread,
Apr 22, 2026, 8:33:44 PM (13 days ago) Apr 22
to Huiting Yu, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, chromium...@chromium.org, browser-comp...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
Attention needed from Huiting Yu

Arthur Milchior voted Auto-Submit+1

Auto-Submit+1
Open in Gerrit

Related details

Attention is currently required from:
  • Huiting Yu
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: I7c97eb75fcc012be24482d2aafe6038bed7e8599
Gerrit-Change-Number: 7786290
Gerrit-PatchSet: 4
Gerrit-Owner: Arthur Milchior <arthurm...@chromium.org>
Gerrit-Reviewer: Arthur Milchior <arthurm...@chromium.org>
Gerrit-Reviewer: Huiting Yu <huit...@google.com>
Gerrit-Attention: Huiting Yu <huit...@google.com>
Gerrit-Comment-Date: Thu, 23 Apr 2026 00:33:25 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Huiting Yu (Gerrit)

unread,
Apr 24, 2026, 6:06:39 PM (11 days ago) Apr 24
to Arthur Milchior, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, chromium...@chromium.org, browser-comp...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
Attention needed from Arthur Milchior

Huiting Yu added 1 comment

File ios/chrome/browser/bookmarks/ui_bundled/home/bookmarks_home_view_controller.mm
Line 968, Patchset 4 (Latest): if ([self isIncognitoForced]) {
Huiting Yu . unresolved

This logic is incorrect. If `inIncognito` is `YES` and `isIncognitoForced` is `YES`, this method will now return early and fail to open the URLs.

The check for `isIncognitoForced` should only apply when `inIncognito` is `NO`.

The comment above this method correctly describes the intent: \"if `inIncognito` is NO but incognito is forced, do nothing.\" but the implementation checks it regardless of the value of `inIncognito`.

Open in Gerrit

Related details

Attention is currently required from:
  • Arthur Milchior
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: I7c97eb75fcc012be24482d2aafe6038bed7e8599
    Gerrit-Change-Number: 7786290
    Gerrit-PatchSet: 4
    Gerrit-Owner: Arthur Milchior <arthurm...@chromium.org>
    Gerrit-Reviewer: Arthur Milchior <arthurm...@chromium.org>
    Gerrit-Reviewer: Huiting Yu <huit...@google.com>
    Gerrit-Attention: Arthur Milchior <arthurm...@chromium.org>
    Gerrit-Comment-Date: Fri, 24 Apr 2026 22:06:31 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Arthur Milchior (Gerrit)

    unread,
    Apr 29, 2026, 8:55:29 AM (6 days ago) Apr 29
    to Huiting Yu, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, chromium...@chromium.org, browser-comp...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
    Attention needed from Huiting Yu

    Arthur Milchior voted and added 1 comment

    Votes added by Arthur Milchior

    Auto-Submit+1

    1 comment

    File ios/chrome/browser/bookmarks/ui_bundled/home/bookmarks_home_view_controller.mm
    Line 968, Patchset 4: if ([self isIncognitoForced]) {
    Huiting Yu . resolved

    This logic is incorrect. If `inIncognito` is `YES` and `isIncognitoForced` is `YES`, this method will now return early and fail to open the URLs.

    The check for `isIncognitoForced` should only apply when `inIncognito` is `NO`.

    The comment above this method correctly describes the intent: \"if `inIncognito` is NO but incognito is forced, do nothing.\" but the implementation checks it regardless of the value of `inIncognito`.

    Arthur Milchior

    Done

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Huiting Yu
    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: I7c97eb75fcc012be24482d2aafe6038bed7e8599
      Gerrit-Change-Number: 7786290
      Gerrit-PatchSet: 13
      Gerrit-Owner: Arthur Milchior <arthurm...@chromium.org>
      Gerrit-Reviewer: Arthur Milchior <arthurm...@chromium.org>
      Gerrit-Reviewer: Huiting Yu <huit...@google.com>
      Gerrit-Attention: Huiting Yu <huit...@google.com>
      Gerrit-Comment-Date: Wed, 29 Apr 2026 12:55:16 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Comment-In-Reply-To: Huiting Yu <huit...@google.com>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Huiting Yu (Gerrit)

      unread,
      May 4, 2026, 3:20:13 PM (17 hours ago) May 4
      to Arthur Milchior, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, chromium...@chromium.org, feature-me...@chromium.org, browser-comp...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
      Attention needed from Arthur Milchior

      Huiting Yu voted Code-Review+1

      Code-Review+1
      Open in Gerrit

      Related details

      Attention is currently required from:
      • Arthur Milchior
      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: I7c97eb75fcc012be24482d2aafe6038bed7e8599
        Gerrit-Change-Number: 7786290
        Gerrit-PatchSet: 16
        Gerrit-Owner: Arthur Milchior <arthurm...@chromium.org>
        Gerrit-Reviewer: Arthur Milchior <arthurm...@chromium.org>
        Gerrit-Reviewer: Huiting Yu <huit...@google.com>
        Gerrit-Attention: Arthur Milchior <arthurm...@chromium.org>
        Gerrit-Comment-Date: Mon, 04 May 2026 19:20:05 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        open
        diffy

        Arthur Milchior (Gerrit)

        unread,
        6:43 AM (2 hours ago) 6:43 AM
        to Huiting Yu, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, chromium...@chromium.org, feature-me...@chromium.org, browser-comp...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org

        Arthur Milchior voted Commit-Queue+2

        Commit-Queue+2
        Open in Gerrit

        Related details

        Attention set is empty
        Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement satisfiedCode-Owners
        • requirement satisfiedCode-Review
        • requirement satisfiedReview-Enforcement
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I7c97eb75fcc012be24482d2aafe6038bed7e8599
        Gerrit-Change-Number: 7786290
        Gerrit-PatchSet: 17
        Gerrit-Owner: Arthur Milchior <arthurm...@chromium.org>
        Gerrit-Reviewer: Arthur Milchior <arthurm...@chromium.org>
        Gerrit-Reviewer: Huiting Yu <huit...@google.com>
        Gerrit-Comment-Date: Tue, 05 May 2026 10:42:50 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        open
        diffy

        Chromium LUCI CQ (Gerrit)

        unread,
        7:38 AM (1 hour ago) 7:38 AM
        to Arthur Milchior, Huiting Yu, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, feature-me...@chromium.org, browser-comp...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org

        Chromium LUCI CQ submitted the change

        Unreviewed changes

        16 is the latest approved patch-set.
        No files were changed between the latest approved patch-set and the submitted one.

        Change information

        Commit message:
        [iOS]Remove code repetition

        Each time the method openAllURLs:inIncognito:newTab: was called, the
        code checked first whether this could be executed. This Change
        simplifies slightly the code, and in particular reduces the size of
        blocks.
        Bug: none
        Change-Id: I7c97eb75fcc012be24482d2aafe6038bed7e8599
        Auto-Submit: Arthur Milchior <arthurm...@chromium.org>
        Commit-Queue: Arthur Milchior <arthurm...@chromium.org>
        Reviewed-by: Huiting Yu <huit...@google.com>
        Cr-Commit-Position: refs/heads/main@{#1625324}
        Files:
        Change size: S
        Delta: 1 file changed, 7 insertions(+), 18 deletions(-)
        Branch: refs/heads/main
        Submit Requirements:
        • requirement satisfiedCode-Review: +1 by Huiting Yu
        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: I7c97eb75fcc012be24482d2aafe6038bed7e8599
        Gerrit-Change-Number: 7786290
        Gerrit-PatchSet: 18
        Gerrit-Owner: Arthur Milchior <arthurm...@chromium.org>
        Gerrit-Reviewer: Arthur Milchior <arthurm...@chromium.org>
        open
        diffy
        satisfied_requirement
        Reply all
        Reply to author
        Forward
        0 new messages