Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(285)

Unified Diff: mojo/public/cpp/bindings/lib/validation_errors.h

Issue 2080513002: Deletes mojo::Callback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/public/cpp/bindings/lib/router.h ('k') | mojo/public/cpp/bindings/lib/validation_errors.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/lib/validation_errors.h
diff --git a/mojo/public/cpp/bindings/lib/validation_errors.h b/mojo/public/cpp/bindings/lib/validation_errors.h
index d9dee37478c4b2a311c4be6def1ab05b143498d0..ec0aa2798c28c026ff611e6e37de3886133bb353 100644
--- a/mojo/public/cpp/bindings/lib/validation_errors.h
+++ b/mojo/public/cpp/bindings/lib/validation_errors.h
@@ -5,9 +5,9 @@
#ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_VALIDATION_ERRORS_H_
#define MOJO_PUBLIC_CPP_BINDINGS_LIB_VALIDATION_ERRORS_H_
+#include "base/callback.h"
#include "base/logging.h"
#include "base/macros.h"
-#include "mojo/public/cpp/bindings/callback.h"
#include "mojo/public/cpp/bindings/lib/validation_context.h"
namespace mojo {
@@ -79,7 +79,7 @@ void ReportValidationError(ValidationContext* context,
// validation.
class ValidationErrorObserverForTesting {
public:
- explicit ValidationErrorObserverForTesting(const Callback<void()>& callback);
+ explicit ValidationErrorObserverForTesting(const base::Closure& callback);
~ValidationErrorObserverForTesting();
ValidationError last_error() const { return last_error_; }
@@ -90,7 +90,7 @@ class ValidationErrorObserverForTesting {
private:
ValidationError last_error_;
- Callback<void()> callback_;
+ base::Closure callback_;
DISALLOW_COPY_AND_ASSIGN(ValidationErrorObserverForTesting);
};
« no previous file with comments | « mojo/public/cpp/bindings/lib/router.h ('k') | mojo/public/cpp/bindings/lib/validation_errors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698