[Message] This allows to handle exceptions thrown
before async operation starts (eg. SecurityException).
This patch replaces:
http://168.219.209.56/gerrit/#/c/14446/
http://168.219.209.56/gerrit/#/c/14479/
Change-Id: Ifac6f168580fa4209741ff5f8b4f8a219820d7ef
args[this.CALLBACK_ID_KEY] = replyId;
this.callbacks_[replyId] = callback;
- var request = JSON.stringify({
- cmd: cmd,
- args: args
- });
-
- this.extension.postMessage(request);
+ return this.callSync(cmd, args);
};
NativeManager.prototype.callSync = function(cmd, args) {