diff options
author | bryner@chromium.org <bryner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-29 08:00:45 +0000 |
---|---|---|
committer | bryner@chromium.org <bryner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-29 08:00:45 +0000 |
commit | da549b9a25b326c0ddc8e43365b2f6a66de750a1 (patch) | |
tree | 04a30e2ca657e7a922eb0481890a0f3bc9a9cf47 /chrome/browser/safe_browsing/browser_feature_extractor.cc | |
parent | 089e30358bb6378ddd6b1edaa64c1049c4c21392 (diff) | |
download | chromium_src-da549b9a25b326c0ddc8e43365b2f6a66de750a1.zip chromium_src-da549b9a25b326c0ddc8e43365b2f6a66de750a1.tar.gz chromium_src-da549b9a25b326c0ddc8e43365b2f6a66de750a1.tar.bz2 |
Include the HTTP status code as a feature in the ClientPhishingRequest.
BUG=none
TEST=BrowserFeatureExtractorTest
Review URL: http://codereview.chromium.org/8400050
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107867 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/safe_browsing/browser_feature_extractor.cc')
-rw-r--r-- | chrome/browser/safe_browsing/browser_feature_extractor.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/safe_browsing/browser_feature_extractor.cc b/chrome/browser/safe_browsing/browser_feature_extractor.cc index a5e2e6b..5dd4186 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( |