Index: content/browser/download/base_file.cc |
diff --git a/content/browser/download/base_file.cc b/content/browser/download/base_file.cc |
index f7d045d29863b2a7b79345172fcf170fb346e55d..456454814c1427c9f15f78cc6ae197cb53c121c1 100644 |
--- a/content/browser/download/base_file.cc |
+++ b/content/browser/download/base_file.cc |
@@ -455,9 +455,9 @@ bool BaseFile::SetHashState(const std::string& hash_state_bytes) { |
return false; |
Pickle hash_state(hash_state_bytes.c_str(), hash_state_bytes.size()); |
- void* data_iterator = NULL; |
+ PickleIterator data_iterator(hash_state); |
- return secure_hash_->Deserialize(&data_iterator, &hash_state); |
+ return secure_hash_->Deserialize(&data_iterator); |
} |
bool BaseFile::IsEmptyHash(const std::string& hash) { |