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..814ee89ce0037b38ffc2d8a3582fc19b4bca7b47 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. |
@@ -293,6 +296,7 @@ ChannelIDService::ChannelIDService( |
inflight_joins_(0), |
workers_created_(0), |
weak_ptr_factory_(this) { |
+ id_ = g_next_id.GetNext(); |
} |
ChannelIDService::~ChannelIDService() { |