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

Unified Diff: net/http/disk_cache_based_quic_server_info.cc

Issue 2652893006: Releases DiskCacheBasedQuicServerInfo::|new_data_| and |pending_write_data_| (Closed)
Patch Set: use STLClearObject instead Created 3 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/disk_cache_based_quic_server_info.cc
diff --git a/net/http/disk_cache_based_quic_server_info.cc b/net/http/disk_cache_based_quic_server_info.cc
index 6ef54eb06ce68b7ca71fff7df867046c97040c87..76f23e2fd08a356df87094dc54d3254566e8c1f9 100644
--- a/net/http/disk_cache_based_quic_server_info.cc
+++ b/net/http/disk_cache_based_quic_server_info.cc
@@ -9,6 +9,7 @@
#include "base/callback_helpers.h"
#include "base/logging.h"
#include "base/metrics/histogram_macros.h"
+#include "base/stl_util.h"
#include "net/base/completion_callback.h"
#include "net/base/io_buffer.h"
#include "net/base/net_errors.h"
@@ -158,7 +159,7 @@ void DiskCacheBasedQuicServerInfo::PersistInternal() {
new_data_ = Serialize();
} else {
new_data_ = pending_write_data_;
- pending_write_data_.clear();
+ base::STLClearObject(&pending_write_data_);
}
RecordQuicServerInfoStatus(QUIC_SERVER_INFO_PERSIST);
@@ -390,7 +391,7 @@ int DiskCacheBasedQuicServerInfo::DoSetDone() {
if (entry_)
entry_->Close();
entry_ = NULL;
- new_data_.clear();
+ base::STLClearObject(&new_data_);
state_ = NONE;
return OK;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698