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 79f93eb31d8a2dfce23b215c2bbeab572469a583..4db845596536cbfc276ad2497104c09ec5d1e6d5 100644 |
--- a/mojo/public/cpp/bindings/lib/validation_errors.cc |
+++ b/mojo/public/cpp/bindings/lib/validation_errors.cc |
@@ -66,8 +66,9 @@ void ReportValidationError(ValidationError error, const char* description) { |
} |
} |
-ValidationErrorObserverForTesting::ValidationErrorObserverForTesting() |
- : last_error_(VALIDATION_ERROR_NONE) { |
+ValidationErrorObserverForTesting::ValidationErrorObserverForTesting( |
+ const Callback<void()>& callback) |
+ : last_error_(VALIDATION_ERROR_NONE), callback_(callback) { |
MOJO_DCHECK(!g_validation_error_observer); |
g_validation_error_observer = this; |
} |