Remove incorrect CHECK in SessionServiceImpl [chromium/src : main]

0 views
Skip to first unread message

Daniel Rubery (Gerrit)

unread,
Dec 17, 2025, 3:44:09 PM (3 days ago) Dec 17
to thefrog, Chromium LUCI CQ, Chromium Metrics Reviews, AyeAye, network-ser...@chromium.org, net-r...@chromium.org, asvitkine...@chromium.org, druber...@chromium.org
Attention needed from thefrog

New activity on the change

Open in Gerrit

Related details

Attention is currently required from:
  • thefrog
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: I81bf413f5cc8a4e589dcc02828f3f01d6a6a6964
Gerrit-Change-Number: 7267471
Gerrit-PatchSet: 2
Gerrit-Owner: Daniel Rubery <dru...@chromium.org>
Gerrit-Reviewer: Daniel Rubery <dru...@chromium.org>
Gerrit-Reviewer: thefrog <the...@chromium.org>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-Attention: thefrog <the...@chromium.org>
Gerrit-Comment-Date: Wed, 17 Dec 2025 20:43:59 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

thefrog (Gerrit)

unread,
Dec 17, 2025, 3:55:12 PM (3 days ago) Dec 17
to Daniel Rubery, Chromium LUCI CQ, Chromium Metrics Reviews, AyeAye, network-ser...@chromium.org, net-r...@chromium.org, asvitkine...@chromium.org, druber...@chromium.org
Attention needed from Daniel Rubery

thefrog voted and added 3 comments

Votes added by thefrog

Code-Review+1

3 comments

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

LGTM, thanks for fixing this!

File net/device_bound_sessions/session_error.cc
Line 31, Patchset 2 (Latest): case kSessionDeletedDuringRefresh:
thefrog . unresolved

I don't see an issue with this being here, but for my understanding -- we don't actually expect `kSessionDeletedDuringRefresh` in a call to `GetDeletionReason()` right? Or for `IsServerError()` either.

