Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Side by Side Diff: chrome/renderer/safe_browsing/features.cc

Issue 2479093002: Migrate more files to histogram_macros.h from histogram.h. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include "chrome/renderer/safe_browsing/features.h" 5 #include "chrome/renderer/safe_browsing/features.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram_macros.h"
9 9
10 namespace safe_browsing { 10 namespace safe_browsing {
11 11
12 const size_t FeatureMap::kMaxFeatureMapSize = 10000; 12 const size_t FeatureMap::kMaxFeatureMapSize = 10000;
13 13
14 FeatureMap::FeatureMap() {} 14 FeatureMap::FeatureMap() {}
15 FeatureMap::~FeatureMap() {} 15 FeatureMap::~FeatureMap() {}
16 16
17 bool FeatureMap::AddBooleanFeature(const std::string& name) { 17 bool FeatureMap::AddBooleanFeature(const std::string& name) {
18 return AddRealFeature(name, 1.0); 18 return AddRealFeature(name, 1.0);
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 const char kPageNumScriptTagsGTSix[] = "PageNumScriptTags>6"; 79 const char kPageNumScriptTagsGTSix[] = "PageNumScriptTags>6";
80 80
81 // Other DOM HTML features 81 // Other DOM HTML features
82 const char kPageImgOtherDomainFreq[] = "PageImgOtherDomainFreq"; 82 const char kPageImgOtherDomainFreq[] = "PageImgOtherDomainFreq";
83 83
84 // Page term features 84 // Page term features
85 const char kPageTerm[] = "PageTerm="; 85 const char kPageTerm[] = "PageTerm=";
86 86
87 } // namespace features 87 } // namespace features
88 } // namespace safe_browsing 88 } // namespace safe_browsing
OLDNEW
« no previous file with comments | « chrome/renderer/plugins/plugin_uma.cc ('k') | chrome/renderer/safe_browsing/phishing_classifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698