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

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

Issue 2890: Include chrome/browser/SConscript in Linux build.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 12 years, 3 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
« no previous file with comments | « chrome/browser/printing/page_setup.h ('k') | chrome/browser/safe_browsing/chunk_range.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/safe_browsing/bloom_filter.cc
===================================================================
--- chrome/browser/safe_browsing/bloom_filter.cc (revision 2262)
+++ chrome/browser/safe_browsing/bloom_filter.cc (working copy)
@@ -4,14 +4,13 @@
#include "chrome/browser/safe_browsing/bloom_filter.h"
-#include <windows.h>
+#include <string.h>
-
BloomFilter::BloomFilter(int bit_size) {
byte_size_ = bit_size / 8 + 1;
bit_size_ = byte_size_ * 8;
data_.reset(new char[byte_size_]);
- ZeroMemory(data_.get(), byte_size_);
+ memset(data_.get(), 0, byte_size_);
}
BloomFilter::BloomFilter(char* data, int size) {
« no previous file with comments | « chrome/browser/printing/page_setup.h ('k') | chrome/browser/safe_browsing/chunk_range.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698