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

Issue 2865263002: Move //device/generic_sensor to be part of the internal implementation of the Device Service. (Closed)

Created:
3 years, 7 months ago by ke.he
Modified:
3 years, 7 months ago
CC:
Aaron Boodman, abarth-chromium, agrieve+watch_chromium.org, shalamov, blink-reviews, blink-reviews-bindings_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, haraken, jam, mac-reviews_chromium.org, Mikhail, mlamouri+watch-sensors_chromium.org, qsr+mojo_chromium.org, riju_, timvolodine, viettrungluu+watch_chromium.org, wanming.lin, yzshen+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove the *.export.h, change the gn target 'component' to 'source_set', which makes the generic sensor to be the internal implementation of //services. BUG=689384 Review-Url: https://codereview.chromium.org/2865263002 Cr-Commit-Position: refs/heads/master@{#473160} Committed: https://chromium.googlesource.com/chromium/src/+/9b5cf7f93a4b2f246d08208ccd17804856c38f6a

Patch Set 1 #

Patch Set 2 : Move //device/generic_sensor to be part of the internal implementation of the Device Service. #

Patch Set 3 : Move //device/generic_sensor to be part of the internal implementation of the Device Service. #

Patch Set 4 : Move //device/generic_sensor to be part of the internal implementation of the Device Service. #

Patch Set 5 : remove *.export.h. #

Patch Set 6 : code rebase #

Patch Set 7 : Move //device/generic_sensor to be part of the internal implementation of the Device Service. #

Patch Set 8 : change the header macros #

Patch Set 9 : code rebase #

Total comments: 3

Patch Set 10 : code rebase #

