[reland][privacy sandbox settings] Handle notice dismiss in web UI
Dismissing the notice was handled in the dialog view. The action
didn't go through the handler pipeline and didn't trigger HaTS. It also
recorded kNoticeClosedNoAction as well as kNoticeDismiss.
Handle pressing ESC in the web UI instead to go through the same path as
other user actions.
CL was reverted because new interactive tests are flaky on ChromeOS and
Wayland:
https://chromium-review.googlesource.com/c/chromium/src/+/3587187
Disable them on ChromeOS and Wayland for now.
Bug: 1312042
Change-Id: I05b96759284f845c29022fa31e4b51f5e82a125a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3593256
Reviewed-by: Theodore Olsauskas-Warren <[email protected]>
Commit-Queue: Olesia Marukhno <[email protected]>
Cr-Commit-Position: refs/heads/main@{#994088}
diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn
index e399fd1..e5a7a61 100644
--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -7826,6 +7826,8 @@
"hid/mock_hid_device_observer.h",
"notifications/notification_test_util.cc",
"notifications/notification_test_util.h",
+ "privacy_sandbox/mock_privacy_sandbox_service.cc",
+ "privacy_sandbox/mock_privacy_sandbox_service.h",
"profile_resetter/profile_resetter_test_base.cc",
"profile_resetter/profile_resetter_test_base.h",
"sessions/app_session_service_test_helper.cc",