Index: util/misc/uuid.cc |
diff --git a/util/misc/uuid.cc b/util/misc/uuid.cc |
index 1af79d83b7bfa87bd9a32135aa83cc3d253cd700..a7ba4a8f48eaa4c59e5e6cc032b380f77b4182ef 100644 |
--- a/util/misc/uuid.cc |
+++ b/util/misc/uuid.cc |
@@ -41,6 +41,10 @@ UUID::UUID(const uint8_t* bytes) { |
InitializeFromBytes(bytes); |
} |
+bool UUID::operator==(const UUID& that) const { |
+ return memcmp(this, &that, sizeof(UUID)) == 0; |
+} |
+ |
void UUID::InitializeFromBytes(const uint8_t* bytes) { |
memcpy(this, bytes, sizeof(*this)); |
data_1 = base::NetToHost32(data_1); |