Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(617)

Unified Diff: components/security_interstitials/core/base_safe_browsing_error_ui.cc

Issue 2890703002: SafeBrowsing: allow WebView to customize the Help Center URL (Closed)
Patch Set: Rebase and fix compile errors, no logic change Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/security_interstitials/core/base_safe_browsing_error_ui.cc
diff --git a/components/security_interstitials/core/base_safe_browsing_error_ui.cc b/components/security_interstitials/core/base_safe_browsing_error_ui.cc
index 18be042920245bca811baecc8a5a63929e4ed946..127f5bc9c0ad10b149d0dc9e09ef0104c6d1bbe6 100644
--- a/components/security_interstitials/core/base_safe_browsing_error_ui.cc
+++ b/components/security_interstitials/core/base_safe_browsing_error_ui.cc
@@ -24,4 +24,35 @@ BaseSafeBrowsingErrorUI::BaseSafeBrowsingErrorUI(
BaseSafeBrowsingErrorUI::~BaseSafeBrowsingErrorUI() {}
+BaseSafeBrowsingErrorUI::SBErrorDisplayOptions::SBErrorDisplayOptions(
+ bool is_main_frame_load_blocked,
+ bool is_extended_reporting_opt_in_allowed,
+ bool is_off_the_record,
+ bool is_extended_reporting_enabled,
+ bool is_scout_reporting_enabled,
+ bool is_proceed_anyway_disabled,
+ bool is_resource_cancellable,
+ const std::string& help_center_article_link)
+ : is_main_frame_load_blocked(is_main_frame_load_blocked),
+ is_extended_reporting_opt_in_allowed(
+ is_extended_reporting_opt_in_allowed),
+ is_off_the_record(is_off_the_record),
+ is_extended_reporting_enabled(is_extended_reporting_enabled),
+ is_scout_reporting_enabled(is_scout_reporting_enabled),
+ is_proceed_anyway_disabled(is_proceed_anyway_disabled),
+ is_resource_cancellable(is_resource_cancellable),
+ help_center_article_link(help_center_article_link) {}
+
+BaseSafeBrowsingErrorUI::SBErrorDisplayOptions::SBErrorDisplayOptions(
+ const BaseSafeBrowsingErrorUI::SBErrorDisplayOptions& other)
+ : is_main_frame_load_blocked(other.is_main_frame_load_blocked),
+ is_extended_reporting_opt_in_allowed(
+ other.is_extended_reporting_opt_in_allowed),
+ is_off_the_record(other.is_off_the_record),
+ is_extended_reporting_enabled(other.is_extended_reporting_enabled),
+ is_scout_reporting_enabled(other.is_scout_reporting_enabled),
+ is_proceed_anyway_disabled(other.is_proceed_anyway_disabled),
+ is_resource_cancellable(other.is_resource_cancellable),
+ help_center_article_link(other.help_center_article_link) {}
+
} // security_interstitials

Powered by Google App Engine
This is Rietveld 408576698