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

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

Issue 2858043004: Support interstitials with no primary button (Closed)
Patch Set: Fix iOS CanGoBack implementation 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/safe_browsing_error_ui.cc
diff --git a/components/security_interstitials/core/safe_browsing_error_ui.cc b/components/security_interstitials/core/safe_browsing_error_ui.cc
index 38566d65e6c5bbeecec6a36cd6b8ddaeb3c4f0bb..7b2ad57b6ee03534da4554929edaa53107a48e41 100644
--- a/components/security_interstitials/core/safe_browsing_error_ui.cc
+++ b/components/security_interstitials/core/safe_browsing_error_ui.cc
@@ -95,6 +95,7 @@ void SafeBrowsingErrorUI::PopulateStringsForHTML(
l10n_util::GetStringUTF16(IDS_SAFEBROWSING_OVERRIDABLE_SAFETY_BUTTON));
load_time_data->SetBoolean("overridable",
!display_options_.is_proceed_anyway_disabled);
+ load_time_data->SetBoolean("hide_primary_button", !controller_->CanGoBack());
switch (interstitial_reason_) {
case SB_REASON_MALWARE:
« no previous file with comments | « components/security_interstitials/core/controller_client.h ('k') | components/security_interstitials/core/ssl_error_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698