Index: mojo/public/cpp/bindings/lib/validation_errors.cc |
diff --git a/mojo/public/cpp/bindings/lib/validation_errors.cc b/mojo/public/cpp/bindings/lib/validation_errors.cc |
index afa577df1553c99428d2848a18f67720413fbe6c..0af7790ea192d7a153dede77207a5d4c08803439 100644 |
--- a/mojo/public/cpp/bindings/lib/validation_errors.cc |
+++ b/mojo/public/cpp/bindings/lib/validation_errors.cc |
@@ -86,7 +86,8 @@ SerializationWarningObserverForTesting:: |
} |
bool IsNonNullableValidationEnabled() { |
- return g_validation_error_observer || g_serialization_warning_observer; |
+ // TODO(yzshen): Remove this function and all call sites. |
+ return true; |
} |
} // namespace internal |