Index: chrome/browser/safe_browsing/browser_feature_extractor.cc |
diff --git a/chrome/browser/safe_browsing/browser_feature_extractor.cc b/chrome/browser/safe_browsing/browser_feature_extractor.cc |
index 7663551e203ac55b0cff8b0b35394373b5973c2a..1b11a7f4948a05a3200a3f1e96b274e7bfeb344c 100644 |
--- a/chrome/browser/safe_browsing/browser_feature_extractor.cc |
+++ b/chrome/browser/safe_browsing/browser_feature_extractor.cc |
@@ -28,7 +28,7 @@ |
namespace safe_browsing { |
-BrowseInfo::BrowseInfo() {} |
+BrowseInfo::BrowseInfo() : http_status_code(0) {} |
BrowseInfo::~BrowseInfo() {} |
@@ -232,7 +232,9 @@ void BrowserFeatureExtractor::ExtractBrowseInfoFeatures( |
static_cast<double>(info.unsafe_resource->threat_type), |
request); |
} |
- |
+ if (info.http_status_code != 0) { |
+ AddFeature(features::kHttpStatusCode, info.http_status_code, request); |
+ } |
} |
void BrowserFeatureExtractor::StartExtractFeatures( |