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

Unified Diff: chrome/browser/safe_browsing/client_side_detection_service.cc

Issue 7823004: Convert SHA256_LENGTH from a constant-in-anonymous-enum to a static const. This defines the cons... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 4 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/safe_browsing/client_side_detection_service.cc
===================================================================
--- chrome/browser/safe_browsing/client_side_detection_service.cc (revision 98481)
+++ chrome/browser/safe_browsing/client_side_detection_service.cc (working copy)
@@ -567,7 +567,7 @@
DLOG(ERROR) << "Invalid bad subnet size: " << size;
continue;
}
- if (model.bad_subnet(i).prefix().size() != crypto::SHA256_LENGTH) {
+ if (model.bad_subnet(i).prefix().size() != crypto::kSHA256Length) {
DLOG(ERROR) << "Invalid bad subnet prefix length: "
<< model.bad_subnet(i).prefix().size();
continue;

Powered by Google App Engine
This is Rietveld 408576698