| Index: chrome/browser/safe_browsing/safe_browsing_store_file.cc
|
| diff --git a/chrome/browser/safe_browsing/safe_browsing_store_file.cc b/chrome/browser/safe_browsing/safe_browsing_store_file.cc
|
| index b58d961ef8fb91e58279bde6ff93cf0154f525c4..55dd5dbb4a5b1fadf652517fa61145202ad50996 100644
|
| --- a/chrome/browser/safe_browsing/safe_browsing_store_file.cc
|
| +++ b/chrome/browser/safe_browsing/safe_browsing_store_file.cc
|
| @@ -394,10 +394,6 @@ bool prefix_bounder(SBPrefix val, const T& elt) {
|
| // aggregate operations on same.
|
| class StateInternal {
|
| public:
|
| - explicit StateInternal(const std::vector<SBAddFullHash>& pending_adds)
|
| - : add_full_hashes_(pending_adds.begin(), pending_adds.end()) {
|
| - }
|
| -
|
| StateInternal() {}
|
|
|
| // Append indicated amount of data from |fp|.
|
| @@ -736,9 +732,8 @@ bool SafeBrowsingStoreFile::GetAddFullHashes(
|
| }
|
|
|
| bool SafeBrowsingStoreFile::WriteAddHash(int32 chunk_id,
|
| - base::Time receive_time,
|
| const SBFullHash& full_hash) {
|
| - add_hashes_.push_back(SBAddFullHash(chunk_id, receive_time, full_hash));
|
| + add_hashes_.push_back(SBAddFullHash(chunk_id, full_hash));
|
| return true;
|
| }
|
|
|
| @@ -872,7 +867,6 @@ bool SafeBrowsingStoreFile::FinishChunk() {
|
| }
|
|
|
| bool SafeBrowsingStoreFile::DoUpdate(
|
| - const std::vector<SBAddFullHash>& pending_adds,
|
| safe_browsing::PrefixSetBuilder* builder,
|
| std::vector<SBAddFullHash>* add_full_hashes_result) {
|
| DCHECK(file_.get() || empty_);
|
| @@ -896,7 +890,7 @@ bool SafeBrowsingStoreFile::DoUpdate(
|
| std::max(static_cast<int>(update_size / 1024), 1));
|
|
|
| // Chunk updates to integrate.
|
| - StateInternal new_state(pending_adds);
|
| + StateInternal new_state;
|
|
|
| // Read update chunks.
|
| for (int i = 0; i < chunks_written_; ++i) {
|
| @@ -1136,13 +1130,12 @@ bool SafeBrowsingStoreFile::DoUpdate(
|
| }
|
|
|
| bool SafeBrowsingStoreFile::FinishUpdate(
|
| - const std::vector<SBAddFullHash>& pending_adds,
|
| safe_browsing::PrefixSetBuilder* builder,
|
| std::vector<SBAddFullHash>* add_full_hashes_result) {
|
| DCHECK(builder);
|
| DCHECK(add_full_hashes_result);
|
|
|
| - if (!DoUpdate(pending_adds, builder, add_full_hashes_result)) {
|
| + if (!DoUpdate(builder, add_full_hashes_result)) {
|
| CancelUpdate();
|
| return false;
|
| }
|
|
|