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

Issue 2855203003: Shape Detection: move {BarcodeDetectionImpl,TextDetectionImpl}.java to //services/shape_detection (Closed)

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

Description

Shape Detection: move {BarcodeDetectionImpl,TextDetectionImpl}.java to //services/shape_detection This CL: - moves those two fellas (BarcodeDetectionImpl.java and TextDetectionImpl.java) from //chrome to //services/shape_detection, with some tiny adaptations. - changes render_process_host_impl.cc to send requests to the said service. - adds a needed InterfaceRegistrar.java to //services/shape_detection and some android-specific code to shape_detection_service.cc, following the //services/device model (BatteryMonitor, concretely). No new code or functionality is intended in the ...Impl.java files (except a small change in testing for GMS presence). BUG=718275 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.mac:mac_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2855203003 Cr-Commit-Position: refs/heads/master@{#469424} Committed: https://chromium.googlesource.com/chromium/src/+/5b95074ff70c578c5eef6f1201f23acec24f29c8

Patch Set 1 #

Total comments: 2

Patch Set 2 : Make |java_interface_provider_| a std::unique_ptr<> #

Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -317 lines) Patch
M chrome/android/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/mojo/ChromeInterfaceRegistrar.java View 2 chunks +0 lines, -18 lines 0 comments Download
D chrome/android/java/src/org/chromium/chrome/browser/shapedetection/BarcodeDetectionImpl.java View 1 chunk +0 lines, -142 lines 0 comments Download
D chrome/android/java/src/org/chromium/chrome/browser/shapedetection/TextDetectionImpl.java View 1 chunk +0 lines, -132 lines 0 comments Download
M chrome/android/java_sources.gni View 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 chunk +4 lines, -11 lines 0 comments Download
M services/shape_detection/BUILD.gn View 1 chunk +35 lines, -0 lines 0 comments Download
M services/shape_detection/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
A + services/shape_detection/android/java/src/org/chromium/shape_detection/BarcodeDetectionImpl.java View 3 chunks +5 lines, -5 lines 0 comments Download
A services/shape_detection/android/java/src/org/chromium/shape_detection/InterfaceRegistrar.java View 1 chunk +29 lines, -0 lines 0 comments Download
A + services/shape_detection/android/java/src/org/chromium/shape_detection/TextDetectionImpl.java View 2 chunks +5 lines, -5 lines 0 comments Download
M services/shape_detection/shape_detection_service.h View 1 2 chunks +10 lines, -1 line 0 comments Download
M services/shape_detection/shape_detection_service.cc View 1 3 chunks +32 lines, -1 line 0 comments Download

Messages

Total messages: 24 (14 generated)
mcasas
reillyg@/ rockot@ PTAL
3 years, 7 months ago (2017-05-04 01:04:20 UTC) #5
Reilly Grant (use Gerrit)
This looks reasonable to me but I'm not familiar with the details of service registration ...
3 years, 7 months ago (2017-05-04 01:24:36 UTC) #6
Ken Rockot(use gerrit already)
lgtm https://codereview.chromium.org/2855203003/diff/1/services/shape_detection/shape_detection_service.h File services/shape_detection/shape_detection_service.h (right): https://codereview.chromium.org/2855203003/diff/1/services/shape_detection/shape_detection_service.h#newcode39 services/shape_detection/shape_detection_service.h:39: service_manager::InterfaceProvider java_interface_provider_; nit: Just use a unique_ptr<InterfaceProvider> instead ...
3 years, 7 months ago (2017-05-04 17:19:50 UTC) #8
mcasas
https://codereview.chromium.org/2855203003/diff/1/services/shape_detection/shape_detection_service.h File services/shape_detection/shape_detection_service.h (right): https://codereview.chromium.org/2855203003/diff/1/services/shape_detection/shape_detection_service.h#newcode39 services/shape_detection/shape_detection_service.h:39: service_manager::InterfaceProvider java_interface_provider_; On 2017/05/04 17:19:50, Ken Rockot wrote: > ...
3 years, 7 months ago (2017-05-04 17:58:50 UTC) #9
mcasas
tedchoc@ RS plz code removal from chrome/android avi@ RS plz small reshuffling in render_process_host_impl.cc
3 years, 7 months ago (2017-05-04 17:58:56 UTC) #11
Ken Rockot(use gerrit already)
I don't think any such advice should exist anywhere in our documentation. The only reason ...
3 years, 7 months ago (2017-05-04 18:02:06 UTC) #12
Avi (use Gerrit)
rph lgtm
3 years, 7 months ago (2017-05-04 18:02:28 UTC) #13
Ted C
On 2017/05/04 18:02:28, Avi (ping after 24h) wrote: > rph lgtm chrome/android lgtm
3 years, 7 months ago (2017-05-04 18:12:53 UTC) #14
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/2855203003/20001
3 years, 7 months ago (2017-05-04 19:27:18 UTC) #21
commit-bot: I haz the power
3 years, 7 months ago (2017-05-04 19:35:07 UTC) #24
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/5b95074ff70c578c5eef6f1201f2...

Powered by Google App Engine
This is Rietveld 408576698