| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 // | 4 // |
| 5 // Implementation of the SafeBrowsingBlockingPage class. | 5 // Implementation of the SafeBrowsingBlockingPage class. |
| 6 | 6 |
| 7 #include "ios/chrome/browser/safe_browsing/safe_browsing_blocking_page.h" | 7 #include "ios/chrome/browser/safe_browsing/safe_browsing_blocking_page.h" |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #include "components/prefs/pref_service.h" | 25 #include "components/prefs/pref_service.h" |
| 26 #include "components/security_interstitials/core/controller_client.h" | 26 #include "components/security_interstitials/core/controller_client.h" |
| 27 #include "ios/chrome/browser/application_context.h" | 27 #include "ios/chrome/browser/application_context.h" |
| 28 #include "ios/chrome/browser/chrome_url_constants.h" | 28 #include "ios/chrome/browser/chrome_url_constants.h" |
| 29 #include "ios/chrome/browser/interstitials/ios_chrome_controller_client.h" | 29 #include "ios/chrome/browser/interstitials/ios_chrome_controller_client.h" |
| 30 #include "ios/chrome/browser/interstitials/ios_chrome_metrics_helper.h" | 30 #include "ios/chrome/browser/interstitials/ios_chrome_metrics_helper.h" |
| 31 #include "ios/chrome/browser/pref_names.h" | 31 #include "ios/chrome/browser/pref_names.h" |
| 32 #include "ios/chrome/browser/safe_browsing/ui_manager.h" | 32 #include "ios/chrome/browser/safe_browsing/ui_manager.h" |
| 33 #include "ios/chrome/grit/ios_strings.h" | 33 #include "ios/chrome/grit/ios_strings.h" |
| 34 #include "ios/web/public/interstitials/web_interstitial.h" | 34 #include "ios/web/public/interstitials/web_interstitial.h" |
| 35 #include "ios/web/public/navigation_manager.h" | 35 #import "ios/web/public/navigation_manager.h" |
| 36 #include "ios/web/public/web_state/web_state.h" | |
| 37 #include "ios/web/public/web_state/web_state.h" | 36 #include "ios/web/public/web_state/web_state.h" |
| 38 #include "ios/web/public/web_thread.h" | 37 #include "ios/web/public/web_thread.h" |
| 39 #include "net/base/escape.h" | 38 #include "net/base/escape.h" |
| 40 #include "ui/base/l10n/l10n_util.h" | 39 #include "ui/base/l10n/l10n_util.h" |
| 41 | 40 |
| 42 namespace safe_browsing { | 41 namespace safe_browsing { |
| 43 | 42 |
| 44 namespace { | 43 namespace { |
| 45 | 44 |
| 46 // For malware interstitial pages, we link the problematic URL to Google's | 45 // For malware interstitial pages, we link the problematic URL to Google's |
| (...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 590 } else { | 589 } else { |
| 591 load_time_data->SetString( | 590 load_time_data->SetString( |
| 592 "finalParagraph", | 591 "finalParagraph", |
| 593 l10n_util::GetStringUTF16(IDS_IOS_PHISHING_V3_PROCEED_PARAGRAPH)); | 592 l10n_util::GetStringUTF16(IDS_IOS_PHISHING_V3_PROCEED_PARAGRAPH)); |
| 594 } | 593 } |
| 595 | 594 |
| 596 load_time_data->SetBoolean(security_interstitials::kDisplayCheckBox, false); | 595 load_time_data->SetBoolean(security_interstitials::kDisplayCheckBox, false); |
| 597 } | 596 } |
| 598 | 597 |
| 599 } // namespace safe_browsing | 598 } // namespace safe_browsing |
| OLD | NEW |