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

Issue 2538053002: Barcode/Face detection: reject requests in platforms where not implemented (Closed)

Created:
4 years ago by mcasas
Modified:
4 years ago
CC:
Aaron Boodman, abarth-chromium, blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, creis+watch_chromium.org, darin (slow to review), darin-cc_chromium.org, dglazkov+blink, jam, nasko+codewatch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, xianglu, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Barcode/Face detection: reject requests in platforms where not implemented This CL adds on_connection_error listeners to the mojo interface pointers used for face/barcode detection. The connection error handler is used to reject all Promises related to the given interface, otherwise requests from Blink are neither resolved nor rejected (see bug). BUG=668343 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/62beea5d8166bee43361033475448a0a08cd5bfa Cr-Commit-Position: refs/heads/master@{#435484}

Patch Set 1 : #

Patch Set 2 : Reject promises if mojo connection error #

Total comments: 4

Patch Set 3 : reillyg@s comments #

Total comments: 4

Patch Set 4 : moar comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -10 lines) Patch
M third_party/WebKit/Source/modules/shapedetection/ShapeDetector.h View 1 1 chunk +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/shapedetection/ShapeDetector.cpp View 1 2 3 8 chunks +33 lines, -9 lines 0 comments Download

Messages

Total messages: 31 (18 generated)
mcasas
reillyg@ PTAL
4 years ago (2016-11-30 16:22:29 UTC) #10
Reilly Grant (use Gerrit)
As discussed OOB mcasas@ will investigate adding a connection error handler to the Blink side ...
4 years ago (2016-11-30 20:27:04 UTC) #11
mcasas
reillyg@ PTAL
4 years ago (2016-11-30 21:33:20 UTC) #13
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2538053002/diff/60001/third_party/WebKit/Source/modules/shapedetection/ShapeDetector.cpp File third_party/WebKit/Source/modules/shapedetection/ShapeDetector.cpp (right): https://codereview.chromium.org/2538053002/diff/60001/third_party/WebKit/Source/modules/shapedetection/ShapeDetector.cpp#newcode174 third_party/WebKit/Source/modules/shapedetection/ShapeDetector.cpp:174: DCHECK(m_faceService); We should still have the code to reject ...
4 years ago (2016-11-30 21:43:28 UTC) #14
mcasas
ptal https://codereview.chromium.org/2538053002/diff/60001/third_party/WebKit/Source/modules/shapedetection/ShapeDetector.cpp File third_party/WebKit/Source/modules/shapedetection/ShapeDetector.cpp (right): https://codereview.chromium.org/2538053002/diff/60001/third_party/WebKit/Source/modules/shapedetection/ShapeDetector.cpp#newcode174 third_party/WebKit/Source/modules/shapedetection/ShapeDetector.cpp:174: DCHECK(m_faceService); On 2016/11/30 21:43:28, Reilly Grant wrote: > ...
4 years ago (2016-11-30 21:49:51 UTC) #15
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2538053002/diff/80001/third_party/WebKit/Source/modules/shapedetection/ShapeDetector.cpp File third_party/WebKit/Source/modules/shapedetection/ShapeDetector.cpp (right): https://codereview.chromium.org/2538053002/diff/80001/third_party/WebKit/Source/modules/shapedetection/ShapeDetector.cpp#newcode351 third_party/WebKit/Source/modules/shapedetection/ShapeDetector.cpp:351: if (!m_faceServiceRequests.contains(resolver)) I think this can be a DCHECK. ...
4 years ago (2016-11-30 21:58:47 UTC) #16
mcasas
https://codereview.chromium.org/2538053002/diff/80001/third_party/WebKit/Source/modules/shapedetection/ShapeDetector.cpp File third_party/WebKit/Source/modules/shapedetection/ShapeDetector.cpp (right): https://codereview.chromium.org/2538053002/diff/80001/third_party/WebKit/Source/modules/shapedetection/ShapeDetector.cpp#newcode351 third_party/WebKit/Source/modules/shapedetection/ShapeDetector.cpp:351: if (!m_faceServiceRequests.contains(resolver)) On 2016/11/30 21:58:47, Reilly Grant wrote: > ...
4 years ago (2016-11-30 22:03:16 UTC) #17
Reilly Grant (use Gerrit)
lgtm
4 years ago (2016-11-30 22:10:07 UTC) #18
mcasas
haraken@ RS plz.
4 years ago (2016-11-30 22:18:30 UTC) #20
haraken
LGTM
4 years ago (2016-11-30 23:33:56 UTC) #23
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/2538053002/100001
4 years ago (2016-11-30 23:36:44 UTC) #26
commit-bot: I haz the power
Committed patchset #4 (id:100001)
4 years ago (2016-12-01 00:00:20 UTC) #29
commit-bot: I haz the power
4 years ago (2016-12-01 00:05:04 UTC) #31
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/62beea5d8166bee43361033475448a0a08cd5bfa
Cr-Commit-Position: refs/heads/master@{#435484}

Powered by Google App Engine
This is Rietveld 408576698