Fix fuzzer build with the {Destroy->Unregister}ObjectCmd

Bug: 344963953
Change-Id: I6aae7c130d12739eded6ccbd58d39c1f6a7a4edc
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/197494
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
Commit-Queue: Kai Ninomiya <kainino@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Auto-Submit: Corentin Wallez <cwallez@chromium.org>
diff --git a/src/dawn/fuzzers/lpmfuzz/DawnLPMObjectStore.cpp b/src/dawn/fuzzers/lpmfuzz/DawnLPMObjectStore.cpp
index bb2ac8d..9b1565e 100644
--- a/src/dawn/fuzzers/lpmfuzz/DawnLPMObjectStore.cpp
+++ b/src/dawn/fuzzers/lpmfuzz/DawnLPMObjectStore.cpp
@@ -74,7 +74,7 @@
 /*
  * Consistent hashing inspired map for fuzzer state.
  * If we store the Dawn objects in a hash table mapping FuzzInt -> ObjectId
- * then it would be highly unlikely that any subsequence DestroyObject command
+ * then it would be highly unlikely that any subsequence UnregisterObject command
  * would come up with an ID that would correspond to a valid ObjectId in the
  * hash table.
  *
diff --git a/src/dawn/fuzzers/lpmfuzz/DawnLPMSerializerCustom.cpp b/src/dawn/fuzzers/lpmfuzz/DawnLPMSerializerCustom.cpp
index d199b97..ed5d81e 100644
--- a/src/dawn/fuzzers/lpmfuzz/DawnLPMSerializerCustom.cpp
+++ b/src/dawn/fuzzers/lpmfuzz/DawnLPMSerializerCustom.cpp
@@ -88,9 +88,9 @@
             serializer.SerializeCommand(cmd, provider);
             break;
         }
-        case fuzzing::Command::kDestroyObject: {
-            DestroyObjectCmd cmd;
-            memset(&cmd, 0, sizeof(DestroyObjectCmd));
+        case fuzzing::Command::kUnregisterObject: {
+            UnregisterObjectCmd cmd;
+            memset(&cmd, 0, sizeof(UnregisterObjectCmd));
 
             cmd.objectType =
                 static_cast<ObjectType>(command.destroyobject().objecttype() % kObjectTypes);
diff --git a/src/dawn/fuzzers/lpmfuzz/dawn_custom_lpm.proto b/src/dawn/fuzzers/lpmfuzz/dawn_custom_lpm.proto
index 29dcb85..ed24fb8 100644
--- a/src/dawn/fuzzers/lpmfuzz/dawn_custom_lpm.proto
+++ b/src/dawn/fuzzers/lpmfuzz/dawn_custom_lpm.proto
@@ -36,7 +36,7 @@
     optional bytes code = 2;
 }
 
-message DestroyObject {
+message UnregisterObject {
     required ObjectType objectType = 1;
     required uint32 objectId = 2;
 }