| Index: components/safe_browsing/browser/threat_details.cc
|
| diff --git a/components/safe_browsing/browser/threat_details.cc b/components/safe_browsing/browser/threat_details.cc
|
| index 4a75c4ca9f5d7ac6d4316503937313de78206037..39b787677e8dc13a657ae7a9b90abedff7e79900 100644
|
| --- a/components/safe_browsing/browser/threat_details.cc
|
| +++ b/components/safe_browsing/browser/threat_details.cc
|
| @@ -72,12 +72,12 @@ ClientSafeBrowsingReportRequest::ReportType GetReportTypeFromSBThreatType(
|
| return ClientSafeBrowsingReportRequest::URL_MALWARE;
|
| case SB_THREAT_TYPE_URL_UNWANTED:
|
| return ClientSafeBrowsingReportRequest::URL_UNWANTED;
|
| - case SB_THREAT_TYPE_CLIENT_SIDE_PHISHING_URL:
|
| - return ClientSafeBrowsingReportRequest::CLIENT_SIDE_PHISHING_URL;
|
| - case SB_THREAT_TYPE_CLIENT_SIDE_MALWARE_URL:
|
| - return ClientSafeBrowsingReportRequest::CLIENT_SIDE_MALWARE_URL;
|
| - case SB_THREAT_TYPE_PASSWORD_PROTECTION_PHISHING_URL:
|
| - return ClientSafeBrowsingReportRequest::PASSWORD_PROTECTION_PHISHING_URL;
|
| + case SB_THREAT_TYPE_URL_CLIENT_SIDE_PHISHING:
|
| + return ClientSafeBrowsingReportRequest::URL_CLIENT_SIDE_PHISHING;
|
| + case SB_THREAT_TYPE_URL_CLIENT_SIDE_MALWARE:
|
| + return ClientSafeBrowsingReportRequest::URL_CLIENT_SIDE_MALWARE;
|
| + case SB_THREAT_TYPE_URL_PASSWORD_PROTECTION_PHISHING:
|
| + return ClientSafeBrowsingReportRequest::URL_PASSWORD_PROTECTION_PHISHING;
|
| default: // Gated by SafeBrowsingBlockingPage::ShouldReportThreatDetails.
|
| NOTREACHED() << "We should not send report for threat type "
|
| << threat_type;
|
| @@ -361,7 +361,7 @@ void ThreatDetails::StartCollection() {
|
| report_->set_type(GetReportTypeFromSBThreatType(resource_.threat_type));
|
| }
|
|
|
| - if (resource_.threat_type == SB_THREAT_TYPE_PASSWORD_PROTECTION_PHISHING_URL)
|
| + if (resource_.threat_type == SB_THREAT_TYPE_URL_PASSWORD_PROTECTION_PHISHING)
|
| report_->set_token(resource_.token);
|
|
|
| GURL referrer_url;
|
|
|