Introduce PreloadActivationReportManager [chromium/src : main]

0 views
Skip to first unread message

Jiacheng Guo (Gerrit)

unread,
May 13, 2026, 4:40:00 AM (7 days ago) May 13
to chromium...@chromium.org, prerendering-reviews, crmulli...@chromium.org, feature-me...@chromium.org, jorgel...@chromium.org, nicolas...@chromium.org, ramyagopa...@google.com, alexmo...@chromium.org, blink-...@chromium.org, creis...@chromium.org, gavin...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, navigation...@chromium.org, network-ser...@chromium.org, tburkar...@chromium.org

Jiacheng Guo added 4 comments

File content/browser/preloading/preload_activation_report_manager.h
Line 14, Patchset 1:// Manages sending activation beacons for prefetched or prerendered resources
Jiacheng Guo . resolved

The prefetch activation beacon are only sent for pages rather than all resources, update the comment to reflect this.

Jiacheng Guo

Done

File content/browser/preloading/preload_activation_report_manager.cc
Line 32, Patchset 1: // TODO(crbug.com/40227626): Add appropriate traffic annotation.
Jiacheng Guo . resolved

Use `MISSING_TRAFFIC_ANNOTATION` for the time being. We will add the traffic annotation separately.

Jiacheng Guo

Done

Line 55, Patchset 1: GetWebContents().GetPrimaryMainFrame()->GetStoragePartition();
Jiacheng Guo . resolved

It is dangerous to call `GetWebContents()` here since the active WebContents might be different from the NavigationRequest trigerring the method. Instead we should pass in the WebContents bound to the prefetch/prerender.

Jiacheng Guo

Done

Line 57, Patchset 1: auto* loader_ptr = loader.get();
Jiacheng Guo . resolved

Does this even work? `loader` will be destructed when the function returns and loader_ptr will be dangling. Maybe we should refer to the pattern in `chrome/browser/profile_resetter/reset_report_uploader.cc`

Jiacheng Guo

Done

Open in Gerrit

Related details

Attention set is empty
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: I0aff0f1ce57f6821332c3c77a82a80f5597a4c9a
Gerrit-Change-Number: 7838803
Gerrit-PatchSet: 2
Gerrit-Owner: Jiacheng Guo <g...@google.com>
Gerrit-CC: prerendering-reviews <prerenderi...@chromium.org>
Gerrit-Comment-Date: Wed, 13 May 2026 08:39:33 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Jiacheng Guo <g...@google.com>
satisfied_requirement
unsatisfied_requirement
open
diffy

Nicolas Ouellet-Payeur (Gerrit)

unread,
May 14, 2026, 3:06:21 PM (6 days ago) May 14
to Jiacheng Guo, Hiroki Nakagawa, Chromium LUCI CQ, chromium...@chromium.org, prerendering-reviews, crmulli...@chromium.org, feature-me...@chromium.org, jorgel...@chromium.org, nicolas...@chromium.org, ramyagopa...@google.com, alexmo...@chromium.org, blink-...@chromium.org, creis...@chromium.org, gavin...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, navigation...@chromium.org, network-ser...@chromium.org, tburkar...@chromium.org
Attention needed from Hiroki Nakagawa and Jiacheng Guo

Nicolas Ouellet-Payeur voted and added 1 comment

Votes added by Nicolas Ouellet-Payeur

Code-Review+1

1 comment

File content/browser/preloading/preload_activation_report_manager.cc
Line 57, Patchset 5 (Latest): cookies_allowed: NO
Nicolas Ouellet-Payeur . unresolved

it uses GetPrimaryMainFrame()->GetStoragePartition(), so it sounds like yes?

Open in Gerrit

Related details

