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

Issue 2842073003: Handle error in connector and close handle and swap with dummy handle. (Closed)

Created:
3 years, 8 months ago by wangjimmy
Modified:
3 years, 7 months ago
Reviewers:
yzshen1
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review)
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Handle error in connector. Close handle and swap with dummy handle when read.result !== core.RESULT_FAILED_PRECONDITION. BUG=716959 Review-Url: https://codereview.chromium.org/2842073003 Cr-Commit-Position: refs/heads/master@{#470069} Committed: https://chromium.googlesource.com/chromium/src/+/b3d75e896a9c8316dede96ed1ee608cce40d43ab

Patch Set 1 #

Patch Set 2 : Add validator.js. Comment out if error for now. #

Patch Set 3 : Add return in connector.js. Uncomment if (this.error_). #

Patch Set 4 : Remove TODO comment #

Patch Set 5 : Clean up code in connector.js #

Patch Set 6 : Handle invalid cached incoming message. Remove connector.close #

Patch Set 7 : Add back connector.close. Used by web_ui_browser_test.cc #

Total comments: 4

Patch Set 8 : Formatting. Add early return in HandleError if |this.handle_| is null. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -46 lines) Patch
M mojo/public/js/connector.js View 1 2 3 4 5 6 7 5 chunks +67 lines, -29 lines 0 comments Download
M mojo/public/js/router.js View 1 2 3 4 5 3 chunks +3 lines, -17 lines 0 comments Download

Messages

Total messages: 50 (38 generated)
wangjimmy
Hi Yuzhu, PTAL at all. Thank you
3 years, 7 months ago (2017-05-01 04:09:06 UTC) #26
yzshen1
https://codereview.chromium.org/2842073003/diff/120001/mojo/public/js/connector.js File mojo/public/js/connector.js (right): https://codereview.chromium.org/2842073003/diff/120001/mojo/public/js/connector.js#newcode143 mojo/public/js/connector.js:143: forceAsyncHandler) { nit: please align "forceAsyncHandler" with "forcePipeReset" on ...
3 years, 7 months ago (2017-05-02 22:29:21 UTC) #27
wangjimmy
https://codereview.chromium.org/2842073003/diff/120001/mojo/public/js/connector.js File mojo/public/js/connector.js (right): https://codereview.chromium.org/2842073003/diff/120001/mojo/public/js/connector.js#newcode143 mojo/public/js/connector.js:143: forceAsyncHandler) { On 2017/05/02 22:29:20, yzshen1 wrote: > nit: ...
3 years, 7 months ago (2017-05-04 03:12:38 UTC) #32
yzshen1
lgtm
3 years, 7 months ago (2017-05-04 22:15:42 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2842073003/140001
3 years, 7 months ago (2017-05-05 14:52:01 UTC) #35
commit-bot: I haz the power
The author wangjimmy@chromium.org has not signed Google Contributor License Agreement. Please visit https://cla.developers.google.com to sign ...
3 years, 7 months ago (2017-05-05 14:52:03 UTC) #37
yzshen1
On 2017/05/05 14:52:03, commit-bot: I haz the power wrote: > The author mailto:wangjimmy@chromium.org has not ...
3 years, 7 months ago (2017-05-05 16:51:32 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2842073003/140001
3 years, 7 months ago (2017-05-08 15:58:22 UTC) #40
commit-bot: I haz the power
The author wangjimmy@chromium.org has not signed Google Contributor License Agreement. Please visit https://cla.developers.google.com to sign ...
3 years, 7 months ago (2017-05-08 15:58:25 UTC) #42
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/209646)
3 years, 7 months ago (2017-05-08 16:18:22 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2842073003/140001
3 years, 7 months ago (2017-05-08 18:05:14 UTC) #47
commit-bot: I haz the power
3 years, 7 months ago (2017-05-08 19:01:06 UTC) #50
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/b3d75e896a9c8316dede96ed1ee6...

Powered by Google App Engine
This is Rietveld 408576698