Add monitoring disclosure infobars
This adds infobars on Desktop and Android for showing the known
monitoring disclosure.
The infobar is shown once every 7 days. The last dismissal time is
tracked in a pref on Android (to carry over across sessions) and
in-memory on Desktop (since sessions are longer -- this means on
Desktop we will always show on startup).
These currently link to chrome://monitoring (implemented in
crrev.com/c/1913715), and are triggered on visiting
https://badssl.com/test/monitoring-disclosure/ (to be replaced by
checking for the new monitoring CertStatus based on CRLSets).
Screenshots
- Desktop: https://drive.google.com/file/d/1AF2uCGfYfrQHJbLGjIX132xR0n8GqG5R/view
- Android: https://drive.google.com/file/d/1FeDSEQNasHfPdc6bbkprm_wOaMZcCDQl/view
Bug: 1014711
Change-Id: I31e9d5be6da7d87dfda2f5c739f1b94df1c8a0f0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1918188
Reviewed-by: Gabriel Charette <[email protected]>
Reviewed-by: Evan Stade <[email protected]>
Reviewed-by: Andrew Grieve <[email protected]>
Reviewed-by: Mustafa Emre Acer <[email protected]>
Commit-Queue: Christopher Thompson <[email protected]>
Cr-Commit-Position: refs/heads/master@{#719276}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index 6360e555d..e3daafd 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -208,6 +208,7 @@
#include "chrome/browser/android/usage_stats/usage_stats_bridge.h"
#include "chrome/browser/geolocation/geolocation_permission_context_android.h"
#include "chrome/browser/media/android/cdm/media_drm_origin_id_manager.h"
+#include "chrome/browser/ssl/known_interception_disclosure_infobar_delegate.h"
#include "components/cdm/browser/media_drm_storage_impl.h"
#include "components/feed/buildflags.h"
#include "components/ntp_snippets/category_rankers/click_based_category_ranker.h"
@@ -886,6 +887,7 @@
ntp_tiles::PopularSitesImpl::RegisterProfilePrefs(registry);
variations::VariationsService::RegisterProfilePrefs(registry);
GeolocationPermissionContextAndroid::RegisterProfilePrefs(registry);
+ KnownInterceptionDisclosureInfoBarDelegate::RegisterProfilePrefs(registry);
PartnerBookmarksShim::RegisterProfilePrefs(registry);
RecentTabsPagePrefs::RegisterProfilePrefs(registry);
usage_stats::UsageStatsBridge::RegisterProfilePrefs(registry);