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

Unified Diff: mojo/common/weak_binding_set.h

Issue 1262613005: Remove interface_impl.h and error_handler.h usage from chromium (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 5 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/application/public/cpp/interface_factory.h ('k') | mojo/runner/out_of_process_native_runner.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/common/weak_binding_set.h
diff --git a/mojo/common/weak_binding_set.h b/mojo/common/weak_binding_set.h
index 66a90b1da135d4cd1f408f6755fc519c374a4810..a94e8f4adb05570607647543a39ab10344ccb334 100644
--- a/mojo/common/weak_binding_set.h
+++ b/mojo/common/weak_binding_set.h
@@ -28,17 +28,6 @@ class WeakBindingSet {
error_handler_ = error_handler;
}
- // 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());
- }
- }
-
void AddBinding(Interface* impl, InterfaceRequest<Interface> request) {
auto binding = new WeakBinding<Interface>(impl, request.Pass());
binding->set_connection_error_handler([this]() { OnConnectionError(); });
« no previous file with comments | « mojo/application/public/cpp/interface_factory.h ('k') | mojo/runner/out_of_process_native_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698