ios: Integrate Perfetto background tracing with UMA [chromium/src : main]

3 views
Skip to first unread message

Justin Cohen (Gerrit)

unread,
May 5, 2026, 4:18:04 PMMay 5
to Etienne Pierre-Doray, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, chromiumme...@microsoft.com, asvitki...@chromium.org, android-web...@chromium.org, droger+w...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, ipc-securi...@chromium.org, marq+...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
Attention needed from Etienne Pierre-Doray

Justin Cohen added 1 comment

Patchset-level comments
Open in Gerrit

Related details

Attention is currently required from:
  • Etienne Pierre-Doray
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: I13466e744b9bb103750b975d11e71a9c2d0555da
Gerrit-Change-Number: 7780459
Gerrit-PatchSet: 39
Gerrit-Owner: Justin Cohen <justi...@google.com>
Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
Gerrit-Reviewer: Justin Cohen <justi...@google.com>
Gerrit-Attention: Etienne Pierre-Doray <etie...@chromium.org>
Gerrit-Comment-Date: Tue, 05 May 2026 20:17:58 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Justin Cohen (Gerrit)

unread,
May 12, 2026, 5:29:03 PM (9 days ago) May 12
to Chromium LUCI CQ, chromium...@chromium.org, droger+w...@chromium.org, dullweb...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, msrame...@chromium.org, performance-m...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org

Justin Cohen abandoned this change.

View Change

Abandoned

Justin Cohen abandoned this change

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • 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: abandon
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b
Gerrit-Change-Number: 7841974
Gerrit-PatchSet: 1
Gerrit-Owner: Justin Cohen <justi...@google.com>
Gerrit-Reviewer: Justin Cohen <justi...@google.com>
satisfied_requirement
unsatisfied_requirement
open
diffy

Justin Cohen (Gerrit)

unread,
May 15, 2026, 6:42:23 AM (6 days ago) May 15
to Etienne Pierre-Doray, Chromium LUCI CQ, chromium...@chromium.org, asvitki...@chromium.org, chromiumme...@microsoft.com, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
Attention needed from Etienne Pierre-Doray

Justin Cohen voted and added 1 comment

Votes added by Justin Cohen

Commit-Queue+1

1 comment

Patchset-level comments
Justin Cohen . resolved

ptal

Related details

Attention is currently required from:
  • Etienne Pierre-Doray
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: Ibddd9383518733273b6b973119a1f94c7b3e7c8e
Gerrit-Change-Number: 7842898
Gerrit-PatchSet: 11
Gerrit-Owner: Justin Cohen <justi...@google.com>
Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
Gerrit-Reviewer: Justin Cohen <justi...@google.com>
Gerrit-Attention: Etienne Pierre-Doray <etie...@chromium.org>
Gerrit-Comment-Date: Fri, 15 May 2026 10:42:13 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Etienne Pierre-Doray (Gerrit)

unread,
May 15, 2026, 9:51:12 AM (6 days ago) May 15
to Justin Cohen, Chromium LUCI CQ, chromium...@chromium.org, asvitki...@chromium.org, chromiumme...@microsoft.com, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
Attention needed from Justin Cohen

Etienne Pierre-Doray added 5 comments

File ios/chrome/browser/tracing/ios_chrome_background_tracing_metrics_provider.h
Line 18, Patchset 11 (Latest):class IOSChromeBackgroundTracingMetricsProvider
Etienne Pierre-Doray . unresolved

