| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
In general, LGTM.
Should we add an end-to-end test for privacy filtering + json conversion?
/* anonymize= */ false);Why is this change necessary? Does this test break with anonymize=true?
using Slice = std::string;nit: perhaps we can remove this alias now, since we don't make distinction between slices/other strings in the code anyway?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
In general, LGTM.
Should we add an end-to-end test for privacy filtering + json conversion?
Done for end-to-end test.
/* anonymize= */ false);Why is this change necessary? Does this test break with anonymize=true?
Yes and no.
Calling RequestTraceWithHeapDump(/* anonymize= */ true) does break org.chromium.android_webview.test.HeapProfilingTest#testModeBrowserDynamicPseudo because heap profiling data is filtered out.
RequestTraceWithHeapDump() is always called with `anonymize = false` except in this test though, so it's weird to test it that way.
nit: perhaps we can remove this alias now, since we don't make distinction between slices/other strings in the code anyway?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
/* anonymize= */ false);Etienne Pierre-DorayWhy is this change necessary? Does this test break with anonymize=true?
Yes and no.
Calling RequestTraceWithHeapDump(/* anonymize= */ true) does break org.chromium.android_webview.test.HeapProfilingTest#testModeBrowserDynamicPseudo because heap profiling data is filtered out.RequestTraceWithHeapDump() is always called with `anonymize = false` except in this test though, so it's weird to test it that way.
Acknowledged
IN_PROC_BROWSER_TEST_F(SystemTracingEndToEndBrowserTest,nit: Since it's using the custom backend, and not system tracing, it should go into `TracingEndToEndBrowserTest` rather than `SystemTracingEndToEndBrowserTest`.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
+fdoray@ for base/test
+joenotcharles@ for components/heap_profiling
+dtapuska@ for content/public
IN_PROC_BROWSER_TEST_F(SystemTracingEndToEndBrowserTest,nit: Since it's using the custom backend, and not system tracing, it should go into `TracingEndToEndBrowserTest` rather than `SystemTracingEndToEndBrowserTest`.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
bool privacy_filtering_enabled = false) override;I realize this is moving a default initialized virtual over, but this is banned in the Google C++ coding guide. See https://google.github.io/styleguide/cppguide.html#Default_Arguments
We should define StartTracing as an inline call in TracingController that invokes the virtual which has two args (with no default).
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
PTAnL
+kerenzhu@ for components/ui_devtools
+ntfschr@ for android_webview/
I realize this is moving a default initialized virtual over, but this is banned in the Google C++ coding guide. See https://google.github.io/styleguide/cppguide.html#Default_Arguments
We should define StartTracing as an inline call in TracingController that invokes the virtual which has two args (with no default).
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
session->SetOnStartCallback([&run_loop] { run_loop.QuitWhenIdle(); });Nit: this could just be `SetOnStartCallback(run_loop.QuitWhenIdleClosure())`
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
session->SetOnStartCallback([&run_loop] { run_loop.QuitWhenIdle(); });Nit: this could just be `SetOnStartCallback(run_loop.QuitWhenIdleClosure())`
Apparently no because SetOnStartCallback takes a std::function (perfetto API)
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[tracing] Support regular privacy filter on json traces
This CL runs privacy filters before JSON conversion. This makes
legacy allow_list redundant, which is removed in follow-up.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |