AW UMA: support kForceEnableMetricsReporting debugging flag
This adds support for the kForceEnableMetricsReporting, but should not change behavior unless this flag is specified. When the flag is specified, override sampling, user consent, and app consent to always upload metrics logs. This does not aim to support the flag for other embedders, only WebView. Bug: 994418 Test: build/android/adb_system_webview_command_line --force-enable-metrics-reporting Test: out/Default/bin/system_webview_shell_apk launch https://example.com/ Test: Verify AwMetricsLogUploader#uploadLog is consistently called Test: run_android_webview_unittests -f AwMetricsServiceClientTest.TestCanForceEnableMetrics Change-Id: I2a8804ad26a1e7d55cb0e9fdf9ef0b58f4bbfc3f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1797025Reviewed-by:Changwan Ryu <changwan@chromium.org> Reviewed-by:
Alexei Svitkine <asvitkine@chromium.org> Commit-Queue: Nate Fischer <ntfschr@chromium.org> Cr-Commit-Position: refs/heads/master@{#695692}
Showing
Please register or sign in to comment