Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2949)

Unified Diff: cc/surfaces/surface_id_allocator.cc

Issue 2494833002: Revert of Replaced cc::SurfaceId::nonce_ with base::UnguessableToken (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/surfaces/surface_id.h ('k') | cc/surfaces/surface_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface_id_allocator.cc
diff --git a/cc/surfaces/surface_id_allocator.cc b/cc/surfaces/surface_id_allocator.cc
index 24bcfbd46f95e9e95a7af99b6c8769ab8dbb38cd..af4d5932df723a6da76dc79377e0430248785966 100644
--- a/cc/surfaces/surface_id_allocator.cc
+++ b/cc/surfaces/surface_id_allocator.cc
@@ -7,7 +7,6 @@
#include <stdint.h>
#include "base/rand_util.h"
-#include "base/unguessable_token.h"
namespace cc {
@@ -17,7 +16,8 @@
}
LocalFrameId SurfaceIdAllocator::GenerateId() {
- LocalFrameId id(next_id_, base::UnguessableToken::Create());
+ uint64_t nonce = base::RandUint64();
+ LocalFrameId id(next_id_, nonce);
next_id_++;
return id;
}
« no previous file with comments | « cc/surfaces/surface_id.h ('k') | cc/surfaces/surface_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698