Remove non-adaptor uses of base::IgnoreResult [chromium/src : main]

0 views
Skip to first unread message

gwsq (Gerrit)

unread,
Feb 12, 2026, 8:27:10 AM (10 days ago) Feb 12
to Andrew Paseltiner, Chromium UI Views Reviews, Dana Fried, Abhijith Nair, Nico Weber, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, Enterprise Policy Reviews, fdoray...@chromium.org, jessemcke...@google.com, scheduler...@chromium.org, gab+...@chromium.org, fuzzin...@chromium.org, android-web...@chromium.org, cros-report...@google.com, roblia...@chromium.org, sky+...@chromium.org, wfh+...@chromium.org
Attention needed from Abhijith Nair, Dana Fried and Nico Weber

Message from gwsq

Reviewer source(s):
dfr...@chromium.org is from context(googleclient/chrome/chromium_gwsq/ui/views/config.gwsq)

Open in Gerrit

Related details

Attention is currently required from:
  • Abhijith Nair
  • Dana Fried
  • Nico Weber
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: I8983266602f7c109d20ec663d3f066ac257d51a3
Gerrit-Change-Number: 7567506
Gerrit-PatchSet: 9
Gerrit-Owner: Andrew Paseltiner <apase...@chromium.org>
Gerrit-Reviewer: Abhijith Nair <abhiji...@chromium.org>
Gerrit-Reviewer: Andrew Paseltiner <apase...@chromium.org>
Gerrit-Reviewer: Dana Fried <dfr...@chromium.org>
Gerrit-Reviewer: Nico Weber <tha...@chromium.org>
Gerrit-CC: Chromium UI Views Reviews <chromium-ui-...@google.com>
Gerrit-CC: Enterprise Policy Reviews <enterprise-p...@google.com>
Gerrit-CC: gwsq
Gerrit-Attention: Nico Weber <tha...@chromium.org>
Gerrit-Attention: Dana Fried <dfr...@chromium.org>
Gerrit-Attention: Abhijith Nair <abhiji...@chromium.org>
Gerrit-Comment-Date: Thu, 12 Feb 2026 13:27:01 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Dana Fried (Gerrit)

unread,
Feb 12, 2026, 11:06:04 AM (10 days ago) Feb 12
to Andrew Paseltiner, Chromium UI Views Reviews, Abhijith Nair, Nico Weber, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, Enterprise Policy Reviews, fdoray...@chromium.org, jessemcke...@google.com, scheduler...@chromium.org, gab+...@chromium.org, fuzzin...@chromium.org, android-web...@chromium.org, cros-report...@google.com, roblia...@chromium.org, sky+...@chromium.org, wfh+...@chromium.org
Attention needed from Abhijith Nair, Andrew Paseltiner and Nico Weber

Dana Fried added 1 comment

Patchset-level comments
File-level comment, Patchset 9 (Latest):
Dana Fried . unresolved

While I am concerned about the discarding of non-discardable results in production code, I am comfortable with these changes in that they won't change any actual behavior. However, perhaps we should revisit places where `std::ignore` is now used.

Open in Gerrit

Related details

