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

Unified Diff: third_party/mojo/src/mojo/public/cpp/bindings/binding.h

Issue 1311043003: Update mojo sdk to rev c02a28868825edfa57ab77947b8cb15e741c5598 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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
Index: third_party/mojo/src/mojo/public/cpp/bindings/binding.h
diff --git a/third_party/mojo/src/mojo/public/cpp/bindings/binding.h b/third_party/mojo/src/mojo/public/cpp/bindings/binding.h
index 46095216dfe6a959cf7c559dc89d99e959b64a49..250945a821c4c4fc79f7d34820f0cadd5a63b534 100644
--- a/third_party/mojo/src/mojo/public/cpp/bindings/binding.h
+++ b/third_party/mojo/src/mojo/public/cpp/bindings/binding.h
@@ -7,7 +7,6 @@
#include "mojo/public/c/environment/async_waiter.h"
#include "mojo/public/cpp/bindings/callback.h"
-#include "mojo/public/cpp/bindings/error_handler.h"
#include "mojo/public/cpp/bindings/interface_ptr.h"
#include "mojo/public/cpp/bindings/interface_ptr_info.h"
#include "mojo/public/cpp/bindings/interface_request.h"
@@ -102,9 +101,8 @@ class Binding {
// Tears down the binding, closing the message pipe and leaving the interface
// implementation unbound.
~Binding() {
- if (internal_router_) {
+ if (internal_router_)
Close();
- }
}
// Completes a binding that was constructed with only an interface
@@ -187,19 +185,6 @@ class Binding {
connection_error_handler_ = error_handler;
}
- // Similar to the method above but uses the ErrorHandler interface instead of
- // a callback.
- // NOTE: Deprecated. Please use the method above.
- // TODO(yzshen): Remove this method once all callsites are converted.
- void set_error_handler(ErrorHandler* error_handler) {
- if (error_handler) {
- set_connection_error_handler(
- [error_handler]() { error_handler->OnConnectionError(); });
- } else {
- set_connection_error_handler(Closure());
- }
- }
-
// Returns the interface implementation that was previously specified. Caller
// does not take ownership.
Interface* impl() { return impl_; }

Powered by Google App Engine
This is Rietveld 408576698