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

Unified Diff: ui/webui/resources/js/promise_resolver.js

Issue 1758013002: WebUI: Allow rejecting a promise that is returned from cr.sendWithPromise(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 4 years, 10 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: ui/webui/resources/js/promise_resolver.js
diff --git a/chrome/test/data/webui/promise_resolver.js b/ui/webui/resources/js/promise_resolver.js
similarity index 97%
rename from chrome/test/data/webui/promise_resolver.js
rename to ui/webui/resources/js/promise_resolver.js
index 0c0e22683e41ac096289a0a98d201bb9296450c5..e4fedaa5d8c27cff278ccbd3804a7693aecce134 100644
--- a/chrome/test/data/webui/promise_resolver.js
+++ b/ui/webui/resources/js/promise_resolver.js
@@ -16,9 +16,7 @@
* resolver.resolve({hello: 'world'});
*/
-/**
- * @constructor
- */
+/** @constructor */
function PromiseResolver() {
Dan Beam 2016/03/03 19:04:51 I think this should be PromiseResult or PromiseWra
dpapad 2016/03/03 19:51:22 Technically you are right, "resolve" implies succe
/** @type {!Function} */
this.resolve;

Powered by Google App Engine
This is Rietveld 408576698