Attention is currently required from:
  • Abhijith Nair
  • Andrew Paseltiner
  • Nico Weber
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: I8983266602f7c109d20ec663d3f066ac257d51a3
    Gerrit-Change-Number: 7567506
    Gerrit-PatchSet: 9
    Gerrit-Owner: Andrew Paseltiner <apase...@chromium.org>
    Gerrit-Reviewer: Abhijith Nair <abhiji...@chromium.org>
    Gerrit-Reviewer: Andrew Paseltiner <apase...@chromium.org>
    Gerrit-Reviewer: Dana Fried <dfr...@chromium.org>
    Gerrit-Reviewer: Nico Weber <tha...@chromium.org>
    Gerrit-CC: Chromium UI Views Reviews <chromium-ui-...@google.com>
    Gerrit-CC: Enterprise Policy Reviews <enterprise-p...@google.com>
    Gerrit-CC: gwsq
    Gerrit-Attention: Nico Weber <tha...@chromium.org>
    Gerrit-Attention: Andrew Paseltiner <apase...@chromium.org>
    Gerrit-Attention: Abhijith Nair <abhiji...@chromium.org>
    Gerrit-Comment-Date: Thu, 12 Feb 2026 16:05:58 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Dana Fried (Gerrit)

    unread,
    Feb 12, 2026, 11:06:09 AM (10 days ago) Feb 12
    to Andrew Paseltiner, Chromium UI Views Reviews, Abhijith Nair, Nico Weber, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, Enterprise Policy Reviews, fdoray...@chromium.org, jessemcke...@google.com, scheduler...@chromium.org, gab+...@chromium.org, fuzzin...@chromium.org, android-web...@chromium.org, cros-report...@google.com, roblia...@chromium.org, sky+...@chromium.org, wfh+...@chromium.org
    Attention needed from Abhijith Nair, Andrew Paseltiner and Nico Weber

    Dana Fried voted Code-Review+1

    Code-Review+1
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Abhijith Nair
    • Andrew Paseltiner
    • Nico Weber
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I8983266602f7c109d20ec663d3f066ac257d51a3
      Gerrit-Change-Number: 7567506
      Gerrit-PatchSet: 9
      Gerrit-Owner: Andrew Paseltiner <apase...@chromium.org>
      Gerrit-Reviewer: Abhijith Nair <abhiji...@chromium.org>
      Gerrit-Reviewer: Andrew Paseltiner <apase...@chromium.org>
      Gerrit-Reviewer: Dana Fried <dfr...@chromium.org>
      Gerrit-Reviewer: Nico Weber <tha...@chromium.org>
      Gerrit-CC: Chromium UI Views Reviews <chromium-ui-...@google.com>
      Gerrit-CC: Enterprise Policy Reviews <enterprise-p...@google.com>
      Gerrit-CC: gwsq
      Gerrit-Attention: Nico Weber <tha...@chromium.org>
      Gerrit-Attention: Andrew Paseltiner <apase...@chromium.org>
      Gerrit-Attention: Abhijith Nair <abhiji...@chromium.org>
      Gerrit-Comment-Date: Thu, 12 Feb 2026 16:06:01 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Andrew Paseltiner (Gerrit)

      unread,
      Feb 12, 2026, 11:24:39 AM (10 days ago) Feb 12
      to Dana Fried, Chromium UI Views Reviews, Abhijith Nair, Nico Weber, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, Enterprise Policy Reviews, fdoray...@chromium.org, jessemcke...@google.com, scheduler...@chromium.org, gab+...@chromium.org, fuzzin...@chromium.org, android-web...@chromium.org, cros-report...@google.com, roblia...@chromium.org, sky+...@chromium.org, wfh+...@chromium.org
      Attention needed from Abhijith Nair and Nico Weber

      Andrew Paseltiner added 1 comment

      Patchset-level comments
      Dana Fried . resolved

      While I am concerned about the discarding of non-discardable results in production code, I am comfortable with these changes in that they won't change any actual behavior. However, perhaps we should revisit places where `std::ignore` is now used.

      Andrew Paseltiner

      There are hundreds of preexisting uses of `std::ignore`, and there would be even more of them if more APIs took advantage of `[[nodiscard]]`. It might be worth auditing them, and perhaps even requiring some kind of comment or annotation about *why* the value is being ignored (e.g. "side-effect only", "will be destroyed on stack", etc). I do think that could be beneficial, but would be a lot of effort.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Abhijith Nair
      • Nico Weber
      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: I8983266602f7c109d20ec663d3f066ac257d51a3
        Gerrit-Change-Number: 7567506
        Gerrit-PatchSet: 9
        Gerrit-Owner: Andrew Paseltiner <apase...@chromium.org>
        Gerrit-Reviewer: Abhijith Nair <abhiji...@chromium.org>
        Gerrit-Reviewer: Andrew Paseltiner <apase...@chromium.org>
        Gerrit-Reviewer: Dana Fried <dfr...@chromium.org>
        Gerrit-Reviewer: Nico Weber <tha...@chromium.org>
        Gerrit-CC: Chromium UI Views Reviews <chromium-ui-...@google.com>
        Gerrit-CC: Enterprise Policy Reviews <enterprise-p...@google.com>
        Gerrit-CC: gwsq
        Gerrit-Attention: Nico Weber <tha...@chromium.org>
        Gerrit-Attention: Abhijith Nair <abhiji...@chromium.org>
        Gerrit-Comment-Date: Thu, 12 Feb 2026 16:24:33 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Dana Fried <dfr...@chromium.org>
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Abhijith Nair (Gerrit)

        unread,
        Feb 13, 2026, 7:11:47 AM (9 days ago) Feb 13
        to Andrew Paseltiner, Dana Fried, Chromium UI Views Reviews, Nico Weber, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, Enterprise Policy Reviews, fdoray...@chromium.org, jessemcke...@google.com, scheduler...@chromium.org, gab+...@chromium.org, fuzzin...@chromium.org, android-web...@chromium.org, cros-report...@google.com, roblia...@chromium.org, sky+...@chromium.org, wfh+...@chromium.org
        Attention needed from Andrew Paseltiner and Nico Weber

        Abhijith Nair voted Code-Review+1

        Code-Review+1
        Open in Gerrit

        Related details

        Attention is currently required from:
        • Andrew Paseltiner
        • Nico Weber
        Gerrit-Attention: Andrew Paseltiner <apase...@chromium.org>
        Gerrit-Comment-Date: Fri, 13 Feb 2026 12:11:30 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Nico Weber (Gerrit)

        unread,
        Feb 18, 2026, 11:00:21 AM (4 days ago) Feb 18
        to Andrew Paseltiner, Nico Weber, Code Review Nudger, Abhijith Nair, Dana Fried, Chromium UI Views Reviews, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, Enterprise Policy Reviews, fdoray...@chromium.org, jessemcke...@google.com, scheduler...@chromium.org, gab+...@chromium.org, fuzzin...@chromium.org, android-web...@chromium.org, cros-report...@google.com, roblia...@chromium.org, sky+...@chromium.org, wfh+...@chromium.org
        Attention needed from Andrew Paseltiner

        Nico Weber voted and added 1 comment

        Votes added by Nico Weber

        Code-Review+1

        1 comment

        Patchset-level comments
        Nico Weber . resolved

        Sorry, I thought I had lg'd this already.

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Andrew Paseltiner
        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: I8983266602f7c109d20ec663d3f066ac257d51a3
        Gerrit-Change-Number: 7567506
        Gerrit-PatchSet: 9
        Gerrit-Owner: Andrew Paseltiner <apase...@chromium.org>
        Gerrit-Reviewer: Abhijith Nair <abhiji...@chromium.org>
        Gerrit-Reviewer: Andrew Paseltiner <apase...@chromium.org>
        Gerrit-Reviewer: Dana Fried <dfr...@chromium.org>
        Gerrit-Reviewer: Nico Weber <tha...@chromium.org>
        Gerrit-CC: Chromium UI Views Reviews <chromium-ui-...@google.com>
        Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
        Gerrit-CC: Enterprise Policy Reviews <enterprise-p...@google.com>
        Gerrit-CC: gwsq
        Gerrit-Attention: Andrew Paseltiner <apase...@chromium.org>
        Gerrit-Comment-Date: Wed, 18 Feb 2026 16:00:08 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        open
        diffy

        Andrew Paseltiner (Gerrit)

        unread,
        Feb 18, 2026, 11:00:39 AM (4 days ago) Feb 18
        to Nico Weber, Code Review Nudger, Abhijith Nair, Dana Fried, Chromium UI Views Reviews, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, Enterprise Policy Reviews, fdoray...@chromium.org, jessemcke...@google.com, scheduler...@chromium.org, gab+...@chromium.org, fuzzin...@chromium.org, android-web...@chromium.org, cros-report...@google.com, roblia...@chromium.org, sky+...@chromium.org, wfh+...@chromium.org

        Andrew Paseltiner voted Commit-Queue+2

        Commit-Queue+2
        Open in Gerrit

        Related details

        Attention set is empty
        Gerrit-Comment-Date: Wed, 18 Feb 2026 16:00:30 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        open
        diffy

        Chromium LUCI CQ (Gerrit)

        unread,
        Feb 18, 2026, 12:19:24 PM (4 days ago) Feb 18
        to Andrew Paseltiner, Nico Weber, Code Review Nudger, Abhijith Nair, Dana Fried, Chromium UI Views Reviews, AyeAye, chromium...@chromium.org, Enterprise Policy Reviews, fdoray...@chromium.org, jessemcke...@google.com, scheduler...@chromium.org, gab+...@chromium.org, fuzzin...@chromium.org, android-web...@chromium.org, cros-report...@google.com, roblia...@chromium.org, sky+...@chromium.org, wfh+...@chromium.org

        Chromium LUCI CQ submitted the change

        Change information

        Commit message:
        Remove non-adaptor uses of base::IgnoreResult

        base::IgnoreResult adapts functions or callbacks; to ignore a
        [[nodiscard]] value in general code should use std::ignore.

        We mark base::IgnoreResult itself [[nodiscard]] with an appropriate
        message to help prevent future misuse.
        Change-Id: I8983266602f7c109d20ec663d3f066ac257d51a3
        Reviewed-by: Nico Weber <tha...@chromium.org>
        Commit-Queue: Andrew Paseltiner <apase...@chromium.org>
        Reviewed-by: Dana Fried <dfr...@chromium.org>
        Reviewed-by: Abhijith Nair <abhiji...@chromium.org>
        Cr-Commit-Position: refs/heads/main@{#1586479}
        Files:
        • M android_webview/js_sandbox/service/js_sandbox_message_port.cc
        • M base/functional/bind.h
        • M base/task/thread_pool/sequence_unittest.cc
        • M chrome/browser/ash/app_list/app_list_sort_browsertest.cc
        • M chrome/browser/ash/policy/reporting/user_session_activity/user_session_activity_reporter_delegate.cc
        • M chrome/browser/policy/messaging_layer/upload/encrypted_reporting_client_unittest.cc
        • M chrome/browser/policy/messaging_layer/util/reporting_server_connector.cc
        • M chrome/test/fuzzing/atspi_in_process_fuzzer.cc
        • M chrome/test/fuzzing/domato_html_in_process_fuzzer.cc
        • M chrome/test/fuzzing/html_in_process_fuzzer.cc
        • M chrome/test/fuzzing/page_load_in_process_fuzzer.cc
        • M components/os_crypt/sync/key_storage_kwallet.cc
        • M components/prefs/pref_service_unittest.cc
        • M ui/views/widget/desktop_aura/desktop_drag_drop_client_ozone.cc
        Change size: M
        Delta: 14 files changed, 43 insertions(+), 42 deletions(-)
        Branch: refs/heads/main
        Submit Requirements:
        • requirement satisfiedCode-Review: +1 by Abhijith Nair, +1 by Dana Fried, +1 by Nico Weber
        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: I8983266602f7c109d20ec663d3f066ac257d51a3
        Gerrit-Change-Number: 7567506
        Gerrit-PatchSet: 10
        Gerrit-Owner: Andrew Paseltiner <apase...@chromium.org>
        Gerrit-Reviewer: Abhijith Nair <abhiji...@chromium.org>
        Gerrit-Reviewer: Andrew Paseltiner <apase...@chromium.org>
        Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
        Gerrit-Reviewer: Dana Fried <dfr...@chromium.org>
        Gerrit-Reviewer: Nico Weber <tha...@chromium.org>
        open
        diffy
        satisfied_requirement
        Reply all
        Reply to author
        Forward
        0 new messages