Is it worth inheriting from BackgroundTracingMetricsProvider (the same way you'd done in https://crrev.com/c/7819834)?

That would give us ProvideIndependentMetrics for free.

Line 58, Patchset 11 (Latest): auto tracing_scenarios_config = tracing::GetFieldTracingScenariosConfig();
if (tracing_scenarios_config) {
IOSTracingController::GetInstance().InitializeFieldScenarios(
*tracing_scenarios_config, BackgroundTracingManager::ANONYMIZE_DATA,
tracing::kFieldTracingForceUploads.Get(),
tracing::kFieldTracingUploadLimitKb.Get());
}
Etienne Pierre-Doray . unresolved

Now that BackgroundTracingManager is in services,
SetupFieldTracingFromFieldTrial() doesn't need to depend on content/ (this might be true for all of background_tracing_utils target), and could probably be reused here.

File ios/chrome/browser/tracing/ios_tracing_controller.mm
Line 76, Patchset 11 (Latest): InitializeTraceReportDatabase();
Etienne Pierre-Doray . unresolved

InitializeTraceReportDatabase is generally called lazily (e.g. in InitializeFieldScenarios), to avoid unnecessarily loading the database for most of stable users (since the field tracing config generally only runs on prestable).

Line 112, Patchset 11 (Latest): active_scenario_ = nullptr;
Etienne Pierre-Doray . unresolved

DisableScenarios() right below should handle this.

Line 116, Patchset 11 (Latest): if (base::ThreadPoolInstance::Get()) {
base::ThreadPoolInstance::Get()->FlushForTesting(); // IN-TEST
}
Etienne Pierre-Doray . unresolved

Ideally this is done through TaskEnvironment in the test suite?

Open in Gerrit

Related details

Attention is currently required from:
  • Justin Cohen
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: Ibddd9383518733273b6b973119a1f94c7b3e7c8e
    Gerrit-Change-Number: 7842898
    Gerrit-PatchSet: 11
    Gerrit-Owner: Justin Cohen <justi...@google.com>
    Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
    Gerrit-Reviewer: Justin Cohen <justi...@google.com>
    Gerrit-Attention: Justin Cohen <justi...@google.com>
    Gerrit-Comment-Date: Fri, 15 May 2026 13:51:04 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Justin Cohen (Gerrit)

    unread,
    May 15, 2026, 10:33:34 AM (6 days ago) May 15
    to Etienne Pierre-Doray, Chromium LUCI CQ, chromium...@chromium.org, asvitki...@chromium.org, chromiumme...@microsoft.com, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
    Attention needed from Etienne Pierre-Doray

    Justin Cohen added 5 comments

    File ios/chrome/browser/tracing/ios_chrome_background_tracing_metrics_provider.h
    Line 18, Patchset 11:class IOSChromeBackgroundTracingMetricsProvider
    Etienne Pierre-Doray . unresolved

    Is it worth inheriting from BackgroundTracingMetricsProvider (the same way you'd done in https://crrev.com/c/7819834)?

    That would give us ProvideIndependentMetrics for free.

    Justin Cohen

    I'll look into it now. If the refactor is too complicated, perhaps that would be useful as a followup.

    Line 58, Patchset 11: auto tracing_scenarios_config = tracing::GetFieldTracingScenariosConfig();

    if (tracing_scenarios_config) {
    IOSTracingController::GetInstance().InitializeFieldScenarios(
    *tracing_scenarios_config, BackgroundTracingManager::ANONYMIZE_DATA,
    tracing::kFieldTracingForceUploads.Get(),
    tracing::kFieldTracingUploadLimitKb.Get());
    }
    Etienne Pierre-Doray . unresolved

    Now that BackgroundTracingManager is in services,
    SetupFieldTracingFromFieldTrial() doesn't need to depend on content/ (this might be true for all of background_tracing_utils target), and could probably be reused here.

    Justin Cohen

    I'll look into it now. If the refactor is too complicated, perhaps that would be useful as a followup.

    File ios/chrome/browser/tracing/ios_tracing_controller.mm
    Line 76, Patchset 11: InitializeTraceReportDatabase();
    Etienne Pierre-Doray . resolved

    InitializeTraceReportDatabase is generally called lazily (e.g. in InitializeFieldScenarios), to avoid unnecessarily loading the database for most of stable users (since the field tracing config generally only runs on prestable).

    Justin Cohen

    Done

    Line 112, Patchset 11: active_scenario_ = nullptr;
    Etienne Pierre-Doray . resolved

    DisableScenarios() right below should handle this.

    Justin Cohen

    Done

    Line 116, Patchset 11: if (base::ThreadPoolInstance::Get()) {

    base::ThreadPoolInstance::Get()->FlushForTesting(); // IN-TEST
    }
    Etienne Pierre-Doray . unresolved

    Ideally this is done through TaskEnvironment in the test suite?

    Justin Cohen

    If we pull it out of here we need to add it to IOSTracingControllerTest::StartupTraceRecording and any other test that needs to reset/re-initialize within the test. I thought it was simpler to group it together. LMKWYT.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Etienne Pierre-Doray
    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: Ibddd9383518733273b6b973119a1f94c7b3e7c8e
    Gerrit-Change-Number: 7842898
    Gerrit-PatchSet: 12
    Gerrit-Owner: Justin Cohen <justi...@google.com>
    Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
    Gerrit-Reviewer: Justin Cohen <justi...@google.com>
    Gerrit-Attention: Etienne Pierre-Doray <etie...@chromium.org>
    Gerrit-Comment-Date: Fri, 15 May 2026 14:33:24 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Etienne Pierre-Doray <etie...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Etienne Pierre-Doray (Gerrit)

    unread,
    May 15, 2026, 11:17:39 AM (6 days ago) May 15
    to Justin Cohen, Chromium LUCI CQ, chromium...@chromium.org, asvitki...@chromium.org, chromiumme...@microsoft.com, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
    Attention needed from Justin Cohen

    Etienne Pierre-Doray added 7 comments

    Patchset-level comments
    File-level comment, Patchset 14:
    Etienne Pierre-Doray . resolved

    Mostly LG
    In chrome/, we handle ChromeBrowsingDataRemoverDelegate::RemoveEmbedderData (delete browsing history button)
    by calling DeleteTracesInDateRange():
    https://source.chromium.org/chromium/chromium/src/+/main:chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc;l=563-564;drc=ebae80fd6865f2728dddad89f1af342779c789b5;bpv=1;bpt=1

    I'm wondering if iOS has a equivalent.

    File components/tracing/BUILD.gn
    Line 95, Patchset 13: "//content/public/browser",
    Etienne Pierre-Doray . unresolved

    Nit: I don't think that's actually needed

    File ios/chrome/browser/tracing/ios_tracing_controller.mm
    Line 116, Patchset 11: if (base::ThreadPoolInstance::Get()) {
    base::ThreadPoolInstance::Get()->FlushForTesting(); // IN-TEST
    }
    Etienne Pierre-Doray . unresolved

    Ideally this is done through TaskEnvironment in the test suite?

    Justin Cohen

    If we pull it out of here we need to add it to IOSTracingControllerTest::StartupTraceRecording and any other test that needs to reset/re-initialize within the test. I thought it was simpler to group it together. LMKWYT.

    Etienne Pierre-Doray

    Yes, let's do it in the tests if that works.

    File ios/chrome/browser/tracing/ios_tracing_controller_unittest.mm
    Line 35, Patchset 13:namespace {
    Etienne Pierre-Doray . unresolved

    Nit: extra line

    Line 55, Patchset 13: base::FilePath user_data_dir;
    if (base::PathService::Get(ios::DIR_USER_DATA, &user_data_dir)) {
    base::DeleteFile(
    user_data_dir.Append(FILE_PATH_LITERAL("LocalTraces.db")));
    base::DeleteFile(
    user_data_dir.Append(FILE_PATH_LITERAL("LocalTraces.db-journal")));
    }
    Etienne Pierre-Doray . unresolved

    In other tests we get BackgroundTracingManager to use in-memory database by calling `InitializeTraceReportDatabase(/*open_in_memory*/true)` first

    Line 296, Patchset 13: IOSTracingController::GetInstance().ResetForTesting();
    Etienne Pierre-Doray . unresolved

    Is this needed, or add a comment why IOSTracingControllerTest::TearDown() isn't enough. (same below)

    Line 299, Patchset 13:TEST_F(IOSTracingControllerTest, GroomingAndPruningLogic) {
    base::ThreadPoolInstance::Get()->FlushForTesting();

    auto& instance = IOSTracingController::GetInstance();

    size_t reports = GetDatabaseReportCount(instance);
    EXPECT_LE(reports, 30u);
    }
    Etienne Pierre-Doray . unresolved

    I feel like that's a test that would belong in services/tracing/public/cpp/background_tracing/background_tracing_manager_unittest.cc, though I'm not sure if there's coverage for this behavior already.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Justin Cohen
    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: Ibddd9383518733273b6b973119a1f94c7b3e7c8e
    Gerrit-Change-Number: 7842898
    Gerrit-PatchSet: 14
    Gerrit-Owner: Justin Cohen <justi...@google.com>
    Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
    Gerrit-Reviewer: Justin Cohen <justi...@google.com>
    Gerrit-Attention: Justin Cohen <justi...@google.com>
    Gerrit-Comment-Date: Fri, 15 May 2026 15:17:33 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Justin Cohen <justi...@google.com>
    Comment-In-Reply-To: Etienne Pierre-Doray <etie...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Justin Cohen (Gerrit)

    unread,
    May 15, 2026, 11:40:46 AM (6 days ago) May 15
    to android-bu...@system.gserviceaccount.com, Etienne Pierre-Doray, Chromium LUCI CQ, chromium...@chromium.org, msrame...@chromium.org, dullweb...@chromium.org, asvitki...@chromium.org, chromiumme...@microsoft.com, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
    Attention needed from Etienne Pierre-Doray

    Justin Cohen voted and added 9 comments

    Votes added by Justin Cohen

    Commit-Queue+1

    9 comments

    Patchset-level comments
    Etienne Pierre-Doray . resolved

    Mostly LG
    In chrome/, we handle ChromeBrowsingDataRemoverDelegate::RemoveEmbedderData (delete browsing history button)
    by calling DeleteTracesInDateRange():
    https://source.chromium.org/chromium/chromium/src/+/main:chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc;l=563-564;drc=ebae80fd6865f2728dddad89f1af342779c789b5;bpv=1;bpt=1

    I'm wondering if iOS has a equivalent.

    Justin Cohen

    It does -- thank you for catching this!

    File components/tracing/BUILD.gn
    Line 95, Patchset 13: "//content/public/browser",
    Etienne Pierre-Doray . resolved

    Nit: I don't think that's actually needed

    Justin Cohen

    Done

    File ios/chrome/browser/tracing/ios_chrome_background_tracing_metrics_provider.h
    Line 18, Patchset 11:class IOSChromeBackgroundTracingMetricsProvider
    Etienne Pierre-Doray . resolved

    Is it worth inheriting from BackgroundTracingMetricsProvider (the same way you'd done in https://crrev.com/c/7819834)?

    That would give us ProvideIndependentMetrics for free.

    Justin Cohen

    I'll look into it now. If the refactor is too complicated, perhaps that would be useful as a followup.

    Justin Cohen

    Done

    Line 58, Patchset 11: auto tracing_scenarios_config = tracing::GetFieldTracingScenariosConfig();
    if (tracing_scenarios_config) {
    IOSTracingController::GetInstance().InitializeFieldScenarios(
    *tracing_scenarios_config, BackgroundTracingManager::ANONYMIZE_DATA,
    tracing::kFieldTracingForceUploads.Get(),
    tracing::kFieldTracingUploadLimitKb.Get());
    }
    Etienne Pierre-Doray . resolved

    Now that BackgroundTracingManager is in services,
    SetupFieldTracingFromFieldTrial() doesn't need to depend on content/ (this might be true for all of background_tracing_utils target), and could probably be reused here.

    Justin Cohen

    I'll look into it now. If the refactor is too complicated, perhaps that would be useful as a followup.

    Justin Cohen

    Done

    File ios/chrome/browser/tracing/ios_tracing_controller.mm
    Line 116, Patchset 11: if (base::ThreadPoolInstance::Get()) {
    base::ThreadPoolInstance::Get()->FlushForTesting(); // IN-TEST
    }
    Etienne Pierre-Doray . resolved

    Ideally this is done through TaskEnvironment in the test suite?

    Justin Cohen

    If we pull it out of here we need to add it to IOSTracingControllerTest::StartupTraceRecording and any other test that needs to reset/re-initialize within the test. I thought it was simpler to group it together. LMKWYT.

    Etienne Pierre-Doray

    Yes, let's do it in the tests if that works.

    Justin Cohen

    Done

    File ios/chrome/browser/tracing/ios_tracing_controller_unittest.mm
    Etienne Pierre-Doray . resolved

    Nit: extra line

    Justin Cohen

    Done

    Line 55, Patchset 13: base::FilePath user_data_dir;
    if (base::PathService::Get(ios::DIR_USER_DATA, &user_data_dir)) {
    base::DeleteFile(
    user_data_dir.Append(FILE_PATH_LITERAL("LocalTraces.db")));
    base::DeleteFile(
    user_data_dir.Append(FILE_PATH_LITERAL("LocalTraces.db-journal")));
    }
    Etienne Pierre-Doray . resolved

    In other tests we get BackgroundTracingManager to use in-memory database by calling `InitializeTraceReportDatabase(/*open_in_memory*/true)` first

    Justin Cohen

    Done

    Line 296, Patchset 13: IOSTracingController::GetInstance().ResetForTesting();
    Etienne Pierre-Doray . resolved

    Is this needed, or add a comment why IOSTracingControllerTest::TearDown() isn't enough. (same below)

    Justin Cohen

    Done

    Line 299, Patchset 13:TEST_F(IOSTracingControllerTest, GroomingAndPruningLogic) {
    base::ThreadPoolInstance::Get()->FlushForTesting();

    auto& instance = IOSTracingController::GetInstance();

    size_t reports = GetDatabaseReportCount(instance);
    EXPECT_LE(reports, 30u);
    }
    Etienne Pierre-Doray . resolved

    I feel like that's a test that would belong in services/tracing/public/cpp/background_tracing/background_tracing_manager_unittest.cc, though I'm not sure if there's coverage for this behavior already.

    Justin Cohen

    Done

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Etienne Pierre-Doray
    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: Ibddd9383518733273b6b973119a1f94c7b3e7c8e
      Gerrit-Change-Number: 7842898
      Gerrit-PatchSet: 18
      Gerrit-Owner: Justin Cohen <justi...@google.com>
      Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
      Gerrit-Reviewer: Justin Cohen <justi...@google.com>
      Gerrit-Attention: Etienne Pierre-Doray <etie...@chromium.org>
      Gerrit-Comment-Date: Fri, 15 May 2026 15:40:36 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Etienne Pierre-Doray (Gerrit)

      unread,
      May 15, 2026, 1:04:44 PM (6 days ago) May 15
      to Justin Cohen, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, chromium...@chromium.org, msrame...@chromium.org, dullweb...@chromium.org, asvitki...@chromium.org, chromiumme...@microsoft.com, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org

      Etienne Pierre-Doray voted and added 2 comments

      Votes added by Etienne Pierre-Doray

      Code-Review+1

      2 comments

      Patchset-level comments
      File-level comment, Patchset 20 (Latest):
      Etienne Pierre-Doray . resolved

      LGTM, thanks!

      File ios/chrome/browser/browsing_data/model/browsing_data_remover_impl.mm
      Line 580, Patchset 20 (Latest): if (IOSTracingController::HasInstance()) {
      Etienne Pierre-Doray . unresolved

      Nit: I'd expect IOSTracingController to be created unconditionally here?
      https://source.chromium.org/chromium/chromium/src/+/main:ios/chrome/browser/web/model/chrome_main_parts.mm;l=194;drc=ebae80fd6865f2728dddad89f1af342779c789b5;bpv=1;bpt=1

      Or maybe this isn't true in some testing environments?

      Open in Gerrit

      Related details

      Attention set is empty
      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: Ibddd9383518733273b6b973119a1f94c7b3e7c8e
        Gerrit-Change-Number: 7842898
        Gerrit-PatchSet: 20
        Gerrit-Owner: Justin Cohen <justi...@google.com>
        Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
        Gerrit-Reviewer: Justin Cohen <justi...@google.com>
        Gerrit-Comment-Date: Fri, 15 May 2026 17:04:38 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Justin Cohen (Gerrit)

        unread,
        May 15, 2026, 1:36:43 PM (6 days ago) May 15
        to Etienne Pierre-Doray, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, chromium...@chromium.org, msrame...@chromium.org, dullweb...@chromium.org, asvitki...@chromium.org, chromiumme...@microsoft.com, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org

        Justin Cohen added 1 comment

        File ios/chrome/browser/browsing_data/model/browsing_data_remover_impl.mm
        Line 580, Patchset 20 (Latest): if (IOSTracingController::HasInstance()) {
        Etienne Pierre-Doray . resolved

        Nit: I'd expect IOSTracingController to be created unconditionally here?
        https://source.chromium.org/chromium/chromium/src/+/main:ios/chrome/browser/web/model/chrome_main_parts.mm;l=194;drc=ebae80fd6865f2728dddad89f1af342779c789b5;bpv=1;bpt=1

        Or maybe this isn't true in some testing environments?

        Justin Cohen

        Correct, this is for tests.

        Open in Gerrit

        Related details

        Attention set is empty
        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: Ibddd9383518733273b6b973119a1f94c7b3e7c8e
          Gerrit-Change-Number: 7842898
          Gerrit-PatchSet: 20
          Gerrit-Owner: Justin Cohen <justi...@google.com>
          Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
          Gerrit-Reviewer: Justin Cohen <justi...@google.com>
          Gerrit-Comment-Date: Fri, 15 May 2026 17:36:32 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          Comment-In-Reply-To: Etienne Pierre-Doray <etie...@chromium.org>
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Justin Cohen (Gerrit)

          unread,
          May 15, 2026, 1:37:07 PM (6 days ago) May 15
          to Justin Novosad, Etienne Pierre-Doray, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, chromium...@chromium.org, msrame...@chromium.org, dullweb...@chromium.org, asvitki...@chromium.org, chromiumme...@microsoft.com, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
          Attention needed from Justin Novosad

          Justin Cohen added 1 comment

          Patchset-level comments
          Justin Cohen . resolved

          Over to junov + rohitrao for iOS

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Justin Novosad
          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: Ibddd9383518733273b6b973119a1f94c7b3e7c8e
          Gerrit-Change-Number: 7842898
          Gerrit-PatchSet: 20
          Gerrit-Owner: Justin Cohen <justi...@google.com>
          Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
          Gerrit-Reviewer: Justin Cohen <justi...@google.com>
          Gerrit-Reviewer: Justin Novosad <ju...@google.com>
          Gerrit-Attention: Justin Novosad <ju...@google.com>
          Gerrit-Comment-Date: Fri, 15 May 2026 17:37:00 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Rohit Rao (Gerrit)

          unread,
          May 15, 2026, 1:45:18 PM (6 days ago) May 15
          to Justin Cohen, Rohit Rao, Justin Novosad, Etienne Pierre-Doray, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, chromium...@chromium.org, msrame...@chromium.org, dullweb...@chromium.org, asvitki...@chromium.org, chromiumme...@microsoft.com, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
          Attention needed from Justin Cohen and Justin Novosad

          Rohit Rao voted and added 3 comments

          Votes added by Rohit Rao

          Code-Review+1

          3 comments

          File ios/chrome/browser/tracing/ios_tracing_controller.mm
          Line 134, Patchset 20 (Latest): return false;
          Rohit Rao . unresolved

          Will this always be false or is there a TODO here?

          Line 138, Patchset 20 (Latest): return true;
          Rohit Rao . unresolved

          Will this always be true or is there a TODO here?

          Line 164, Patchset 20 (Latest): return true;
          Rohit Rao . unresolved

          Will this always be true or is there a TODO here?

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Justin Cohen
          • Justin Novosad
          Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement 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: Ibddd9383518733273b6b973119a1f94c7b3e7c8e
          Gerrit-Change-Number: 7842898
          Gerrit-PatchSet: 20
          Gerrit-Owner: Justin Cohen <justi...@google.com>
          Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
          Gerrit-Reviewer: Justin Cohen <justi...@google.com>
          Gerrit-Reviewer: Justin Novosad <ju...@google.com>
          Gerrit-Reviewer: Rohit Rao <rohi...@chromium.org>
          Gerrit-Attention: Justin Cohen <justi...@google.com>
          Gerrit-Attention: Justin Novosad <ju...@google.com>
          Gerrit-Comment-Date: Fri, 15 May 2026 17:45:11 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: Yes
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Justin Cohen (Gerrit)

          unread,
          May 15, 2026, 1:57:27 PM (6 days ago) May 15
          to Rohit Rao, Justin Novosad, Etienne Pierre-Doray, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, chromium...@chromium.org, msrame...@chromium.org, dullweb...@chromium.org, asvitki...@chromium.org, chromiumme...@microsoft.com, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
          Attention needed from Justin Novosad and Rohit Rao

          Justin Cohen added 3 comments

          File ios/chrome/browser/tracing/ios_tracing_controller.mm
          Rohit Rao . unresolved

          Will this always be false or is there a TODO here?

          Justin Cohen

          This will always be false for iOS

          Rohit Rao . unresolved

          Will this always be true or is there a TODO here?

          Justin Cohen

          always true

          Rohit Rao . unresolved

          Will this always be true or is there a TODO here?

          Justin Cohen

          I'm not sure -- @etiennep should this ever be false on iOS?

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Justin Novosad
          • Rohit Rao
          Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement 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: Ibddd9383518733273b6b973119a1f94c7b3e7c8e
          Gerrit-Change-Number: 7842898
          Gerrit-PatchSet: 20
          Gerrit-Owner: Justin Cohen <justi...@google.com>
          Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
          Gerrit-Reviewer: Justin Cohen <justi...@google.com>
          Gerrit-Reviewer: Justin Novosad <ju...@google.com>
          Gerrit-Reviewer: Rohit Rao <rohi...@chromium.org>
          Gerrit-Attention: Rohit Rao <rohi...@chromium.org>
          Gerrit-Attention: Justin Novosad <ju...@google.com>
          Gerrit-Comment-Date: Fri, 15 May 2026 17:57:19 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          Comment-In-Reply-To: Rohit Rao <rohi...@chromium.org>
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Etienne Pierre-Doray (Gerrit)

          unread,
          May 15, 2026, 2:14:07 PM (6 days ago) May 15
          to Justin Cohen, Rohit Rao, Justin Novosad, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, chromium...@chromium.org, msrame...@chromium.org, dullweb...@chromium.org, asvitki...@chromium.org, chromiumme...@microsoft.com, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
          Attention needed from Justin Cohen, Justin Novosad and Rohit Rao

          Etienne Pierre-Doray added 2 comments

          File ios/chrome/browser/tracing/ios_tracing_controller.mm
          Rohit Rao . unresolved

          Will this always be true or is there a TODO here?

          Justin Cohen

          always true

          Etienne Pierre-Doray

          Actually Android returns false, because (1) storage limitations and (2) it doesn't have UI support to see and load unuploaded traces anyways.

          Rohit Rao . unresolved

          Will this always be true or is there a TODO here?

          Justin Cohen

          I'm not sure -- @etiennep should this ever be false on iOS?

          Etienne Pierre-Doray
          Open in Gerrit

          Related details

          Attention is currently required from:
          • Justin Cohen
          • Justin Novosad
          • Rohit Rao
          Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement 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: Ibddd9383518733273b6b973119a1f94c7b3e7c8e
          Gerrit-Change-Number: 7842898
          Gerrit-PatchSet: 20
          Gerrit-Owner: Justin Cohen <justi...@google.com>
          Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
          Gerrit-Reviewer: Justin Cohen <justi...@google.com>
          Gerrit-Reviewer: Justin Novosad <ju...@google.com>
          Gerrit-Reviewer: Rohit Rao <rohi...@chromium.org>
          Gerrit-Attention: Justin Cohen <justi...@google.com>
          Gerrit-Attention: Rohit Rao <rohi...@chromium.org>
          Gerrit-Attention: Justin Novosad <ju...@google.com>
          Gerrit-Comment-Date: Fri, 15 May 2026 18:13:55 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          Comment-In-Reply-To: Justin Cohen <justi...@google.com>
          Comment-In-Reply-To: Rohit Rao <rohi...@chromium.org>
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Justin Cohen (Gerrit)

          unread,
          May 15, 2026, 3:07:20 PM (6 days ago) May 15
          to Rohit Rao, Justin Novosad, Etienne Pierre-Doray, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, chromium...@chromium.org, msrame...@chromium.org, dullweb...@chromium.org, asvitki...@chromium.org, chromiumme...@microsoft.com, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
          Attention needed from Justin Novosad and Rohit Rao

          Justin Cohen added 3 comments

          File ios/chrome/browser/tracing/ios_tracing_controller.mm
          Line 134, Patchset 20: return false;
          Rohit Rao . resolved

          Will this always be false or is there a TODO here?

          Justin Cohen

          This will always be false for iOS

          Justin Cohen

          Done

          Line 138, Patchset 20: return true;
          Rohit Rao . resolved

          Will this always be true or is there a TODO here?

          Justin Cohen

          always true

          Etienne Pierre-Doray

          Actually Android returns false, because (1) storage limitations and (2) it doesn't have UI support to see and load unuploaded traces anyways.

          Justin Cohen

          Looks like Android is also true -- leaving as true for iOS for now.

          Line 164, Patchset 20: return true;
          Rohit Rao . resolved

          Will this always be true or is there a TODO here?

          Justin Cohen

          I'm not sure -- @etiennep should this ever be false on iOS?

          Etienne Pierre-Doray

          Yes, actually we should do something similar to ChromeTracingDelegate::IsRecordingAllowed to track incognito
          https://source.chromium.org/chromium/chromium/src/+/main:chrome/browser/tracing/chrome_tracing_delegate.cc;l=119;drc=ebae80fd6865f2728dddad89f1af342779c789b5;bpv=1;bpt=1

          Justin Cohen

          Added this.

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Justin Novosad
          • Rohit Rao
          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: Ibddd9383518733273b6b973119a1f94c7b3e7c8e
            Gerrit-Change-Number: 7842898
            Gerrit-PatchSet: 22
            Gerrit-Owner: Justin Cohen <justi...@google.com>
            Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
            Gerrit-Reviewer: Justin Cohen <justi...@google.com>
            Gerrit-Reviewer: Justin Novosad <ju...@google.com>
            Gerrit-Reviewer: Rohit Rao <rohi...@chromium.org>
            Gerrit-Attention: Rohit Rao <rohi...@chromium.org>
            Gerrit-Attention: Justin Novosad <ju...@google.com>
            Gerrit-Comment-Date: Fri, 15 May 2026 19:07:13 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: No
            Comment-In-Reply-To: Justin Cohen <justi...@google.com>
            Comment-In-Reply-To: Rohit Rao <rohi...@chromium.org>
            Comment-In-Reply-To: Etienne Pierre-Doray <etie...@chromium.org>
            satisfied_requirement
            open
            diffy

            Rohit Rao (Gerrit)

            unread,
            May 15, 2026, 3:18:20 PM (6 days ago) May 15
            to Justin Cohen, Rohit Rao, Justin Novosad, Etienne Pierre-Doray, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, chromium...@chromium.org, msrame...@chromium.org, dullweb...@chromium.org, asvitki...@chromium.org, chromiumme...@microsoft.com, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
            Attention needed from Justin Cohen and Justin Novosad

            Rohit Rao voted and added 1 comment

            Votes added by Rohit Rao

            Code-Review+1

            1 comment

            File ios/chrome/browser/tracing/ios_tracing_controller.mm
            Line 200, Patchset 22 (Latest): ->HasIncognitoSessionTabs();
            Rohit Rao . unresolved

            FYI this will disable tracing if any incognito windows are active. The desktop implementation may on disable if the current window is incognito.

            Open in Gerrit

            Related details

            Attention is currently required from:
            • Justin Cohen
            • Justin Novosad
            Submit Requirements:
              • requirement satisfiedCode-Coverage
              • requirement 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: Ibddd9383518733273b6b973119a1f94c7b3e7c8e
              Gerrit-Change-Number: 7842898
              Gerrit-PatchSet: 22
              Gerrit-Owner: Justin Cohen <justi...@google.com>
              Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
              Gerrit-Reviewer: Justin Cohen <justi...@google.com>
              Gerrit-Reviewer: Justin Novosad <ju...@google.com>
              Gerrit-Reviewer: Rohit Rao <rohi...@chromium.org>
              Gerrit-Attention: Justin Cohen <justi...@google.com>
              Gerrit-Attention: Justin Novosad <ju...@google.com>
              Gerrit-Comment-Date: Fri, 15 May 2026 19:18:14 +0000
              Gerrit-HasComments: Yes
              Gerrit-Has-Labels: Yes
              satisfied_requirement
              unsatisfied_requirement
              open
              diffy

              Justin Cohen (Gerrit)

              unread,
              May 15, 2026, 3:35:48 PM (6 days ago) May 15
              to Rohit Rao, Justin Novosad, Etienne Pierre-Doray, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, chromium...@chromium.org, msrame...@chromium.org, dullweb...@chromium.org, asvitki...@chromium.org, chromiumme...@microsoft.com, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
              Attention needed from Justin Novosad

              Justin Cohen voted and added 1 comment

              Votes added by Justin Cohen

              Commit-Queue+1

              1 comment

              File ios/chrome/browser/tracing/ios_tracing_controller.mm
              Line 200, Patchset 22: ->HasIncognitoSessionTabs();
              Rohit Rao . resolved

              FYI this will disable tracing if any incognito windows are active. The desktop implementation may on disable if the current window is incognito.

              Justin Cohen

              Acknowledged

              Open in Gerrit

              Related details

              Attention is currently required from:
              • Justin Novosad
              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: Ibddd9383518733273b6b973119a1f94c7b3e7c8e
                Gerrit-Change-Number: 7842898
                Gerrit-PatchSet: 23
                Gerrit-Owner: Justin Cohen <justi...@google.com>
                Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
                Gerrit-Reviewer: Justin Cohen <justi...@google.com>
                Gerrit-Reviewer: Justin Novosad <ju...@google.com>
                Gerrit-Reviewer: Rohit Rao <rohi...@chromium.org>
                Gerrit-Attention: Justin Novosad <ju...@google.com>
                Gerrit-Comment-Date: Fri, 15 May 2026 19:35:41 +0000
                Gerrit-HasComments: Yes
                Gerrit-Has-Labels: Yes
                Comment-In-Reply-To: Rohit Rao <rohi...@chromium.org>
                satisfied_requirement
                open
                diffy

                Justin Cohen (Gerrit)

                unread,
                May 15, 2026, 5:20:37 PM (6 days ago) May 15
                to Rohit Rao, Justin Novosad, Etienne Pierre-Doray, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, chromium...@chromium.org, msrame...@chromium.org, dullweb...@chromium.org, asvitki...@chromium.org, chromiumme...@microsoft.com, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
                Attention needed from Justin Novosad

                Justin Cohen voted Commit-Queue+2

                Commit-Queue+2
                Open in Gerrit

                Related details

                Attention is currently required from:
                • Justin Novosad
                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: Ibddd9383518733273b6b973119a1f94c7b3e7c8e
                Gerrit-Change-Number: 7842898
                Gerrit-PatchSet: 25
                Gerrit-Owner: Justin Cohen <justi...@google.com>
                Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
                Gerrit-Reviewer: Justin Cohen <justi...@google.com>
                Gerrit-Reviewer: Justin Novosad <ju...@google.com>
                Gerrit-Reviewer: Rohit Rao <rohi...@chromium.org>
                Gerrit-Attention: Justin Novosad <ju...@google.com>
                Gerrit-Comment-Date: Fri, 15 May 2026 21:20:29 +0000
                Gerrit-HasComments: No
                Gerrit-Has-Labels: Yes
                satisfied_requirement
                open
                diffy

                Chromium LUCI CQ (Gerrit)

                unread,
                May 15, 2026, 6:41:59 PM (6 days ago) May 15
                to Justin Cohen, Rohit Rao, Justin Novosad, Etienne Pierre-Doray, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, msrame...@chromium.org, dullweb...@chromium.org, asvitki...@chromium.org, chromiumme...@microsoft.com, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org

                Chromium LUCI CQ submitted the change with unreviewed changes

                Unreviewed changes

                22 is the latest approved patch-set.
                The change was submitted with unreviewed changes in the following files:

                ```
                The name of the file: ios/chrome/browser/tracing/ios_tracing_controller.mm
                Insertions: 1, Deletions: 1.

                @@ -172,7 +172,7 @@
                std::optional<base::FilePath> IOSTracingController::GetLocalTracesDirectory() {

                base::FilePath user_data_dir;
                if (base::PathService::Get(ios::DIR_USER_DATA, &user_data_dir)) {
                -    return user_data_dir;
                + return user_data_dir.Append(FILE_PATH_LITERAL("Local Traces"));
                }
                return std::nullopt;
                }
                ```

                Change information

                Commit message:
                ios: Integrate Perfetto background tracing with UMA

                Enables Chrome on iOS to collect and upload Perfetto background
                tracing reports using the unified UMA pipeline.

                - Introduces IOSChromeBackgroundTracingMetricsProvider to process and
                merge background trace payloads into UMA logs on iOS.
                - Adapts the shared BackgroundTracingMetricsProvider and background
                tracing utility targets inside //components/tracing to compile
                on iOS by abstracting content-layer dependencies.
                - Integrates the new tracing metrics provider into
                IOSChromeMetricsServiceClient.
                - Inherits IOSTracingController from the shared BackgroundTracingManager
                base class to manage scenarios, the local trace database, and
                uploading, eliminating redundant iOS-specific boilerplate.
                - Configures TracingScenario to utilize Perfetto's in-process backend
                on iOS builds.
                Bug: 495937056
                Change-Id: Ibddd9383518733273b6b973119a1f94c7b3e7c8e
                Reviewed-by: Etienne Pierre-Doray <etie...@chromium.org>
                Reviewed-by: Rohit Rao <rohi...@chromium.org>
                Commit-Queue: Justin Cohen <justi...@google.com>
                Cr-Commit-Position: refs/heads/main@{#1631613}
                Files:
                Change size: L
                Delta: 20 files changed, 570 insertions(+), 48 deletions(-)
                Branch: refs/heads/main
                Submit Requirements:
                • requirement satisfiedCode-Review: +1 by Etienne Pierre-Doray, +1 by Rohit Rao
                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: Ibddd9383518733273b6b973119a1f94c7b3e7c8e
                Gerrit-Change-Number: 7842898
                Gerrit-PatchSet: 26
                Gerrit-Owner: Justin Cohen <justi...@google.com>
                Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
                Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
                Gerrit-Reviewer: Justin Cohen <justi...@google.com>
                Gerrit-Reviewer: Justin Novosad <ju...@google.com>
                Gerrit-Reviewer: Rohit Rao <rohi...@chromium.org>
                open
                diffy
                satisfied_requirement
                Reply all
                Reply to author
                Forward
                0 new messages