diff --git a/src/dawn/native/Device.cpp b/src/dawn/native/Device.cpp index 39ef97f71a..8acd01f696 100644 --- a/src/dawn/native/Device.cpp +++ b/src/dawn/native/Device.cpp @@ -412,12 +412,6 @@ namespace dawn::native { } void DeviceBase::APIDestroy() { - // TODO(crbug.com/dawn/628) Re-enable once CTS testing is in place and passing. - if (IsToggleEnabled(Toggle::DisallowUnsafeAPIs)) { - ConsumedError(DAWN_VALIDATION_ERROR( - "Explicit device.destroy() is disallowed because it is not fully implemented")); - return; - } Destroy(); } diff --git a/src/dawn/tests/unittests/validation/UnsafeAPIValidationTests.cpp b/src/dawn/tests/unittests/validation/UnsafeAPIValidationTests.cpp index b44d2392c5..371f06c39d 100644 --- a/src/dawn/tests/unittests/validation/UnsafeAPIValidationTests.cpp +++ b/src/dawn/tests/unittests/validation/UnsafeAPIValidationTests.cpp @@ -36,12 +36,6 @@ class UnsafeAPIValidationTest : public ValidationTest { } }; -// Check that explicit user device.destroy() is disallowed as part of unsafe APIs. -// TODO(crbug.com/dawn/628) Remove when CTS testing is in place and passing. -TEST_F(UnsafeAPIValidationTest, ExplicitDeviceDestroy) { - ASSERT_DEVICE_ERROR(device.Destroy(), HasSubstr("Explicit device.destroy() is disallowed")); -} - // Check that pipeline overridable constants are disallowed as part of unsafe APIs. // TODO(dawn:1041) Remove when implementation for all backend is added TEST_F(UnsafeAPIValidationTest, PipelineOverridableConstants) {