Attention is currently required from:
  • Hiroki Nakagawa
  • Jiacheng Guo
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: I0aff0f1ce57f6821332c3c77a82a80f5597a4c9a
    Gerrit-Change-Number: 7838803
    Gerrit-PatchSet: 5
    Gerrit-Owner: Jiacheng Guo <g...@google.com>
    Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
    Gerrit-Reviewer: Jiacheng Guo <g...@google.com>
    Gerrit-Reviewer: Nicolas Ouellet-Payeur <nico...@chromium.org>
    Gerrit-CC: prerendering-reviews <prerenderi...@chromium.org>
    Gerrit-Attention: Jiacheng Guo <g...@google.com>
    Gerrit-Attention: Hiroki Nakagawa <nhi...@chromium.org>
    Gerrit-Comment-Date: Thu, 14 May 2026 19:06:12 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Jiacheng Guo (Gerrit)

    unread,
    May 15, 2026, 1:07:51 AM (5 days ago) May 15
    to Nicolas Ouellet-Payeur, Hiroki Nakagawa, Chromium LUCI CQ, chromium...@chromium.org, prerendering-reviews, crmulli...@chromium.org, feature-me...@chromium.org, jorgel...@chromium.org, nicolas...@chromium.org, ramyagopa...@google.com, alexmo...@chromium.org, blink-...@chromium.org, creis...@chromium.org, gavin...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, navigation...@chromium.org, network-ser...@chromium.org, tburkar...@chromium.org
    Attention needed from Hiroki Nakagawa and Nicolas Ouellet-Payeur

    Jiacheng Guo added 1 comment

    File content/browser/preloading/preload_activation_report_manager.cc
    Line 57, Patchset 5 (Latest): cookies_allowed: NO
    Nicolas Ouellet-Payeur . unresolved

    it uses GetPrimaryMainFrame()->GetStoragePartition(), so it sounds like yes?

    Jiacheng Guo

    We are always using credential mode `request->credentials_mode = network::mojom::CredentialsMode::kOmit` so cookies are not sent. `GetPrimaryMainFrame()->GetStoragePartition()` is accessed to share the URL loader when sending requests from the browser process as instructed in the [comments](https://source.chromium.org/chromium/chromium/src/+/main:content/public/browser/storage_partition.h;l=117;drc=ce3629f6f1cdbdb670dbf759e6b7c89c4a92a8fb).

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Hiroki Nakagawa
    • Nicolas Ouellet-Payeur
    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: I0aff0f1ce57f6821332c3c77a82a80f5597a4c9a
    Gerrit-Change-Number: 7838803
    Gerrit-PatchSet: 5
    Gerrit-Owner: Jiacheng Guo <g...@google.com>
    Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
    Gerrit-Reviewer: Jiacheng Guo <g...@google.com>
    Gerrit-Reviewer: Nicolas Ouellet-Payeur <nico...@chromium.org>
    Gerrit-CC: prerendering-reviews <prerenderi...@chromium.org>
    Gerrit-Attention: Nicolas Ouellet-Payeur <nico...@chromium.org>
    Gerrit-Attention: Hiroki Nakagawa <nhi...@chromium.org>
    Gerrit-Comment-Date: Fri, 15 May 2026 05:07:20 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Nicolas Ouellet-Payeur <nico...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Hiroki Nakagawa (Gerrit)

    unread,
    May 15, 2026, 2:56:15 AM (5 days ago) May 15
    to Jiacheng Guo, Nicolas Ouellet-Payeur, Chromium LUCI CQ, chromium...@chromium.org, prerendering-reviews, crmulli...@chromium.org, feature-me...@chromium.org, jorgel...@chromium.org, nicolas...@chromium.org, ramyagopa...@google.com, alexmo...@chromium.org, blink-...@chromium.org, creis...@chromium.org, gavin...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, navigation...@chromium.org, network-ser...@chromium.org, tburkar...@chromium.org
    Attention needed from Jiacheng Guo and Nicolas Ouellet-Payeur

    Hiroki Nakagawa added 1 comment

    File content/browser/preloading/preload_activation_report_manager.h
    Line 29, Patchset 7 (Latest): : public WebContentsUserData<PreloadActivationReportManager> {
    Hiroki Nakagawa . unresolved

    I wonder if this should reuse `KeepAliveURLLoaderService` so that a request can outlive tab close. See our private chat for details.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Jiacheng Guo
    • Nicolas Ouellet-Payeur
    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: I0aff0f1ce57f6821332c3c77a82a80f5597a4c9a
    Gerrit-Change-Number: 7838803
    Gerrit-PatchSet: 7
    Gerrit-Owner: Jiacheng Guo <g...@google.com>
    Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
    Gerrit-Reviewer: Jiacheng Guo <g...@google.com>
    Gerrit-Reviewer: Nicolas Ouellet-Payeur <nico...@chromium.org>
    Gerrit-CC: prerendering-reviews <prerenderi...@chromium.org>
    Gerrit-Attention: Jiacheng Guo <g...@google.com>
    Gerrit-Attention: Nicolas Ouellet-Payeur <nico...@chromium.org>
    Gerrit-Comment-Date: Fri, 15 May 2026 06:55:45 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Nicolas Ouellet-Payeur (Gerrit)

    unread,
    May 15, 2026, 2:50:51 PM (5 days ago) May 15
    to Jiacheng Guo, Hiroki Nakagawa, Chromium LUCI CQ, chromium...@chromium.org, prerendering-reviews, crmulli...@chromium.org, feature-me...@chromium.org, jorgel...@chromium.org, nicolas...@chromium.org, ramyagopa...@google.com, alexmo...@chromium.org, blink-...@chromium.org, creis...@chromium.org, gavin...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, navigation...@chromium.org, network-ser...@chromium.org, tburkar...@chromium.org
    Attention needed from Jiacheng Guo

    Nicolas Ouellet-Payeur voted and added 1 comment

    Votes added by Nicolas Ouellet-Payeur

    Code-Review+1

    1 comment

    File content/browser/preloading/preload_activation_report_manager.cc
    Line 57, Patchset 5: cookies_allowed: NO
    Nicolas Ouellet-Payeur . resolved

    it uses GetPrimaryMainFrame()->GetStoragePartition(), so it sounds like yes?

    Jiacheng Guo

    We are always using credential mode `request->credentials_mode = network::mojom::CredentialsMode::kOmit` so cookies are not sent. `GetPrimaryMainFrame()->GetStoragePartition()` is accessed to share the URL loader when sending requests from the browser process as instructed in the [comments](https://source.chromium.org/chromium/chromium/src/+/main:content/public/browser/storage_partition.h;l=117;drc=ce3629f6f1cdbdb670dbf759e6b7c89c4a92a8fb).

    Nicolas Ouellet-Payeur

    Right, gotcha

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Jiacheng Guo
    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: I0aff0f1ce57f6821332c3c77a82a80f5597a4c9a
    Gerrit-Change-Number: 7838803
    Gerrit-PatchSet: 7
    Gerrit-Owner: Jiacheng Guo <g...@google.com>
    Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
    Gerrit-Reviewer: Jiacheng Guo <g...@google.com>
    Gerrit-Reviewer: Nicolas Ouellet-Payeur <nico...@chromium.org>
    Gerrit-CC: prerendering-reviews <prerenderi...@chromium.org>
    Gerrit-Attention: Jiacheng Guo <g...@google.com>
    Gerrit-Comment-Date: Fri, 15 May 2026 18:50:45 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: Jiacheng Guo <g...@google.com>
    Comment-In-Reply-To: Nicolas Ouellet-Payeur <nico...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Jiacheng Guo (Gerrit)

    unread,
    May 19, 2026, 1:43:03 AM (yesterday) May 19
    to Nicolas Ouellet-Payeur, Hiroki Nakagawa, Chromium LUCI CQ, chromium...@chromium.org, prerendering-reviews, crmulli...@chromium.org, feature-me...@chromium.org, jorgel...@chromium.org, nicolas...@chromium.org, ramyagopa...@google.com, alexmo...@chromium.org, blink-...@chromium.org, creis...@chromium.org, gavin...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, navigation...@chromium.org, network-ser...@chromium.org, tburkar...@chromium.org
    Attention needed from Hiroki Nakagawa

    Jiacheng Guo added 1 comment

    File content/browser/preloading/preload_activation_report_manager.h
    Line 29, Patchset 7: : public WebContentsUserData<PreloadActivationReportManager> {
    Hiroki Nakagawa . unresolved

    I wonder if this should reuse `KeepAliveURLLoaderService` so that a request can outlive tab close. See our private chat for details.

    Jiacheng Guo

    I've uploaded the CL to make PreloadActivationReportManager lifetime bound to the Profile rather than the WebContents. The `KeepAliveURLLoaderService` is closely related to renderer process and blink features so I prefer to keep the service as a separate class.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Hiroki Nakagawa
    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: I0aff0f1ce57f6821332c3c77a82a80f5597a4c9a
    Gerrit-Change-Number: 7838803
    Gerrit-PatchSet: 8
    Gerrit-Owner: Jiacheng Guo <g...@google.com>
    Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
    Gerrit-Reviewer: Jiacheng Guo <g...@google.com>
    Gerrit-Reviewer: Nicolas Ouellet-Payeur <nico...@chromium.org>
    Gerrit-CC: prerendering-reviews <prerenderi...@chromium.org>
    Gerrit-Attention: Hiroki Nakagawa <nhi...@chromium.org>
    Gerrit-Comment-Date: Tue, 19 May 2026 05:42:32 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Hiroki Nakagawa <nhi...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Hiroki Nakagawa (Gerrit)

    unread,
    May 19, 2026, 4:22:39 AM (23 hours ago) May 19
    to Jiacheng Guo, Nicolas Ouellet-Payeur, Chromium LUCI CQ, chromium...@chromium.org, prerendering-reviews, crmulli...@chromium.org, feature-me...@chromium.org, jorgel...@chromium.org, nicolas...@chromium.org, ramyagopa...@google.com, alexmo...@chromium.org, blink-...@chromium.org, creis...@chromium.org, gavin...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, navigation...@chromium.org, network-ser...@chromium.org, tburkar...@chromium.org
    Attention needed from Jiacheng Guo

    Hiroki Nakagawa added 7 comments

    File content/browser/preloading/preload_activation_report_manager.h
    Line 30, Patchset 8 (Latest):// that have been consumed.
    Hiroki Nakagawa . unresolved

    Can you leave comments about lifetime model of this manager? (e.g., This is bound to
    `BrowserContext` so that beacon requests can outlive their initiator documents)

    Line 29, Patchset 7: : public WebContentsUserData<PreloadActivationReportManager> {
    Hiroki Nakagawa . resolved

    I wonder if this should reuse `KeepAliveURLLoaderService` so that a request can outlive tab close. See our private chat for details.

    Jiacheng Guo

    I've uploaded the CL to make PreloadActivationReportManager lifetime bound to the Profile rather than the WebContents. The `KeepAliveURLLoaderService` is closely related to renderer process and blink features so I prefer to keep the service as a separate class.

    Hiroki Nakagawa

    Acked. Sounds reasonable.

    File content/browser/preloading/preload_activation_report_manager.cc
    Line 30, Patchset 8 (Latest): DCHECK_CURRENTLY_ON(BrowserThread::UI);
    Hiroki Nakagawa . unresolved

    `CHECK(browser_context);`

    Line 51, Patchset 8 (Latest): WebContents* web_contents) {
    Hiroki Nakagawa . unresolved

    ```
    DCHECK_CURRENTLY_ON(BrowserThread::UI);
    CHECK(web_contents);
    ```

    Line 55, Patchset 8 (Latest): request->credentials_mode = network::mojom::CredentialsMode::kOmit;
    Hiroki Nakagawa . unresolved

    Did you audit the other parameters on ResourceRequest? Is it okay to leave them unset (e.g., `request_initiator`, `load_flags`, `resource_type`, `keepalive`, `skip_service_worker`)?

    I don't mean to block this CL. If they haven't been audited yet, we can handle it in a follow-up.

    Line 101, Patchset 8 (Latest): base::Unretained(this), std::move(it)));
    Hiroki Nakagawa . unresolved

    Is it guaranteed that this callback is never called after `this` (`PreloadActivationReportManager`) is destroyed?

    I wonder if `loader` can be bound to the callback itself so that the callback doesn't need to touch `PreloadActivationReportManager`?

    ```
    loader_ptr->DownloadHeadersOnly(
    storage_partition->GetURLLoaderFactoryForBrowserProcess().get(),
    base::DoNothingWithBoundArgs(std::move(loader));
    ```
    Line 106, Patchset 8 (Latest): scoped_refptr<net::HttpResponseHeaders> headers) {
    Hiroki Nakagawa . unresolved

    `DCHECK_CURRENTLY_ON(BrowserThread::UI);`

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Jiacheng Guo
    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: I0aff0f1ce57f6821332c3c77a82a80f5597a4c9a
    Gerrit-Change-Number: 7838803
    Gerrit-PatchSet: 8
    Gerrit-Owner: Jiacheng Guo <g...@google.com>
    Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
    Gerrit-Reviewer: Jiacheng Guo <g...@google.com>
    Gerrit-Reviewer: Nicolas Ouellet-Payeur <nico...@chromium.org>
    Gerrit-CC: prerendering-reviews <prerenderi...@chromium.org>
    Gerrit-Attention: Jiacheng Guo <g...@google.com>
    Gerrit-Comment-Date: Tue, 19 May 2026 08:22:16 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Jiacheng Guo <g...@google.com>
    Comment-In-Reply-To: Hiroki Nakagawa <nhi...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Jiacheng Guo (Gerrit)

    unread,
    3:12 AM (3 minutes ago) 3:12 AM
    to Nicolas Ouellet-Payeur, Hiroki Nakagawa, Chromium LUCI CQ, chromium...@chromium.org, prerendering-reviews, blink-revie...@chromium.org, crmulli...@chromium.org, feature-me...@chromium.org, jorgel...@chromium.org, nicolas...@chromium.org, ramyagopa...@google.com, alexmo...@chromium.org, blink-...@chromium.org, creis...@chromium.org, gavin...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, navigation...@chromium.org, network-ser...@chromium.org, tburkar...@chromium.org
    Attention needed from Hiroki Nakagawa

    Jiacheng Guo added 6 comments

    File content/browser/preloading/preload_activation_report_manager.h
    Line 30, Patchset 8:// that have been consumed.
    Hiroki Nakagawa . resolved

    Can you leave comments about lifetime model of this manager? (e.g., This is bound to
    `BrowserContext` so that beacon requests can outlive their initiator documents)

    Jiacheng Guo

    Done

    File content/browser/preloading/preload_activation_report_manager.cc
    Line 30, Patchset 8: DCHECK_CURRENTLY_ON(BrowserThread::UI);
    Hiroki Nakagawa . resolved

    `CHECK(browser_context);`

    Jiacheng Guo

    Done

    Line 51, Patchset 8: WebContents* web_contents) {
    Hiroki Nakagawa . resolved

    ```
    DCHECK_CURRENTLY_ON(BrowserThread::UI);
    CHECK(web_contents);
    ```

    Jiacheng Guo

    Done

    Line 55, Patchset 8: request->credentials_mode = network::mojom::CredentialsMode::kOmit;
    Hiroki Nakagawa . resolved

    Did you audit the other parameters on ResourceRequest? Is it okay to leave them unset (e.g., `request_initiator`, `load_flags`, `resource_type`, `keepalive`, `skip_service_worker`)?

    I don't mean to block this CL. If they haven't been audited yet, we can handle it in a follow-up.

    Jiacheng Guo

    Done

    Line 101, Patchset 8: base::Unretained(this), std::move(it)));
    Hiroki Nakagawa . resolved

    Is it guaranteed that this callback is never called after `this` (`PreloadActivationReportManager`) is destroyed?

    I wonder if `loader` can be bound to the callback itself so that the callback doesn't need to touch `PreloadActivationReportManager`?

    ```
    loader_ptr->DownloadHeadersOnly(
    storage_partition->GetURLLoaderFactoryForBrowserProcess().get(),
    base::DoNothingWithBoundArgs(std::move(loader));
    ```
    Jiacheng Guo

    Done

    Line 106, Patchset 8: scoped_refptr<net::HttpResponseHeaders> headers) {
    Hiroki Nakagawa . resolved

    `DCHECK_CURRENTLY_ON(BrowserThread::UI);`

    Jiacheng Guo

    Done

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Hiroki Nakagawa
    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: I0aff0f1ce57f6821332c3c77a82a80f5597a4c9a
      Gerrit-Change-Number: 7838803
      Gerrit-PatchSet: 10
      Gerrit-Owner: Jiacheng Guo <g...@google.com>
      Gerrit-Reviewer: Hiroki Nakagawa <nhi...@chromium.org>
      Gerrit-Reviewer: Jiacheng Guo <g...@google.com>
      Gerrit-Reviewer: Nicolas Ouellet-Payeur <nico...@chromium.org>
      Gerrit-CC: prerendering-reviews <prerenderi...@chromium.org>
      Gerrit-Attention: Hiroki Nakagawa <nhi...@chromium.org>
      Gerrit-Comment-Date: Wed, 20 May 2026 07:12:34 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Hiroki Nakagawa <nhi...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy
      Reply all
      Reply to author
      Forward
      0 new messages