| Index: net/ssl/channel_id_service.cc
|
| diff --git a/net/ssl/channel_id_service.cc b/net/ssl/channel_id_service.cc
|
| index e17b813cd7334d8baba18582cb941e5f28445e5a..7cae014a2f09c547b2d8f1f33aa2bce7509399e1 100644
|
| --- a/net/ssl/channel_id_service.cc
|
| +++ b/net/ssl/channel_id_service.cc
|
| @@ -8,6 +8,7 @@
|
| #include <limits>
|
| #include <utility>
|
|
|
| +#include "base/atomic_sequence_num.h"
|
| #include "base/bind.h"
|
| #include "base/bind_helpers.h"
|
| #include "base/callback_helpers.h"
|
| @@ -38,6 +39,8 @@ namespace net {
|
|
|
| namespace {
|
|
|
| +base::StaticAtomicSequenceNumber g_next_id;
|
| +
|
| // Used by the GetDomainBoundCertResult histogram to record the final
|
| // outcome of each GetChannelID or GetOrCreateChannelID call.
|
| // Do not re-use values.
|
| @@ -288,12 +291,12 @@ ChannelIDService::ChannelIDService(
|
| const scoped_refptr<base::TaskRunner>& task_runner)
|
| : channel_id_store_(channel_id_store),
|
| task_runner_(task_runner),
|
| + id_(g_next_id.GetNext()),
|
| requests_(0),
|
| key_store_hits_(0),
|
| inflight_joins_(0),
|
| workers_created_(0),
|
| - weak_ptr_factory_(this) {
|
| -}
|
| + weak_ptr_factory_(this) {}
|
|
|
| ChannelIDService::~ChannelIDService() {
|
| STLDeleteValues(&inflight_);
|
|
|