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

Unified Diff: extensions/test/data/keep_alive_client_unittest.js

Issue 2952893002: [Extensions Bindings] Move setHandleRequestWithPromise to util (Closed)
Patch Set: lazyboy's Created 3 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 | « extensions/renderer/resources/utils.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/test/data/keep_alive_client_unittest.js
diff --git a/extensions/test/data/keep_alive_client_unittest.js b/extensions/test/data/keep_alive_client_unittest.js
index 7b88fb0a8ecdc4e4061555d8063ddc4b172babae..97ddba544d66596bacd1e7d098b27a98b664af56 100644
--- a/extensions/test/data/keep_alive_client_unittest.js
+++ b/extensions/test/data/keep_alive_client_unittest.js
@@ -18,8 +18,8 @@ var shouldSucceed;
// simple signature.
var binding = require('binding').Binding.create('serial');
binding.registerCustomHook(function(bindingsAPI) {
- bindingsAPI.apiFunctions.setHandleRequestWithPromise('getDevices',
- function() {
+ utils.handleRequestWithPromiseDoNotUse(bindingsAPI.apiFunctions,
+ 'serial', 'getDevices', function() {
if (shouldSucceed)
return Promise.resolve([]);
else
« no previous file with comments | « extensions/renderer/resources/utils.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698