Index: content/child/resource_dispatcher.cc |
diff --git a/content/child/resource_dispatcher.cc b/content/child/resource_dispatcher.cc |
index 5ca85c2d3a58d2a71c43fe1bdef118b7725c9643..2e79994aba65adbaa2bfb7da08bbaeab34cab78a 100644 |
--- a/content/child/resource_dispatcher.cc |
+++ b/content/child/resource_dispatcher.cc |
@@ -8,6 +8,7 @@ |
#include <utility> |
+#include "base/atomic_sequence_num.h" |
#include "base/bind.h" |
#include "base/compiler_specific.h" |
#include "base/debug/alias.h" |
@@ -67,8 +68,8 @@ int MakeRequestID() { |
// NOTE: The resource_dispatcher_host also needs probably unique |
// request_ids, so they count down from -2 (-1 is a special we're |
// screwed value), while the renderer process counts up. |
- static int next_request_id = 0; |
- return next_request_id++; |
+ static base::StaticAtomicSequenceNumber sequence; |
+ return sequence.GetNext(); // We start at zero. |
} |
void CheckSchemeForReferrerPolicy(const ResourceRequest& request) { |