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

Issue 2564163003: ShapeDetection: Add ShapeDetectionProvider (Closed)

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

Description

ShapeDetection: Add ShapeDetectionProvider as a factory for FaceDetection service. Remove |FaceDetectorOptions| from FaceDetection mojo interface so Blink doesn't need to send it every time detect() is called. BUG=646083 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/b68a77d89a69697c9e376fbaca9a9db07b4896eb Cr-Commit-Position: refs/heads/master@{#438582}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Name change: FaceDetectionProvider #

Patch Set 3 : Fix layout tests, rebase #

Total comments: 9

Patch Set 4 : Name change: mockFaceDetectionProviderReady, rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -86 lines) Patch
M content/browser/DEPS View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M content/public/android/BUILD.gn View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/InterfaceRegistrarImpl.java View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
D content/public/android/java/src/org/chromium/content/browser/shapedetection/FaceDetectionFactory.java View 1 chunk +0 lines, -22 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/shapedetection/FaceDetectionImpl.java View 1 2 3 2 chunks +13 lines, -8 lines 0 comments Download
A + content/public/android/java/src/org/chromium/content/browser/shapedetection/FaceDetectionProviderFactory.java View 1 1 chunk +5 lines, -5 lines 0 comments Download
A content/public/android/java/src/org/chromium/content/browser/shapedetection/FaceDetectionProviderImpl.java View 1 1 chunk +28 lines, -0 lines 0 comments Download
M content/public/app/mojo/content_browser_manifest.json View 1 2 2 chunks +1 line, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/shapedetection/detection-HTMLCanvasElement.html View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/shapedetection/detection-HTMLImageElement.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/shapedetection/detection-HTMLVideoElement.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/shapedetection/detection-ImageBitmap.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/shapedetection/detection-options.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/shapedetection/resources/mock-facedetection.js View 1 2 3 2 chunks +37 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/modules/shapedetection/FaceDetector.h View 1 2 3 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/shapedetection/FaceDetector.cpp View 1 2 3 3 chunks +12 lines, -6 lines 0 comments Download
M third_party/WebKit/public/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/public/platform/modules/shapedetection/barcodedetection.mojom View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/public/platform/modules/shapedetection/facedetection.mojom View 1 chunk +1 line, -2 lines 0 comments Download
A third_party/WebKit/public/platform/modules/shapedetection/facedetection_provider.mojom View 1 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 88 (75 generated)
xianglu
PTAL.
4 years ago (2016-12-10 01:06:28 UTC) #13
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2564163003/diff/60001/content/public/android/java/src/org/chromium/content/browser/shapedetection/FaceDetectionImpl.java File content/public/android/java/src/org/chromium/content/browser/shapedetection/FaceDetectionImpl.java (right): https://codereview.chromium.org/2564163003/diff/60001/content/public/android/java/src/org/chromium/content/browser/shapedetection/FaceDetectionImpl.java#newcode35 content/public/android/java/src/org/chromium/content/browser/shapedetection/FaceDetectionImpl.java:35: mMaxFaces = options.maxDetectedFaces; Since this value is attacker controlled ...
4 years ago (2016-12-10 01:18:22 UTC) #16
xianglu
PTAL. https://codereview.chromium.org/2564163003/diff/60001/content/public/android/java/src/org/chromium/content/browser/shapedetection/FaceDetectionImpl.java File content/public/android/java/src/org/chromium/content/browser/shapedetection/FaceDetectionImpl.java (right): https://codereview.chromium.org/2564163003/diff/60001/content/public/android/java/src/org/chromium/content/browser/shapedetection/FaceDetectionImpl.java#newcode35 content/public/android/java/src/org/chromium/content/browser/shapedetection/FaceDetectionImpl.java:35: mMaxFaces = options.maxDetectedFaces; On 2016/12/10 01:18:22, Reilly Grant ...
4 years ago (2016-12-10 02:22:19 UTC) #22
Reilly Grant (use Gerrit)
lgtm
4 years ago (2016-12-12 21:41:30 UTC) #35
mcasas
lgtm % comments below. Also, feel free to remove the patchsets that have no comments ...
4 years ago (2016-12-13 17:37:33 UTC) #44
xianglu
PTAL. https://codereview.chromium.org/2564163003/diff/200001/content/public/android/java/src/org/chromium/content/browser/shapedetection/FaceDetectionImpl.java File content/public/android/java/src/org/chromium/content/browser/shapedetection/FaceDetectionImpl.java (right): https://codereview.chromium.org/2564163003/diff/200001/content/public/android/java/src/org/chromium/content/browser/shapedetection/FaceDetectionImpl.java#newcode37 content/public/android/java/src/org/chromium/content/browser/shapedetection/FaceDetectionImpl.java:37: mMaxFaces = Math.min(options.maxDetectedFaces, 32); On 2016/12/13 17:37:32, mcasas ...
4 years ago (2016-12-13 19:17:28 UTC) #56
Reilly Grant (use Gerrit)
still lgtm
4 years ago (2016-12-13 19:21:44 UTC) #57
Tom Sepez
mojom lgtm
4 years ago (2016-12-13 19:23:24 UTC) #58
haraken
WebKit LGTM
4 years ago (2016-12-14 08:56:38 UTC) #77
Avi (use Gerrit)
lgtm stamp
4 years ago (2016-12-14 16:56:19 UTC) #78
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/2564163003/350001
4 years ago (2016-12-14 17:13:40 UTC) #83
commit-bot: I haz the power
Committed patchset #4 (id:350001)
4 years ago (2016-12-14 19:21:52 UTC) #86
commit-bot: I haz the power
4 years ago (2016-12-14 19:25:46 UTC) #88
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/b68a77d89a69697c9e376fbaca9a9db07b4896eb
Cr-Commit-Position: refs/heads/master@{#438582}

Powered by Google App Engine
This is Rietveld 408576698