Index: net/extras/sqlite/sqlite_channel_id_store.cc |
diff --git a/net/extras/sqlite/sqlite_channel_id_store.cc b/net/extras/sqlite/sqlite_channel_id_store.cc |
index 70ca8d979871acca79ac4c7e2b835e28da72bdb4..7b36b9c90701f54e073a911b163fd348210f11ee 100644 |
--- a/net/extras/sqlite/sqlite_channel_id_store.cc |
+++ b/net/extras/sqlite/sqlite_channel_id_store.cc |
@@ -17,6 +17,7 @@ |
#include "base/macros.h" |
#include "base/metrics/histogram_macros.h" |
#include "base/sequenced_task_runner.h" |
+#include "base/stl_util.h" |
#include "base/strings/string_util.h" |
#include "crypto/ec_private_key.h" |
#include "net/cert/asn1_util.h" |
@@ -526,12 +527,8 @@ void SQLiteChannelIDStore::Backend::PrunePendingOperationsForDeletes( |
for (PendingOperationsList::iterator it = pending_.begin(); |
it != pending_.end();) { |
- bool remove = |
- std::find(server_identifiers.begin(), server_identifiers.end(), |
- (*it)->channel_id().server_identifier()) != |
- server_identifiers.end(); |
- |
- if (remove) { |
+ if (base::ContainsValue(server_identifiers, |
+ (*it)->channel_id().server_identifier())) { |
std::unique_ptr<PendingOperation> po(*it); |
it = pending_.erase(it); |
--num_pending_; |