| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/safe_browsing/safe_browsing_blocking_page.h" | 7 #include "chrome/browser/safe_browsing/safe_browsing_blocking_page.h" |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 security_interstitials::MetricsHelper::REPORT_PHISHING_ERROR); | 300 security_interstitials::MetricsHelper::REPORT_PHISHING_ERROR); |
| 301 GURL phishing_error_url(kReportPhishingErrorUrl); | 301 GURL phishing_error_url(kReportPhishingErrorUrl); |
| 302 phishing_error_url = google_util::AppendGoogleLocaleParam( | 302 phishing_error_url = google_util::AppendGoogleLocaleParam( |
| 303 phishing_error_url, g_browser_process->GetApplicationLocale()); | 303 phishing_error_url, g_browser_process->GetApplicationLocale()); |
| 304 OpenURLParams params(phishing_error_url, Referrer(), | 304 OpenURLParams params(phishing_error_url, Referrer(), |
| 305 WindowOpenDisposition::CURRENT_TAB, | 305 WindowOpenDisposition::CURRENT_TAB, |
| 306 ui::PAGE_TRANSITION_LINK, false); | 306 ui::PAGE_TRANSITION_LINK, false); |
| 307 web_contents()->OpenURL(params); | 307 web_contents()->OpenURL(params); |
| 308 break; | 308 break; |
| 309 } | 309 } |
| 310 case security_interstitials::CMD_OPEN_WHITEPAPER: { |
| 311 controller()->OpenExtendedReportingWhitepaper(); |
| 312 break; |
| 313 } |
| 310 } | 314 } |
| 311 } | 315 } |
| 312 | 316 |
| 313 void SafeBrowsingBlockingPage::OverrideRendererPrefs( | 317 void SafeBrowsingBlockingPage::OverrideRendererPrefs( |
| 314 content::RendererPreferences* prefs) { | 318 content::RendererPreferences* prefs) { |
| 315 Profile* profile = Profile::FromBrowserContext( | 319 Profile* profile = Profile::FromBrowserContext( |
| 316 web_contents()->GetBrowserContext()); | 320 web_contents()->GetBrowserContext()); |
| 317 renderer_preferences_util::UpdateFromSystemSettings( | 321 renderer_preferences_util::UpdateFromSystemSettings( |
| 318 prefs, profile, web_contents()); | 322 prefs, profile, web_contents()); |
| 319 } | 323 } |
| (...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 763 l10n_util::GetStringFUTF16(IDS_PHISHING_V4_EXPLANATION_PARAGRAPH, | 767 l10n_util::GetStringFUTF16(IDS_PHISHING_V4_EXPLANATION_PARAGRAPH, |
| 764 GetFormattedHostName())); | 768 GetFormattedHostName())); |
| 765 load_time_data->SetString( | 769 load_time_data->SetString( |
| 766 "finalParagraph", | 770 "finalParagraph", |
| 767 l10n_util::GetStringUTF16(IDS_PHISHING_V4_PROCEED_AND_REPORT_PARAGRAPH)); | 771 l10n_util::GetStringUTF16(IDS_PHISHING_V4_PROCEED_AND_REPORT_PARAGRAPH)); |
| 768 | 772 |
| 769 PopulateExtendedReportingOption(load_time_data); | 773 PopulateExtendedReportingOption(load_time_data); |
| 770 } | 774 } |
| 771 | 775 |
| 772 } // namespace safe_browsing | 776 } // namespace safe_browsing |
| OLD | NEW |