File net/device_bound_sessions/session_service_impl.cc
Line 1064, Patchset 2 (Latest): if (!existing_session) {
thefrog . unresolved

Not required in this case, but please consider adding a test.

Open in Gerrit

Related details

Attention is currently required from:
  • Daniel Rubery
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: I81bf413f5cc8a4e589dcc02828f3f01d6a6a6964
    Gerrit-Change-Number: 7267471
    Gerrit-PatchSet: 2
    Gerrit-Owner: Daniel Rubery <dru...@chromium.org>
    Gerrit-Reviewer: Daniel Rubery <dru...@chromium.org>
    Gerrit-Reviewer: thefrog <the...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Daniel Rubery <dru...@chromium.org>
    Gerrit-Comment-Date: Wed, 17 Dec 2025 20:55:03 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Daniel Rubery (Gerrit)

    unread,
    Dec 18, 2025, 3:00:33 PM (2 days ago) Dec 18
    to thefrog, Chromium LUCI CQ, Chromium Metrics Reviews, AyeAye, network-ser...@chromium.org, net-r...@chromium.org, asvitkine...@chromium.org, druber...@chromium.org
    Attention needed from thefrog

    Daniel Rubery voted and added 2 comments

    Votes added by Daniel Rubery

    Auto-Submit+1

    2 comments

    File net/device_bound_sessions/session_error.cc
    Line 31, Patchset 2: case kSessionDeletedDuringRefresh:
    thefrog . resolved

    I don't see an issue with this being here, but for my understanding -- we don't actually expect `kSessionDeletedDuringRefresh` in a call to `GetDeletionReason()` right? Or for `IsServerError()` either.

    Daniel Rubery

    No, we don't. And I could put it in a the `NOTREACHED` block as a result, but I thought it was conceptually a fatal error in the refresh process.

    File net/device_bound_sessions/session_service_impl.cc
    Line 1064, Patchset 2: if (!existing_session) {
    thefrog . resolved

    Not required in this case, but please consider adding a test.

    Daniel Rubery

    Ah yeah I thought the tests would be hard but they're really not. Done.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • thefrog
    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: I81bf413f5cc8a4e589dcc02828f3f01d6a6a6964
      Gerrit-Change-Number: 7267471
      Gerrit-PatchSet: 3
      Gerrit-Owner: Daniel Rubery <dru...@chromium.org>
      Gerrit-Reviewer: Daniel Rubery <dru...@chromium.org>
      Gerrit-Reviewer: thefrog <the...@chromium.org>
      Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
      Gerrit-Attention: thefrog <the...@chromium.org>
      Gerrit-Comment-Date: Thu, 18 Dec 2025 20:00:24 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Comment-In-Reply-To: thefrog <the...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      thefrog (Gerrit)

      unread,
      Dec 18, 2025, 3:32:49 PM (2 days ago) Dec 18
      to Daniel Rubery, Chromium LUCI CQ, Chromium Metrics Reviews, AyeAye, network-ser...@chromium.org, net-r...@chromium.org, asvitkine...@chromium.org, druber...@chromium.org
      Attention needed from Daniel Rubery

      thefrog voted

      Code-Review+1
      Commit-Queue+2
      Open in Gerrit

      Related details

      Attention is currently required from:
      • Daniel Rubery
      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: I81bf413f5cc8a4e589dcc02828f3f01d6a6a6964
        Gerrit-Change-Number: 7267471
        Gerrit-PatchSet: 3
        Gerrit-Owner: Daniel Rubery <dru...@chromium.org>
        Gerrit-Reviewer: Daniel Rubery <dru...@chromium.org>
        Gerrit-Reviewer: thefrog <the...@chromium.org>
        Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
        Gerrit-Attention: Daniel Rubery <dru...@chromium.org>
        Gerrit-Comment-Date: Thu, 18 Dec 2025 20:32:40 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        gwsq (Gerrit)

        unread,
        Dec 19, 2025, 4:06:44 PM (2 days ago) Dec 19
        to Daniel Rubery, Chromium IPC Reviews, Fred Shih, thefrog, Chromium LUCI CQ, Chromium Metrics Reviews, AyeAye, network-ser...@chromium.org, net-r...@chromium.org, asvitkine...@chromium.org, druber...@chromium.org
        Attention needed from Fred Shih

        Message from gwsq

        From googleclient/chrome/chromium_gwsq/ipc/config.gwsq:
        IPC: ff...@chromium.org

        📎 It looks like you’re making a possibly security-sensitive change! 📎 IPC security review isn’t a rubberstamp, so your friendly security reviewer will need a fair amount of context to review your CL effectively. Please review your CL description and code comments to make sure they provide context for someone unfamiliar with your project/area. Pay special attention to where data comes from and which processes it flows between (and their privilege levels). Feel free to point your security reviewer at design docs, bugs, or other links if you can’t reasonably make a self-contained CL description. (Also see https://cbea.ms/git-commit/).

        IPC reviewer(s): ff...@chromium.org


        Reviewer source(s):
        ff...@chromium.org is from context(googleclient/chrome/chromium_gwsq/ipc/config.gwsq)

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Fred Shih
        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: I81bf413f5cc8a4e589dcc02828f3f01d6a6a6964
        Gerrit-Change-Number: 7267471
        Gerrit-PatchSet: 3
        Gerrit-Owner: Daniel Rubery <dru...@chromium.org>
        Gerrit-Reviewer: Daniel Rubery <dru...@chromium.org>
        Gerrit-Reviewer: Fred Shih <ff...@chromium.org>
        Gerrit-Reviewer: thefrog <the...@chromium.org>
        Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
        Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
        Gerrit-CC: gwsq
        Gerrit-Attention: Fred Shih <ff...@chromium.org>
        Gerrit-Comment-Date: Fri, 19 Dec 2025 21:06:32 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: No
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Fred Shih (Gerrit)

        unread,
        Dec 19, 2025, 4:07:33 PM (2 days ago) Dec 19
        to Daniel Rubery, Chromium IPC Reviews, thefrog, Chromium LUCI CQ, Chromium Metrics Reviews, AyeAye, network-ser...@chromium.org, net-r...@chromium.org, asvitkine...@chromium.org, druber...@chromium.org
        Attention needed from Daniel Rubery

        Fred Shih voted and added 1 comment

        Votes added by Fred Shih

        Code-Review+1

        1 comment

        Patchset-level comments
        File-level comment, Patchset 3 (Latest):
        Fred Shih . resolved

        mojo lgtm

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Daniel Rubery
        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: I81bf413f5cc8a4e589dcc02828f3f01d6a6a6964
        Gerrit-Change-Number: 7267471
        Gerrit-PatchSet: 3
        Gerrit-Owner: Daniel Rubery <dru...@chromium.org>
        Gerrit-Reviewer: Daniel Rubery <dru...@chromium.org>
        Gerrit-Reviewer: Fred Shih <ff...@chromium.org>
        Gerrit-Reviewer: thefrog <the...@chromium.org>
        Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
        Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
        Gerrit-CC: gwsq
        Gerrit-Attention: Daniel Rubery <dru...@chromium.org>
        Gerrit-Comment-Date: Fri, 19 Dec 2025 21:07:18 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        open
        diffy

        Daniel Rubery (Gerrit)

        unread,
        Dec 19, 2025, 4:35:41 PM (2 days ago) Dec 19
        to Fred Shih, Chromium IPC Reviews, thefrog, Chromium LUCI CQ, Chromium Metrics Reviews, AyeAye, network-ser...@chromium.org, net-r...@chromium.org, asvitkine...@chromium.org, druber...@chromium.org

        Daniel Rubery 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: I81bf413f5cc8a4e589dcc02828f3f01d6a6a6964
        Gerrit-Change-Number: 7267471
        Gerrit-PatchSet: 3
        Gerrit-Owner: Daniel Rubery <dru...@chromium.org>
        Gerrit-Reviewer: Daniel Rubery <dru...@chromium.org>
        Gerrit-Reviewer: Fred Shih <ff...@chromium.org>
        Gerrit-Reviewer: thefrog <the...@chromium.org>
        Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
        Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
        Gerrit-CC: gwsq
        Gerrit-Comment-Date: Fri, 19 Dec 2025 21:35:29 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        open
        diffy

        Chromium LUCI CQ (Gerrit)

        unread,
        Dec 19, 2025, 5:29:38 PM (2 days ago) Dec 19
        to Daniel Rubery, Fred Shih, Chromium IPC Reviews, thefrog, Chromium Metrics Reviews, AyeAye, network-ser...@chromium.org, net-r...@chromium.org, asvitkine...@chromium.org, druber...@chromium.org

        Chromium LUCI CQ submitted the change

        Change information

        Commit message:
        Remove incorrect CHECK in SessionServiceImpl

        We were too confident here. It is possible for a refresh to start, then
        for the user (or site) to clear data. Then when the refresh finishes,
        the existing session is gone. This CL bails out safely and logs that to metrics.
        Fixed: 462642962
        Change-Id: I81bf413f5cc8a4e589dcc02828f3f01d6a6a6964
        Reviewed-by: Fred Shih <ff...@chromium.org>
        Commit-Queue: Daniel Rubery <dru...@chromium.org>
        Auto-Submit: Daniel Rubery <dru...@chromium.org>
        Reviewed-by: thefrog <the...@chromium.org>
        Cr-Commit-Position: refs/heads/main@{#1561374}
        Files:
        • M net/device_bound_sessions/session.cc
        • M net/device_bound_sessions/session_error.cc
        • M net/device_bound_sessions/session_error.h
        • M net/device_bound_sessions/session_service_impl.cc
        • M net/device_bound_sessions/session_service_impl_unittest.cc
        • M services/network/public/cpp/device_bound_sessions_mojom_traits.h
        • M services/network/public/mojom/device_bound_sessions.mojom
        • M tools/metrics/histograms/enums.xml
        Change size: M
        Delta: 8 files changed, 124 insertions(+), 4 deletions(-)
        Branch: refs/heads/main
        Submit Requirements:
        • requirement satisfiedCode-Review: +1 by Fred Shih, +1 by thefrog
        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: I81bf413f5cc8a4e589dcc02828f3f01d6a6a6964
        Gerrit-Change-Number: 7267471
        Gerrit-PatchSet: 4
        Gerrit-Owner: Daniel Rubery <dru...@chromium.org>
        Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
        Gerrit-Reviewer: Daniel Rubery <dru...@chromium.org>
        Gerrit-Reviewer: Fred Shih <ff...@chromium.org>
        Gerrit-Reviewer: thefrog <the...@chromium.org>
        Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
        open
        diffy
        satisfied_requirement
        Reply all
        Reply to author
        Forward
        0 new messages