DomStorage: Add OnDiskExperimental suffix to Recovery UMAs [chromium/src : main]

0 views
Skip to first unread message

Steve Becker (Gerrit)

unread,
Jul 6, 2026, 4:43:33 PM (13 days ago) Jul 6
to Rahul Singh, Xiaohan Zhao, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, dmurph+watching...@chromium.org, dmurph+watch...@chromium.org, edgesto...@microsoft.com, storage...@chromium.org
Attention needed from Rahul Singh and Xiaohan Zhao

Steve Becker voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • Rahul Singh
  • Xiaohan Zhao
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement 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: I19573747be1817b27cacdc64ea1d64aa1badbbf1
Gerrit-Change-Number: 8006157
Gerrit-PatchSet: 1
Gerrit-Owner: Rahul Singh <rah...@microsoft.com>
Gerrit-Reviewer: Rahul Singh <rah...@microsoft.com>
Gerrit-Reviewer: Steve Becker <ste...@microsoft.com>
Gerrit-Reviewer: Xiaohan Zhao <xiaoh...@microsoft.com>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-Attention: Rahul Singh <rah...@microsoft.com>
Gerrit-Attention: Xiaohan Zhao <xiaoh...@microsoft.com>
Gerrit-Comment-Date: Mon, 06 Jul 2026 20:43:16 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Rahul Singh (Gerrit)

unread,
Jul 8, 2026, 1:13:26 AM (11 days ago) Jul 8
to Mingyu Lei, Steve Becker, Xiaohan Zhao, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, dmurph+watching...@chromium.org, dmurph+watch...@chromium.org, edgesto...@microsoft.com, storage...@chromium.org
Attention needed from Mingyu Lei, Steve Becker and Xiaohan Zhao

Rahul Singh added 1 comment

Patchset-level comments
File-level comment, Patchset 3 (Latest):
Rahul Singh . resolved

Adding leimy@ for an OWNERS review of updates to storage/histograms.xml.

@ste...@microsoft.com could you PTAL as the rebase required some fixups that removed your earlier vote.

Thanks both!

Open in Gerrit

Related details

