| 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;
|
| }
|
|
|