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

Unified Diff: ios/chrome/browser/ssl/ios_ssl_blocking_page.mm

Issue 2424643002: [ios] Removed remaining code for URL spoofing interstitials. (Closed)
Patch Set: Removed reference to Safe Browsing. Created 4 years, 2 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
« no previous file with comments | « ios/chrome/app/strings/ios_strings.grd ('k') | ios/public/provider/chrome/browser/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ssl/ios_ssl_blocking_page.mm
diff --git a/ios/chrome/browser/ssl/ios_ssl_blocking_page.mm b/ios/chrome/browser/ssl/ios_ssl_blocking_page.mm
index e349c12960a5089e14498f3409c1d3a2702a916a..bc4a2b2184908ce8ce711b125b356de22d51e2bd 100644
--- a/ios/chrome/browser/ssl/ios_ssl_blocking_page.mm
+++ b/ios/chrome/browser/ssl/ios_ssl_blocking_page.mm
@@ -16,8 +16,6 @@
#include "ios/chrome/browser/browser_state/chrome_browser_state.h"
#include "ios/chrome/browser/interstitials/ios_chrome_controller_client.h"
#include "ios/chrome/browser/interstitials/ios_chrome_metrics_helper.h"
-#include "ios/chrome/grit/ios_strings.h"
-#include "ios/public/provider/chrome/browser/browser_constants.h"
#import "ios/web/public/navigation_item.h"
#include "ios/web/public/ssl_status.h"
#include "ios/web/public/web_state/web_state.h"
@@ -138,27 +136,6 @@ void IOSSSLBlockingPage::AfterShow() {
void IOSSSLBlockingPage::PopulateInterstitialStrings(
base::DictionaryValue* load_time_data) const {
ssl_error_ui_->PopulateStringsForHTML(load_time_data);
- // Spoofing attempts have a custom message on iOS.
- // This code will no longer be necessary once UIWebView is gone.
- if (ssl_info_.cert->subject().GetDisplayName() == ios::kSpoofingAttemptFlag) {
- load_time_data->SetString(
- "errorCode", base::string16(base::ASCIIToUTF16("Unverified URL")));
- load_time_data->SetString(
- "tabTitle", l10n_util::GetStringUTF16(
- IDS_IOS_INTERSTITIAL_HEADING_SPOOFING_ATTEMPT_ERROR));
- load_time_data->SetString(
- "heading", l10n_util::GetStringUTF16(
- IDS_IOS_INTERSTITIAL_HEADING_SPOOFING_ATTEMPT_ERROR));
- load_time_data->SetString(
- "primaryParagraph",
- l10n_util::GetStringUTF16(
- IDS_IOS_INTERSTITIAL_SUMMARY_SPOOFING_ATTEMPT_ERROR));
- load_time_data->SetString(
- "explanationParagraph",
- l10n_util::GetStringUTF16(
- IDS_IOS_INTERSTITIAL_DETAILS_SPOOFING_ATTEMPT_ERROR));
- load_time_data->SetString("finalParagraph", base::string16());
- }
}
// This handles the commands sent from the interstitial JavaScript.
« no previous file with comments | « ios/chrome/app/strings/ios_strings.grd ('k') | ios/public/provider/chrome/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698