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

Unified Diff: mojo/public/js/lib/interface_endpoint_client.js

Issue 2840333002: Add encounteredError() to AssociatedInterfacePtrController. (Closed)
Patch Set: Created 3 years, 8 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/js/associated_bindings.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/js/lib/interface_endpoint_client.js
diff --git a/mojo/public/js/lib/interface_endpoint_client.js b/mojo/public/js/lib/interface_endpoint_client.js
index b74b6d203acb5078adab193597d2932a667f092c..f8b7b96edbe6f0247263fcdda0858469cec70388 100644
--- a/mojo/public/js/lib/interface_endpoint_client.js
+++ b/mojo/public/js/lib/interface_endpoint_client.js
@@ -27,7 +27,7 @@ define("mojo/public/js/lib/interface_endpoint_client", [
function InterfaceEndpointClient(interfaceEndpointHandle, receiver,
interfaceVersion) {
this.controller_ = null;
- this.encounteredError_ = false;
+ this.encounteredError = false;
Ken Rockot(use gerrit already) 2017/04/27 15:03:27 I would prefer that we keep this value "private".
this.handle_ = interfaceEndpointHandle;
this.incomingReceiver_ = receiver;
@@ -99,7 +99,7 @@ define("mojo/public/js/lib/interface_endpoint_client", [
this.handle_.groupController());
}
- if (this.encounteredError_) {
+ if (this.encounteredError) {
return false;
}
@@ -114,7 +114,7 @@ define("mojo/public/js/lib/interface_endpoint_client", [
this.handle_.groupController());
}
- if (this.encounteredError_) {
+ if (this.encounteredError) {
return Promise.reject();
}
@@ -173,7 +173,7 @@ define("mojo/public/js/lib/interface_endpoint_client", [
return true;
}
- if (this.encounteredError_) {
+ if (this.encounteredError) {
return false;
}
@@ -209,10 +209,10 @@ define("mojo/public/js/lib/interface_endpoint_client", [
};
InterfaceEndpointClient.prototype.notifyError = function(reason) {
- if (this.encounteredError_) {
+ if (this.encounteredError) {
return;
}
- this.encounteredError_ = true;
+ this.encounteredError = true;
this.completers_.forEach(function(value) {
value.reject();
« no previous file with comments | « mojo/public/js/associated_bindings.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698