Patch Set 11 : code rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+290 lines, -7190 lines) Patch
M content/app/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
M content/app/DEPS View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/app/android/library_loader_hooks.cc View 2 chunks +0 lines, -4 lines 0 comments Download
M content/browser/DEPS View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/generic_sensor_browsertest.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
M content/public/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M content/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 2 chunks +1 line, -1 line 0 comments Download
M device/BUILD.gn View 1 2 3 4 5 6 7 8 9 4 chunks +0 lines, -15 lines 0 comments Download
D device/generic_sensor/BUILD.gn View 1 2 3 4 5 1 chunk +0 lines, -138 lines 0 comments Download
D device/generic_sensor/DEPS View 1 2 3 4 5 1 chunk +0 lines, -5 lines 0 comments Download
D device/generic_sensor/OWNERS View 1 2 3 4 5 1 chunk +0 lines, -6 lines 0 comments Download
D device/generic_sensor/README.md View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -71 lines 0 comments Download
D device/generic_sensor/android/java/src/org/chromium/device/sensors/PlatformSensor.java View 1 chunk +0 lines, -245 lines 0 comments Download
D device/generic_sensor/android/java/src/org/chromium/device/sensors/PlatformSensorProvider.java View 1 2 3 4 5 1 chunk +0 lines, -167 lines 0 comments Download
D device/generic_sensor/android/sensors_jni_registrar.h View 1 chunk +0 lines, -24 lines 0 comments Download
D device/generic_sensor/android/sensors_jni_registrar.cc View 1 chunk +0 lines, -27 lines 0 comments Download
D device/generic_sensor/fake_platform_sensor.h View 1 chunk +0 lines, -46 lines 0 comments Download
D device/generic_sensor/fake_platform_sensor.cc View 1 chunk +0 lines, -40 lines 0 comments Download
D device/generic_sensor/fake_platform_sensor_provider.h View 1 chunk +0 lines, -31 lines 0 comments Download
D device/generic_sensor/fake_platform_sensor_provider.cc View 1 chunk +0 lines, -25 lines 0 comments Download
D device/generic_sensor/generic_sensor_consts.h View 1 chunk +0 lines, -39 lines 0 comments Download
D device/generic_sensor/generic_sensor_export.h View 1 chunk +0 lines, -29 lines 0 comments Download
D device/generic_sensor/linux/sensor_data_linux.h View 1 chunk +0 lines, -82 lines 0 comments Download
D device/generic_sensor/linux/sensor_data_linux.cc View 1 chunk +0 lines, -212 lines 0 comments Download
D device/generic_sensor/linux/sensor_device_manager.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -86 lines 0 comments Download
D device/generic_sensor/linux/sensor_device_manager.cc View 1 2 3 4 5 1 chunk +0 lines, -173 lines 0 comments Download
D device/generic_sensor/platform_sensor.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -111 lines 0 comments Download
D device/generic_sensor/platform_sensor.cc View 1 chunk +0 lines, -142 lines 0 comments Download
D device/generic_sensor/platform_sensor_accelerometer_mac.h View 1 2 3 4 5 1 chunk +0 lines, -55 lines 0 comments Download
D device/generic_sensor/platform_sensor_accelerometer_mac.cc View 1 2 3 4 5 1 chunk +0 lines, -103 lines 0 comments Download
D device/generic_sensor/platform_sensor_ambient_light_mac.h View 1 chunk +0 lines, -63 lines 0 comments Download
D device/generic_sensor/platform_sensor_ambient_light_mac.cc View 1 chunk +0 lines, -175 lines 0 comments Download
D device/generic_sensor/platform_sensor_and_provider_unittest_linux.cc View 1 chunk +0 lines, -656 lines 0 comments Download
D device/generic_sensor/platform_sensor_and_provider_unittest_win.cc View 1 chunk +0 lines, -723 lines 0 comments Download
D device/generic_sensor/platform_sensor_android.h View 1 chunk +0 lines, -55 lines 0 comments Download
D device/generic_sensor/platform_sensor_android.cc View 1 2 3 4 5 1 chunk +0 lines, -100 lines 0 comments Download
D device/generic_sensor/platform_sensor_linux.h View 1 chunk +0 lines, -66 lines 0 comments Download
D device/generic_sensor/platform_sensor_linux.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -96 lines 0 comments Download
D device/generic_sensor/platform_sensor_provider.h View 1 chunk +0 lines, -37 lines 0 comments Download
D device/generic_sensor/platform_sensor_provider.cc View 1 chunk +0 lines, -48 lines 0 comments Download
D device/generic_sensor/platform_sensor_provider_android.h View 1 chunk +0 lines, -35 lines 0 comments Download
D device/generic_sensor/platform_sensor_provider_android.cc View 1 2 3 4 5 1 chunk +0 lines, -47 lines 0 comments Download
D device/generic_sensor/platform_sensor_provider_base.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -84 lines 0 comments Download
D device/generic_sensor/platform_sensor_provider_base.cc View 1 2 3 4 5 1 chunk +0 lines, -136 lines 0 comments Download
D device/generic_sensor/platform_sensor_provider_linux.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -122 lines 0 comments Download
D device/generic_sensor/platform_sensor_provider_linux.cc View 1 2 3 4 5 1 chunk +0 lines, -214 lines 0 comments Download
D device/generic_sensor/platform_sensor_provider_mac.h View 1 chunk +0 lines, -30 lines 0 comments Download
D device/generic_sensor/platform_sensor_provider_mac.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -47 lines 0 comments Download
D device/generic_sensor/platform_sensor_provider_unittest.cc View 1 2 3 4 5 1 chunk +0 lines, -410 lines 0 comments Download
D device/generic_sensor/platform_sensor_provider_win.h View 1 chunk +0 lines, -73 lines 0 comments Download
D device/generic_sensor/platform_sensor_provider_win.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -109 lines 0 comments Download
D device/generic_sensor/platform_sensor_reader_linux.h View 1 2 3 4 5 1 chunk +0 lines, -73 lines 0 comments Download
D device/generic_sensor/platform_sensor_reader_linux.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -163 lines 0 comments Download
D device/generic_sensor/platform_sensor_reader_win.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -82 lines 0 comments Download
D device/generic_sensor/platform_sensor_reader_win.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -472 lines 0 comments Download
D device/generic_sensor/platform_sensor_win.h View 1 chunk +0 lines, -62 lines 0 comments Download
D device/generic_sensor/platform_sensor_win.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -86 lines 0 comments Download
D device/generic_sensor/public/cpp/BUILD.gn View 1 chunk +0 lines, -23 lines 0 comments Download
D device/generic_sensor/public/cpp/OWNERS View 1 chunk +0 lines, -2 lines 0 comments Download
D device/generic_sensor/public/cpp/generic_sensor_public_export.h View 1 chunk +0 lines, -30 lines 0 comments Download
D device/generic_sensor/public/cpp/platform_sensor_configuration.h View 1 chunk +0 lines, -35 lines 0 comments Download
D device/generic_sensor/public/cpp/platform_sensor_configuration.cc View 1 chunk +0 lines, -36 lines 0 comments Download
D device/generic_sensor/public/cpp/sensor_reading.h View 1 2 3 4 5 1 chunk +0 lines, -116 lines 0 comments Download
D device/generic_sensor/public/cpp/sensor_reading.cc View 1 chunk +0 lines, -23 lines 0 comments Download
D device/generic_sensor/public/cpp/sensor_struct_traits.h View 1 chunk +0 lines, -26 lines 0 comments Download
D device/generic_sensor/public/cpp/sensor_struct_traits.cc View 1 chunk +0 lines, -25 lines 0 comments Download
D device/generic_sensor/public/interfaces/BUILD.gn View 1 2 3 4 5 1 chunk +0 lines, -22 lines 0 comments Download
D device/generic_sensor/public/interfaces/OWNERS View 1 chunk +0 lines, -5 lines 0 comments Download
D device/generic_sensor/public/interfaces/sensor.mojom View 1 2 3 4 5 1 chunk +0 lines, -91 lines 0 comments Download
D device/generic_sensor/public/interfaces/sensor.typemap View 1 chunk +0 lines, -13 lines 0 comments Download
D device/generic_sensor/public/interfaces/sensor_provider.mojom View 1 chunk +0 lines, -51 lines 0 comments Download
D device/generic_sensor/public/interfaces/typemaps.gni View 1 chunk +0 lines, -5 lines 0 comments Download
D device/generic_sensor/sensor_impl.h View 1 chunk +0 lines, -50 lines 0 comments Download
D device/generic_sensor/sensor_impl.cc View 1 chunk +0 lines, -71 lines 0 comments Download
D device/generic_sensor/sensor_provider_impl.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -53 lines 0 comments Download
D device/generic_sensor/sensor_provider_impl.cc View 1 chunk +0 lines, -112 lines 0 comments Download
M mojo/public/tools/bindings/chromium_bindings_configuration.gni View 1 2 chunks +1 line, -1 line 0 comments Download
M services/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M services/device/BUILD.gn View 1 2 3 4 5 5 chunks +21 lines, -1 line 0 comments Download
M services/device/android/register_jni.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M services/device/device_service.h View 1 2 3 4 5 2 chunks +1 line, -1 line 0 comments Download
M services/device/device_service.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
A + services/device/generic_sensor/BUILD.gn View 1 2 3 4 5 3 chunks +3 lines, -6 lines 0 comments Download
A + services/device/generic_sensor/DEPS View 0 chunks +-1 lines, --1 lines 0 comments Download
A + services/device/generic_sensor/OWNERS View 0 chunks +-1 lines, --1 lines 0 comments Download
A + services/device/generic_sensor/README.md View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
A + services/device/generic_sensor/android/java/src/org/chromium/device/sensors/PlatformSensor.java View 0 chunks +-1 lines, --1 lines 0 comments Download
A + services/device/generic_sensor/android/java/src/org/chromium/device/sensors/PlatformSensorProvider.java View 1 2 3 4 5 0 chunks +-1 lines, --1 lines 0 comments Download
A + services/device/generic_sensor/android/sensors_jni_registrar.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -6 lines 0 comments Download
A + services/device/generic_sensor/android/sensors_jni_registrar.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
A + services/device/generic_sensor/fake_platform_sensor.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download
A + services/device/generic_sensor/fake_platform_sensor.cc View 1 chunk +1 line, -1 line 0 comments Download
A + services/device/generic_sensor/fake_platform_sensor_provider.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download
A + services/device/generic_sensor/fake_platform_sensor_provider.cc View 1 chunk +2 lines, -2 lines 0 comments Download
A + services/device/generic_sensor/generic_sensor_consts.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -3 lines 0 comments Download
A + services/device/generic_sensor/linux/sensor_data_linux.h View 1 2 3 4 5 6 7 4 chunks +6 lines, -8 lines 0 comments Download
A + services/device/generic_sensor/linux/sensor_data_linux.cc View 1 chunk +3 lines, -3 lines 0 comments Download
A + services/device/generic_sensor/linux/sensor_device_manager.h View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -7 lines 0 comments Download
A + services/device/generic_sensor/linux/sensor_device_manager.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
A + services/device/generic_sensor/platform_sensor.h View 1 2 3 4 5 6 7 8 4 chunks +6 lines, -8 lines 0 comments Download
A + services/device/generic_sensor/platform_sensor.cc View 1 chunk +3 lines, -3 lines 0 comments Download
A + services/device/generic_sensor/platform_sensor_accelerometer_mac.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download
A + services/device/generic_sensor/platform_sensor_accelerometer_mac.cc View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
A + services/device/generic_sensor/platform_sensor_ambient_light_mac.h View 1 chunk +1 line, -1 line 0 comments Download
A + services/device/generic_sensor/platform_sensor_ambient_light_mac.cc View 2 chunks +3 lines, -3 lines 0 comments Download
A + services/device/generic_sensor/platform_sensor_and_provider_unittest_linux.cc View 1 chunk +4 lines, -4 lines 0 comments Download
A + services/device/generic_sensor/platform_sensor_and_provider_unittest_win.cc View 1 chunk +3 lines, -3 lines 0 comments Download
A + services/device/generic_sensor/platform_sensor_android.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download
A + services/device/generic_sensor/platform_sensor_android.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
A + services/device/generic_sensor/platform_sensor_linux.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download
A + services/device/generic_sensor/platform_sensor_linux.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -3 lines 0 comments Download
A + services/device/generic_sensor/platform_sensor_provider.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -7 lines 0 comments Download
A + services/device/generic_sensor/platform_sensor_provider.cc View 1 chunk +5 lines, -5 lines 0 comments Download
A + services/device/generic_sensor/platform_sensor_provider_android.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download
A + services/device/generic_sensor/platform_sensor_provider_android.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
A + services/device/generic_sensor/platform_sensor_provider_base.h View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -6 lines 0 comments Download
A + services/device/generic_sensor/platform_sensor_provider_base.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
A + services/device/generic_sensor/platform_sensor_provider_linux.h View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -9 lines 0 comments Download
A + services/device/generic_sensor/platform_sensor_provider_linux.cc View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download
A + services/device/generic_sensor/platform_sensor_provider_mac.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download
A + services/device/generic_sensor/platform_sensor_provider_mac.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -3 lines 0 comments Download
A + services/device/generic_sensor/platform_sensor_provider_unittest.cc View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
A + services/device/generic_sensor/platform_sensor_provider_win.h View 1 2 3 4 5 6 7 3 chunks +5 lines, -7 lines 0 comments Download
A + services/device/generic_sensor/platform_sensor_provider_win.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
A + services/device/generic_sensor/platform_sensor_reader_linux.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -4 lines 0 comments Download
A + services/device/generic_sensor/platform_sensor_reader_linux.cc View 1 2 3 4 5 6 7 8 3 chunks +9 lines, -8 lines 0 comments Download
A + services/device/generic_sensor/platform_sensor_reader_win.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -4 lines 0 comments Download
A + services/device/generic_sensor/platform_sensor_reader_win.cc View 1 2 3 4 5 6 7 8 9 3 chunks +28 lines, -28 lines 0 comments Download
A + services/device/generic_sensor/platform_sensor_win.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -5 lines 0 comments Download
A + services/device/generic_sensor/platform_sensor_win.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
A + services/device/generic_sensor/sensor_impl.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -5 lines 0 comments Download
A + services/device/generic_sensor/sensor_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
A + services/device/generic_sensor/sensor_provider_impl.h View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -7 lines 0 comments Download
A + services/device/generic_sensor/sensor_provider_impl.cc View 1 chunk +3 lines, -3 lines 0 comments Download
A + services/device/public/cpp/generic_sensor/BUILD.gn View 2 chunks +2 lines, -4 lines 0 comments Download
A + services/device/public/cpp/generic_sensor/OWNERS View 0 chunks +-1 lines, --1 lines 0 comments Download
A + services/device/public/cpp/generic_sensor/platform_sensor_configuration.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -5 lines 0 comments Download
A + services/device/public/cpp/generic_sensor/platform_sensor_configuration.cc View 1 chunk +2 lines, -2 lines 0 comments Download
A + services/device/public/cpp/generic_sensor/sensor_reading.h View 1 2 3 4 5 6 7 4 chunks +6 lines, -7 lines 0 comments Download
A + services/device/public/cpp/generic_sensor/sensor_reading.cc View 1 chunk +1 line, -1 line 0 comments Download
A + services/device/public/cpp/generic_sensor/sensor_struct_traits.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -5 lines 0 comments Download
A + services/device/public/cpp/generic_sensor/sensor_struct_traits.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/device/public/interfaces/BUILD.gn View 1 2 3 4 5 1 chunk +14 lines, -0 lines 0 comments Download
M services/device/public/interfaces/OWNERS View 1 chunk +4 lines, -0 lines 0 comments Download
A + services/device/public/interfaces/sensor.mojom View 0 chunks +-1 lines, --1 lines 0 comments Download
A services/device/public/interfaces/sensor.typemap View 1 chunk +13 lines, -0 lines 0 comments Download
A + services/device/public/interfaces/sensor_provider.mojom View 0 chunks +-1 lines, --1 lines 0 comments Download
A + services/device/public/interfaces/typemaps.gni View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/sensor/resources/sensor-helpers.js View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/modules/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/sensor/BUILD.gn View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/sensor/DEPS View 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/sensor/Sensor.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/sensor/SensorProviderProxy.h View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/sensor/SensorProxy.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 83 (54 generated)
ke.he
Hi, Colin, many files were touched but the real modification is not so huge:) PTAL. ...
3 years, 7 months ago (2017-05-17 09:32:06 UTC) #35
blundell
blundell@ -> rockot@ I'm about to go OOO for the rest of the week, sending ...
3 years, 7 months ago (2017-05-17 15:26:21 UTC) #39
Ken Rockot(use gerrit already)
lgtm
3 years, 7 months ago (2017-05-17 17:40:08 UTC) #40
ke.he
Hi, Jam@, Could you PTAL on //content/ and mojo/public/tools/bindings/chromium_bindings_configuration.gni. Alexander, Could you PTAL on the ...
3 years, 7 months ago (2017-05-18 05:16:15 UTC) #42
ke.he
https://codereview.chromium.org/2865263002/diff/160001/services/device/public/interfaces/BUILD.gn File services/device/public/interfaces/BUILD.gn (right): https://codereview.chromium.org/2865263002/diff/160001/services/device/public/interfaces/BUILD.gn#newcode25 services/device/public/interfaces/BUILD.gn:25: mojom("generic_sensor") { On 2017/05/17 09:32:05, ke.he wrote: > The ...
3 years, 7 months ago (2017-05-18 05:24:18 UTC) #43
ke.he
And reillyg@ who is planing to merge /sensor and /generic_sensor.
3 years, 7 months ago (2017-05-18 10:02:34 UTC) #45
jam
lgtm
3 years, 7 months ago (2017-05-18 14:23:39 UTC) #46
Tom Sepez
lgtm RS on renaming files. If there's another change buried in here, please let me ...
3 years, 7 months ago (2017-05-18 15:58:31 UTC) #47
Reilly Grant (use Gerrit)
lgtm https://codereview.chromium.org/2865263002/diff/160001/services/device/public/interfaces/BUILD.gn File services/device/public/interfaces/BUILD.gn (right): https://codereview.chromium.org/2865263002/diff/160001/services/device/public/interfaces/BUILD.gn#newcode25 services/device/public/interfaces/BUILD.gn:25: mojom("generic_sensor") { On 2017/05/17 09:32:05, ke.he wrote: > ...
3 years, 7 months ago (2017-05-18 15:58:50 UTC) #48
ke.he
Tom, basically just file moving and renaming. While there is also a change that I ...
3 years, 7 months ago (2017-05-18 16:23:10 UTC) #49
Reilly Grant (use Gerrit)
On 2017/05/18 16:23:10, ke.he wrote: > Reilly, thanks, I'll have a study on your CL. ...
3 years, 7 months ago (2017-05-18 16:55:24 UTC) #50
shalamov
lgtm
3 years, 7 months ago (2017-05-19 07:40:51 UTC) #55
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/2865263002/180001
3 years, 7 months ago (2017-05-19 07:42:34 UTC) #58
commit-bot: I haz the power
Failed to apply patch for content/test/BUILD.gn: While running git apply --index -3 -p1; error: patch ...
3 years, 7 months ago (2017-05-19 07:55:08 UTC) #60
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/2865263002/200001
3 years, 7 months ago (2017-05-19 11:26:10 UTC) #67
commit-bot: I haz the power
Committed patchset #11 (id:200001) as https://chromium.googlesource.com/chromium/src/+/9b5cf7f93a4b2f246d08208ccd17804856c38f6a
3 years, 7 months ago (2017-05-19 11:35:00 UTC) #70
Marc Treib
A revert of this CL (patchset #11 id:200001) has been created in https://codereview.chromium.org/2898433002/ by treib@chromium.org. ...
3 years, 7 months ago (2017-05-19 13:07:28 UTC) #71
findit-for-me
Findit (https://goo.gl/kROfz5) identified this CL at revision 473160 as the culprit for failures in the ...
3 years, 7 months ago (2017-05-19 14:17:09 UTC) #72
blundell
On 2017/05/19 14:17:09, findit-for-me wrote: > Findit (https://goo.gl/kROfz5) identified this CL at revision 473160 as ...
3 years, 7 months ago (2017-05-22 09:39:05 UTC) #73
ke.he
Hi, Colin, My args.gn is: is_component_build=true, is_debug=false, dcheck_always_on=true. In the original //device/generic_sensor/BUILD.gn, it is |component("generic_sensor")|, ...
3 years, 7 months ago (2017-05-22 10:36:58 UTC) #74
ke.he
Hi, Colin, My args.gn is: is_component_build=true, is_debug=false, dcheck_always_on=true. In the original //device/generic_sensor/BUILD.gn, it is |component("generic_sensor")|, ...
3 years, 7 months ago (2017-05-22 10:36:58 UTC) #75
ke.he
Hi, Colin, The root cause is: There is a global var: |g_provider_for_testing| in "platform_sensor_provider.cc". If ...
3 years, 7 months ago (2017-05-23 08:44:10 UTC) #76
blundell
On 2017/05/23 08:44:10, ke.he wrote: > Hi, Colin, > The root cause is: There is ...
3 years, 7 months ago (2017-05-23 08:51:00 UTC) #77
ke.he
On 2017/05/23 08:51:00, blundell wrote: > On 2017/05/23 08:44:10, ke.he wrote: > > Hi, Colin, ...
3 years, 7 months ago (2017-05-23 09:10:48 UTC) #78
ke.he
On 2017/05/23 09:10:48, ke.he wrote: > On 2017/05/23 08:51:00, blundell wrote: > > On 2017/05/23 ...
3 years, 7 months ago (2017-05-23 09:15:09 UTC) #79
blundell
On 2017/05/23 09:15:09, ke.he wrote: > On 2017/05/23 09:10:48, ke.he wrote: > > On 2017/05/23 ...
3 years, 7 months ago (2017-05-23 09:19:29 UTC) #80
ke.he
On 2017/05/23 09:19:29, blundell wrote: > On 2017/05/23 09:15:09, ke.he wrote: > > On 2017/05/23 ...
3 years, 7 months ago (2017-05-23 10:27:48 UTC) #81
blundell
On 2017/05/23 10:27:48, ke.he wrote: > On 2017/05/23 09:19:29, blundell wrote: > > On 2017/05/23 ...
3 years, 7 months ago (2017-05-24 13:01:39 UTC) #82
ke.he
3 years, 7 months ago (2017-05-26 08:00:23 UTC) #83
Message was sent while issue was closed.
On 2017/05/24 13:01:39, blundell (OOO until May 29) wrote:
> On 2017/05/23 10:27:48, ke.he wrote:
> > On 2017/05/23 09:19:29, blundell wrote:
> > > On 2017/05/23 09:15:09, ke.he wrote:
> > > > On 2017/05/23 09:10:48, ke.he wrote:
> > > > > On 2017/05/23 08:51:00, blundell wrote:
> > > > > > On 2017/05/23 08:44:10, ke.he wrote:
> > > > > > > Hi, Colin,
> > > > > > > The root cause is: There is a global var: |g_provider_for_testing|
> in
> > > > > > > "platform_sensor_provider.cc". If we change the "componnent" to
> > > > > "source_set",
> > > > > > > all dependents don't share the same |g_provider_for_testing|
> anymore.
> > > > > > > 
> > > > > > > I plan to pending this CL for a while, and to 1)rewrite the
> > browsertest
> > > in
> > > > > > > //services by the new infra. 2)change the current unittest to
> > > > > > service_unittest.
> > > > > > > After above 2 steps, I can remove the current browsertest as well
as
> > the
> > > > > > global
> > > > > > > |g_provider_for_testing|. Then to land this CL at last step.
> > > > > > 
> > > > > > Ugh :(. Good work in tracking this down!
> > > > > > 
> > > > > > We can potentially leave the browsertest in place and just inject a
> mock
> > > > impl
> > > > > > via Han Leon's infra, right? I don't know exactly what the
browsertest
> > is
> > > > > > testing offhand to know how reasonable an alteration this would be.
> > Maybe
> > > > this
> > > > > > is what you mean by (1) above?
> > > > > 
> > > > > Yes, just discussed with Leon about his new landed infra:)
> > > > 
> > > > Yes, I'll create a new browsertest via leon's new infra and keep the
> > original
> > > > browsertest. I'll finish 2 steps above first, after that then it is the
> > right
> > > > time to remove the original browsertest.
> > > 
> > > Could you just port the original browsertest in-place to use the new
infra?
> > 
> > I'm afraid maybe we can't replace the original browsertest by the new-infra
> > browsertest in one step. So far my understanding is:
> > 
> > The new-infra browsertest would be very simple, it won't mock the internal
> > implementations like current browsertest does, in this way we can get rid of
> > global |g_provider_for_testing| in browsertest. We can't reference the
global
> > |g_provider_for_testing| in browsertest because it blocks us to move
> > //device/generic_sensor into //services/device. So the new-infra browsertest
> has
> > less coverage than original browsertest, the reduced coverage part will be
> added
> > into service_unittests. That's why I plan to remove the original browsertest
> > only after both new-infra browsertest and service_unittest are ready.
> > 
> > By the way, it is safe for the service_unittest to use the global
> > |g_provider_for_testing| because it links the |g_provider_for_testing| only
> > once.
> > 
> > Not sure everything is correct so far, some details are not clear, still
> > ongoing:)
> 
> AFAICT, the generic sensor browsertest is essentially injecting a completely
> fake implementation (the fake sensor provider creates fake sensor impls).
Would
> it not be possible to just extend that fake implementation to directly
implement
> the Mojo interfaces and then inject that as the generic sensors impl using Han
> Leon's infrastructure?
> 
> Adding service tests is a good idea as well in any case, of course :).

Yes, it is possible and in my plan. My point is that the to-be-added browsertest
in the new-infra cannot replace the original browsertest, because all the
browser side code are fake. That's why I plan to add service_unittest first, to
test the real production code in browser side by calling the mojo interfaces:)

Powered by Google App Engine
This is Rietveld 408576698