Attention is currently required from:
  • Mingyu Lei
  • Steve Becker
  • Xiaohan 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: I19573747be1817b27cacdc64ea1d64aa1badbbf1
    Gerrit-Change-Number: 8006157
    Gerrit-PatchSet: 3
    Gerrit-Owner: Rahul Singh <rah...@microsoft.com>
    Gerrit-Reviewer: Mingyu Lei <le...@chromium.org>
    Gerrit-Reviewer: Rahul Singh <rah...@microsoft.com>
    Gerrit-Reviewer: Steve Becker <ste...@microsoft.com>
    Gerrit-Reviewer: Xiaohan Zhao <xiaoh...@microsoft.com>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Xiaohan Zhao <xiaoh...@microsoft.com>
    Gerrit-Attention: Steve Becker <ste...@microsoft.com>
    Gerrit-Attention: Mingyu Lei <le...@chromium.org>
    Gerrit-Comment-Date: Wed, 08 Jul 2026 05:13:11 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Mingyu Lei (Gerrit)

    unread,
    Jul 9, 2026, 11:15:42 PM (9 days ago) Jul 9
    to Rahul Singh, Steve Becker, Xiaohan Zhao, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, dmurph+watching...@chromium.org, dmurph+watch...@chromium.org, edgesto...@microsoft.com, storage...@chromium.org
    Attention needed from Rahul Singh, Steve Becker and Xiaohan Zhao

    Mingyu Lei added 1 comment

    File tools/metrics/histograms/metadata/storage/histograms.xml
    Line 2981, Patchset 5 (Latest): data was silently lost without retry. The {DomStorageSqliteRolloutStage}
    Mingyu Lei . unresolved

    This will be replaced by the actual description of the `DomStorageSqliteRolloutStage` right? so for the empty case, this sentence becomes `The suffix distinguishes the data...`, which might be strange.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Rahul Singh
    • Steve Becker
    • Xiaohan 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: I19573747be1817b27cacdc64ea1d64aa1badbbf1
      Gerrit-Change-Number: 8006157
      Gerrit-PatchSet: 5
      Gerrit-Owner: Rahul Singh <rah...@microsoft.com>
      Gerrit-Reviewer: Mingyu Lei <le...@chromium.org>
      Gerrit-Reviewer: Rahul Singh <rah...@microsoft.com>
      Gerrit-Reviewer: Steve Becker <ste...@microsoft.com>
      Gerrit-Reviewer: Xiaohan Zhao <xiaoh...@microsoft.com>
      Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
      Gerrit-Attention: Rahul Singh <rah...@microsoft.com>
      Gerrit-Attention: Xiaohan Zhao <xiaoh...@microsoft.com>
      Gerrit-Attention: Steve Becker <ste...@microsoft.com>
      Gerrit-Comment-Date: Fri, 10 Jul 2026 03:15:07 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Rahul Singh (Gerrit)

      unread,
      Jul 10, 2026, 7:43:33 PM (8 days ago) Jul 10
      to Mingyu Lei, Steve Becker, Xiaohan Zhao, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, dmurph+watching...@chromium.org, dmurph+watch...@chromium.org, edgesto...@microsoft.com, storage...@chromium.org
      Attention needed from Mingyu Lei and Steve Becker

      Rahul Singh voted and added 1 comment

      Votes added by Rahul Singh

      Commit-Queue+1

      1 comment

      File tools/metrics/histograms/metadata/storage/histograms.xml
      Line 2981, Patchset 5: data was silently lost without retry. The {DomStorageSqliteRolloutStage}
      Mingyu Lei . resolved

      This will be replaced by the actual description of the `DomStorageSqliteRolloutStage` right? so for the empty case, this sentence becomes `The suffix distinguishes the data...`, which might be strange.

      Rahul Singh

      Good catch. Fixed by breaking out the `.OnDiskExperimental` specifically to talk about its significance.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Mingyu Lei
      • Steve Becker
      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: I19573747be1817b27cacdc64ea1d64aa1badbbf1
        Gerrit-Change-Number: 8006157
        Gerrit-PatchSet: 6
        Gerrit-Owner: Rahul Singh <rah...@microsoft.com>
        Gerrit-Reviewer: Mingyu Lei <le...@chromium.org>
        Gerrit-Reviewer: Rahul Singh <rah...@microsoft.com>
        Gerrit-Reviewer: Steve Becker <ste...@microsoft.com>
        Gerrit-Reviewer: Xiaohan Zhao <xiaoh...@microsoft.com>
        Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
        Gerrit-Attention: Steve Becker <ste...@microsoft.com>
        Gerrit-Attention: Mingyu Lei <le...@chromium.org>
        Gerrit-Comment-Date: Fri, 10 Jul 2026 23:43:19 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        Comment-In-Reply-To: Mingyu Lei <le...@chromium.org>
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Mingyu Lei (Gerrit)

        unread,
        Jul 13, 2026, 11:41:26 PM (5 days ago) Jul 13
        to Rahul Singh, Steve Becker, Xiaohan Zhao, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, dmurph+watching...@chromium.org, dmurph+watch...@chromium.org, edgesto...@microsoft.com, storage...@chromium.org
        Attention needed from Rahul Singh and Steve Becker

        Mingyu Lei added 1 comment

        File components/services/storage/dom_storage/local_storage_impl.cc
        Line 674, Patchset 6 (Latest): const DatabaseMetricsType metrics_type = database_->metrics_type();
        Mingyu Lei . unresolved

        What if the database_ is null here? The comments below says "ignore additional errors from the old database while waiting for the new database to open." so it's possible that the database is not re-opened yet at this moment right?

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Rahul Singh
        • Steve Becker
        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: I19573747be1817b27cacdc64ea1d64aa1badbbf1
          Gerrit-Change-Number: 8006157
          Gerrit-PatchSet: 6
          Gerrit-Owner: Rahul Singh <rah...@microsoft.com>
          Gerrit-Reviewer: Mingyu Lei <le...@chromium.org>
          Gerrit-Reviewer: Rahul Singh <rah...@microsoft.com>
          Gerrit-Reviewer: Steve Becker <ste...@microsoft.com>
          Gerrit-Reviewer: Xiaohan Zhao <xiaoh...@microsoft.com>
          Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
          Gerrit-Attention: Rahul Singh <rah...@microsoft.com>
          Gerrit-Attention: Steve Becker <ste...@microsoft.com>
          Gerrit-Comment-Date: Tue, 14 Jul 2026 03:40:52 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Rahul Singh (Gerrit)

          unread,
          Jul 16, 2026, 5:56:31 PM (3 days ago) Jul 16
          to Mingyu Lei, Steve Becker, Xiaohan Zhao, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, dmurph+watching...@chromium.org, dmurph+watch...@chromium.org, edgesto...@microsoft.com, storage...@chromium.org
          Attention needed from Mingyu Lei and Steve Becker

          Rahul Singh voted and added 1 comment

          Votes added by Rahul Singh

          Commit-Queue+1

          1 comment

          File components/services/storage/dom_storage/local_storage_impl.cc
          Line 674, Patchset 6: const DatabaseMetricsType metrics_type = database_->metrics_type();
          Mingyu Lei . resolved

          What if the database_ is null here? The comments below says "ignore additional errors from the old database while waiting for the new database to open." so it's possible that the database is not re-opened yet at this moment right?

          Rahul Singh

          Good catch! `database_` can't actually be null here. OnCommitResult only runs via StorageAreaImpl::OnCommitComplete. That method is invoked using a WeakPtr to the StorageAreaImpl.

          Recovery clears all areas `areas_.clear()` before resetting `database_`. So, any in-flight completion from the old database is dropped and never reaches this method.

          Additionally, new areas can't be created mid-recovery either. GetOrCreateStorageArea does `CHECK_EQ(connection_state_, CONNECTION_FINISHED);`. So this method only runs when `connection_state_ == CONNECTION_FINISHED`. In that scenario, we also have a valid `database_`.

          I've added a `CHECK(database_);` at the top to make this explicit.

          Finally, the "connection_state_ !=
          CONNECTION_FINISHED" early-exit below (and its comment) is now effectively
          dead code. To keep this CL focused, in a follow up CL, I'll clean that up and add a
          `CHECK_EQ(connection_state_, CONNECTION_FINISHED)` instead.

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Mingyu Lei
          • Steve Becker
          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: I19573747be1817b27cacdc64ea1d64aa1badbbf1
            Gerrit-Change-Number: 8006157
            Gerrit-PatchSet: 8
            Gerrit-Owner: Rahul Singh <rah...@microsoft.com>
            Gerrit-Reviewer: Mingyu Lei <le...@chromium.org>
            Gerrit-Reviewer: Rahul Singh <rah...@microsoft.com>
            Gerrit-Reviewer: Steve Becker <ste...@microsoft.com>
            Gerrit-Reviewer: Xiaohan Zhao <xiaoh...@microsoft.com>
            Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
            Gerrit-Attention: Steve Becker <ste...@microsoft.com>
            Gerrit-Attention: Mingyu Lei <le...@chromium.org>
            Gerrit-Comment-Date: Thu, 16 Jul 2026 21:56:19 +0000
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Rahul Singh (Gerrit)

            unread,
            Jul 16, 2026, 7:29:58 PM (3 days ago) Jul 16
            to Mingyu Lei, Steve Becker, Xiaohan Zhao, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, dmurph+watching...@chromium.org, dmurph+watch...@chromium.org, edgesto...@microsoft.com, storage...@chromium.org
            Attention needed from Mingyu Lei and Steve Becker

            Rahul Singh voted and added 1 comment

            Votes added by Rahul Singh

            Commit-Queue+1

            1 comment

            File components/services/storage/dom_storage/local_storage_impl.cc
            Line 674, Patchset 6: const DatabaseMetricsType metrics_type = database_->metrics_type();
            Mingyu Lei . resolved

            What if the database_ is null here? The comments below says "ignore additional errors from the old database while waiting for the new database to open." so it's possible that the database is not re-opened yet at this moment right?

            Rahul Singh

            Good catch! `database_` can't actually be null here. OnCommitResult only runs via StorageAreaImpl::OnCommitComplete. That method is invoked using a WeakPtr to the StorageAreaImpl.

            Recovery clears all areas `areas_.clear()` before resetting `database_`. So, any in-flight completion from the old database is dropped and never reaches this method.

            Additionally, new areas can't be created mid-recovery either. GetOrCreateStorageArea does `CHECK_EQ(connection_state_, CONNECTION_FINISHED);`. So this method only runs when `connection_state_ == CONNECTION_FINISHED`. In that scenario, we also have a valid `database_`.

            I've added a `CHECK(database_);` at the top to make this explicit.

            Finally, the "connection_state_ !=
            CONNECTION_FINISHED" early-exit below (and its comment) is now effectively
            dead code. To keep this CL focused, in a follow up CL, I'll clean that up and add a
            `CHECK_EQ(connection_state_, CONNECTION_FINISHED)` instead.

            Rahul Singh

            I missed analyzing SessionStorage::OnCommitResult before posting my previous comment. That one is different. Some operations in that class (ShallowClone, DeleteSessions, DeleteStorageKeys) pass OnCommitResult as a completion callback bound to the SessionStorageImpl itself.

            So they can run after recovery resets `database_`. So in that case, I kept a runtime guard `if (connection_state_ != FINISHED || !database_)` instead of CHECKing.

            And now that we are pulling up the `if (connection_state_ != FINISHED)` in SessionStorage, I went ahead and also did the clean up on the LocalStorage side in this change itself. Thanks again for catching this!

            Open in Gerrit

            Related details

            Attention is currently required from:
            • Mingyu Lei
            • Steve Becker
            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: I19573747be1817b27cacdc64ea1d64aa1badbbf1
            Gerrit-Change-Number: 8006157
            Gerrit-PatchSet: 9
            Gerrit-Owner: Rahul Singh <rah...@microsoft.com>
            Gerrit-Reviewer: Mingyu Lei <le...@chromium.org>
            Gerrit-Reviewer: Rahul Singh <rah...@microsoft.com>
            Gerrit-Reviewer: Steve Becker <ste...@microsoft.com>
            Gerrit-Reviewer: Xiaohan Zhao <xiaoh...@microsoft.com>
            Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
            Gerrit-Attention: Steve Becker <ste...@microsoft.com>
            Gerrit-Attention: Mingyu Lei <le...@chromium.org>
            Gerrit-Comment-Date: Thu, 16 Jul 2026 23:29:42 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: Yes
            Comment-In-Reply-To: Rahul Singh <rah...@microsoft.com>
            Comment-In-Reply-To: Mingyu Lei <le...@chromium.org>
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Steve Becker (Gerrit)

            unread,
            Jul 17, 2026, 8:11:58 PM (2 days ago) Jul 17
            to Rahul Singh, Mingyu Lei, Xiaohan Zhao, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, dmurph+watching...@chromium.org, dmurph+watch...@chromium.org, edgesto...@microsoft.com, storage...@chromium.org
            Attention needed from Mingyu Lei and Rahul Singh

            Steve Becker voted and added 1 comment

            Votes added by Steve Becker

            Code-Review+1

            1 comment

            File components/services/storage/dom_storage/session_storage_impl.cc
            Line 494, Patchset 9 (Latest): // Some operations in this class pass this method as a completion callback,
            // which can run after `database_` has been reset by recovery. Ignore those
            // stale results.
            Steve Becker . unresolved

            nit: what's wrong with the old comment?

            ```
            // Previous commit errors deleted and recreated the database below. Ignore
            // additional errors from the old database while waiting for the new
            // database to open.
            ```

            The new condition `!database_` would be applicable after recovery completely failed and `SessionStorageImpl` decided to run without a database in the `database_` nullptr state. `DeleteAndRecreateDatabase()` resets `database_` but then immediately recreates it. Maybe we can append something to the old comment that explains the new condition?

            Open in Gerrit

            Related details

            Attention is currently required from:
            • Mingyu Lei
            • Rahul Singh
            Submit Requirements:
              • requirement satisfiedCode-Coverage
              • requirement is not satisfiedCode-Owners
              • requirement 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: I19573747be1817b27cacdc64ea1d64aa1badbbf1
              Gerrit-Change-Number: 8006157
              Gerrit-PatchSet: 9
              Gerrit-Owner: Rahul Singh <rah...@microsoft.com>
              Gerrit-Reviewer: Mingyu Lei <le...@chromium.org>
              Gerrit-Reviewer: Rahul Singh <rah...@microsoft.com>
              Gerrit-Reviewer: Steve Becker <ste...@microsoft.com>
              Gerrit-Reviewer: Xiaohan Zhao <xiaoh...@microsoft.com>
              Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
              Gerrit-Attention: Rahul Singh <rah...@microsoft.com>
              Gerrit-Attention: Mingyu Lei <le...@chromium.org>
              Gerrit-Comment-Date: Sat, 18 Jul 2026 00:11:38 +0000
              Gerrit-HasComments: Yes
              Gerrit-Has-Labels: Yes
              satisfied_requirement
              unsatisfied_requirement
              open
              diffy

              Rahul Singh (Gerrit)

              unread,
              Jul 18, 2026, 10:16:08 PM (9 hours ago) Jul 18
              to Steve Becker, Mingyu Lei, Xiaohan Zhao, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, dmurph+watching...@chromium.org, dmurph+watch...@chromium.org, edgesto...@microsoft.com, storage...@chromium.org
              Attention needed from Mingyu Lei

              Rahul Singh voted and added 1 comment

              Votes added by Rahul Singh

              Auto-Submit+1
              Commit-Queue+1

              1 comment

              File components/services/storage/dom_storage/session_storage_impl.cc
              Line 494, Patchset 9: // Some operations in this class pass this method as a completion callback,

              // which can run after `database_` has been reset by recovery. Ignore those
              // stale results.
              Steve Becker . resolved

              nit: what's wrong with the old comment?

              ```
              // Previous commit errors deleted and recreated the database below. Ignore
              // additional errors from the old database while waiting for the new
              // database to open.
              ```

              The new condition `!database_` would be applicable after recovery completely failed and `SessionStorageImpl` decided to run without a database in the `database_` nullptr state. `DeleteAndRecreateDatabase()` resets `database_` but then immediately recreates it. Maybe we can append something to the old comment that explains the new condition?

              Rahul Singh

              Good call. Updated!

              Open in Gerrit

              Related details

              Attention is currently required from:
              • Mingyu Lei
              Submit Requirements:
                • requirement satisfiedCode-Coverage
                • requirement is not satisfiedCode-Owners
                • requirement 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: I19573747be1817b27cacdc64ea1d64aa1badbbf1
                Gerrit-Change-Number: 8006157
                Gerrit-PatchSet: 10
                Gerrit-Owner: Rahul Singh <rah...@microsoft.com>
                Gerrit-Reviewer: Mingyu Lei <le...@chromium.org>
                Gerrit-Reviewer: Rahul Singh <rah...@microsoft.com>
                Gerrit-Reviewer: Steve Becker <ste...@microsoft.com>
                Gerrit-Reviewer: Xiaohan Zhao <xiaoh...@microsoft.com>
                Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
                Gerrit-Attention: Mingyu Lei <le...@chromium.org>
                Gerrit-Comment-Date: Sun, 19 Jul 2026 02:15:53 +0000
                Gerrit-HasComments: Yes
                Gerrit-Has-Labels: Yes
                Comment-In-Reply-To: Steve Becker <ste...@microsoft.com>
                satisfied_requirement
                unsatisfied_requirement
                open
                diffy
                Reply all
                Reply to author
                Forward
                0 new messages