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

Issue 2370343002: [sensors] Ambient light sensor implementation for ChromeOS and Linux. (Closed)

Created:
4 years, 2 months ago by maksims (do not use this acc)
Modified:
4 years, 1 month ago
CC:
darktears, chromium-reviews, riju_
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[sensors] Ambient light sensor implementation for ChromeOS and Linux. The patch introduces sensors implementation for ChromeOS/Linux platforms using ambient light sensor. Both platforms share the same code and require polling threads to be used. SensorDataIio structure is used to initialize a generic SensorReader, which is created only when sensor read files are found, and to create a concrete sensor, which takes an ownership of the SensorReader. A SensorReader must always be created on a polling thread, which is further used by a sensor to poll data. Each new sensor will have its own thread in order to avoid blocking of each other. As a temp solution to manage polling threads, which are not passed to new sensors, a manager thread is used. It kills a polling thread if a sensor cannot be created. In the future, the manager thread will evolve to a manager class that will manage finding new sensors attached to a system and notify a provider about that. The provider will have its own cache in order to avoid trying to find sensors each time after it fails to find a requested sensor. Once the manager notifies the provider about a new sensor, the provider updates its cache and starts to process requests for that type of sensor. Intent to Implement: https://groups.google.com/a/chromium.org/forum/#!msg/blink-dev/TkfdVqYAYiE/xLGN2b1-AAAJ BUG=606766 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/de2d07084492be68633a47bae161cf9014ac88e2 Cr-Commit-Position: refs/heads/master@{#429584}

Patch Set 1 #

Patch Set 2 : ctor and dtor for deleter #

Total comments: 1

Patch Set 3 : rebased on top of Mihail's cl #

Total comments: 1

Patch Set 4 : changed implementation #

Total comments: 28

Patch Set 5 : Newest version. and some comments #

Total comments: 15

Patch Set 6 : Rebased. Comments from Mikhail #

Total comments: 18

Patch Set 7 : comments and added unittests for sensor reader #

Patch Set 8 : fixed comment #

Total comments: 15

Patch Set 9 : comments #

Total comments: 2

Patch Set 10 : use CreateUniqueTempDir in tests. Notify sensor error on read error #

Patch Set 11 : ... #

Total comments: 4

Patch Set 12 : small fixes #

Patch Set 13 : add comments to unittest #

Total comments: 20

Patch Set 14 : Comments from Alex #

Total comments: 18

Patch Set 15 : Comments from Reilly Grant #

Patch Set 16 : fix compilation #

Patch Set 17 : comments #

Patch Set 18 : rebased #

Total comments: 2

Patch Set 19 : pass file thread task runner that is used to destroy sensor threads #

Patch Set 20 : rebased. use one polling thread #

Patch Set 21 : move set task runner inside if statements #

Total comments: 1

Patch Set 22 : change SetTaskRunner to SetFileTaskRunner as per offline discussion with Mikhail #

Total comments: 30

Patch Set 23 : comments #

Patch Set 24 : use std::move #

Patch Set 25 : rebased #

Patch Set 26 : rebased after win implementation landed #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+886 lines, -7 lines) Patch
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +2 lines, -1 line 0 comments Download
M device/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +4 lines, -0 lines 0 comments Download
M device/generic_sensor/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +11 lines, -1 line 0 comments Download
A device/generic_sensor/linux/platform_sensor_utils_linux.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +43 lines, -0 lines 0 comments Download
A device/generic_sensor/linux/platform_sensor_utils_linux.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +94 lines, -0 lines 0 comments Download
A device/generic_sensor/linux/sensor_data_linux.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +38 lines, -0 lines 0 comments Download
A device/generic_sensor/linux/sensor_data_linux.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +51 lines, -0 lines 2 comments Download
A device/generic_sensor/linux/sensor_reader_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +260 lines, -0 lines 0 comments Download
A device/generic_sensor/platform_sensor_linux.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +75 lines, -0 lines 0 comments Download
A device/generic_sensor/platform_sensor_linux.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +114 lines, -0 lines 0 comments Download
M device/generic_sensor/platform_sensor_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +4 lines, -2 lines 0 comments Download
M device/generic_sensor/platform_sensor_provider_base.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +5 lines, -0 lines 0 comments Download
A device/generic_sensor/platform_sensor_provider_linux.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +75 lines, -0 lines 0 comments Download
A device/generic_sensor/platform_sensor_provider_linux.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +102 lines, -0 lines 0 comments Download
M device/generic_sensor/sensor_provider_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +3 lines, -1 line 0 comments Download
M device/generic_sensor/sensor_provider_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 301 (222 generated)
maksims (do not use this acc)
Please review.
4 years, 2 months ago (2016-09-28 06:09:02 UTC) #14
darktears
https://codereview.chromium.org/2370343002/diff/60001/device/generic_sensor/platform_sensor_ambient_light_iio.cc File device/generic_sensor/platform_sensor_ambient_light_iio.cc (right): https://codereview.chromium.org/2370343002/diff/60001/device/generic_sensor/platform_sensor_ambient_light_iio.cc#newcode86 device/generic_sensor/platform_sensor_ambient_light_iio.cc:86: StopSensor(); Is this the behavior that we should follow?
4 years, 2 months ago (2016-09-30 21:35:32 UTC) #24
maksims (do not use this acc)
Reminder
4 years, 2 months ago (2016-10-06 11:59:01 UTC) #25
Mikhail
On 2016/10/06 11:59:01, maksims wrote: > Reminder Let's first introduce SeqLock to generic classes (https://codereview.chromium.org/2395853003/)
4 years, 2 months ago (2016-10-06 12:12:06 UTC) #26
maksims (do not use this acc)
please review
4 years, 2 months ago (2016-10-10 13:09:29 UTC) #29
darktears
https://codereview.chromium.org/2370343002/diff/130001/device/generic_sensor/polling_platform_sensor.cc File device/generic_sensor/polling_platform_sensor.cc (right): https://codereview.chromium.org/2370343002/diff/130001/device/generic_sensor/polling_platform_sensor.cc#newcode30 device/generic_sensor/polling_platform_sensor.cc:30: polling_thread_task_runner_(base::MessageLoop::current()->task_runner()), This is deprecated. Use base::ThreadTaskRunnerHandle::Get().
4 years, 2 months ago (2016-10-10 16:27:14 UTC) #31
maksims (do not use this acc)
please review
4 years, 2 months ago (2016-10-11 13:58:02 UTC) #35
Mikhail
https://codereview.chromium.org/2370343002/diff/150001/device/generic_sensor/BUILD.gn File device/generic_sensor/BUILD.gn (right): https://codereview.chromium.org/2370343002/diff/150001/device/generic_sensor/BUILD.gn#newcode44 device/generic_sensor/BUILD.gn:44: if (is_chromeos || is_linux) { isn't 'is_linux' == true ...
4 years, 2 months ago (2016-10-11 14:46:47 UTC) #38
maksims (do not use this acc)
https://codereview.chromium.org/2370343002/diff/150001/device/generic_sensor/ambient_light_reader_iio.h File device/generic_sensor/ambient_light_reader_iio.h (right): https://codereview.chromium.org/2370343002/diff/150001/device/generic_sensor/ambient_light_reader_iio.h#newcode19 device/generic_sensor/ambient_light_reader_iio.h:19: bool ReadSensorLuxValue(double* lux); On 2016/10/11 14:46:46, Mikhail wrote: > ...
4 years, 2 months ago (2016-10-11 15:00:57 UTC) #39
Mikhail
On 2016/10/11 15:00:57, maksims wrote: > https://codereview.chromium.org/2370343002/diff/150001/device/generic_sensor/ambient_light_reader_iio.h > File device/generic_sensor/ambient_light_reader_iio.h (right): > > https://codereview.chromium.org/2370343002/diff/150001/device/generic_sensor/ambient_light_reader_iio.h#newcode19 > ...
4 years, 2 months ago (2016-10-12 10:07:41 UTC) #40
maksims (do not use this acc)
please review https://codereview.chromium.org/2370343002/diff/150001/device/generic_sensor/BUILD.gn File device/generic_sensor/BUILD.gn (right): https://codereview.chromium.org/2370343002/diff/150001/device/generic_sensor/BUILD.gn#newcode44 device/generic_sensor/BUILD.gn:44: if (is_chromeos || is_linux) { On 2016/10/11 ...
4 years, 2 months ago (2016-10-14 12:31:45 UTC) #49
Mikhail
https://codereview.chromium.org/2370343002/diff/190001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/2370343002/diff/190001/chrome/browser/about_flags.cc#newcode2024 chrome/browser/about_flags.cc:2024: kOsAndroid | kOsMac | kOsLinux | kOsCrOS, nice :) ...
4 years, 2 months ago (2016-10-14 13:59:05 UTC) #52
maksims (do not use this acc)
https://codereview.chromium.org/2370343002/diff/190001/device/generic_sensor/iio/sensor_data_iio.cc File device/generic_sensor/iio/sensor_data_iio.cc (right): https://codereview.chromium.org/2370343002/diff/190001/device/generic_sensor/iio/sensor_data_iio.cc#newcode14 device/generic_sensor/iio/sensor_data_iio.cc:14: const size_t kAlsCols = 5; On 2016/10/14 13:59:04, Mikhail ...
4 years, 2 months ago (2016-10-17 06:06:59 UTC) #55
Mikhail
https://codereview.chromium.org/2370343002/diff/250001/device/generic_sensor/iio/platform_sensor_utils_iio.cc File device/generic_sensor/iio/platform_sensor_utils_iio.cc (right): https://codereview.chromium.org/2370343002/diff/250001/device/generic_sensor/iio/platform_sensor_utils_iio.cc#newcode29 device/generic_sensor/iio/platform_sensor_utils_iio.cc:29: for (size_t i = 0; i < size; i++) ...
4 years, 2 months ago (2016-10-17 10:34:12 UTC) #66
darktears
https://codereview.chromium.org/2370343002/diff/250001/device/generic_sensor/iio/platform_sensor_utils_iio.h File device/generic_sensor/iio/platform_sensor_utils_iio.h (right): https://codereview.chromium.org/2370343002/diff/250001/device/generic_sensor/iio/platform_sensor_utils_iio.h#newcode16 device/generic_sensor/iio/platform_sensor_utils_iio.h:16: class SensorReader { On 2016/10/17 10:34:11, Mikhail wrote: > ...
4 years, 2 months ago (2016-10-17 20:35:29 UTC) #67
maksims (do not use this acc)
https://codereview.chromium.org/2370343002/diff/250001/device/generic_sensor/iio/platform_sensor_utils_iio.cc File device/generic_sensor/iio/platform_sensor_utils_iio.cc (right): https://codereview.chromium.org/2370343002/diff/250001/device/generic_sensor/iio/platform_sensor_utils_iio.cc#newcode29 device/generic_sensor/iio/platform_sensor_utils_iio.cc:29: for (size_t i = 0; i < size; i++) ...
4 years, 2 months ago (2016-10-18 06:50:42 UTC) #72
Mikhail
looks good overall, some comments to the newly added code. https://codereview.chromium.org/2370343002/diff/290001/device/generic_sensor/iio/sensor_data_iio.h File device/generic_sensor/iio/sensor_data_iio.h (right): https://codereview.chromium.org/2370343002/diff/290001/device/generic_sensor/iio/sensor_data_iio.h#newcode12 ...
4 years, 2 months ago (2016-10-18 11:37:21 UTC) #75
maksims (do not use this acc)
https://codereview.chromium.org/2370343002/diff/290001/device/generic_sensor/iio/sensor_data_iio.h File device/generic_sensor/iio/sensor_data_iio.h (right): https://codereview.chromium.org/2370343002/diff/290001/device/generic_sensor/iio/sensor_data_iio.h#newcode12 device/generic_sensor/iio/sensor_data_iio.h:12: struct SensorDataIio { On 2016/10/18 11:37:20, Mikhail wrote: > ...
4 years, 2 months ago (2016-10-19 06:57:09 UTC) #78
shalamov
https://codereview.chromium.org/2370343002/diff/310001/device/generic_sensor/platform_sensor_iio.cc File device/generic_sensor/platform_sensor_iio.cc (right): https://codereview.chromium.org/2370343002/diff/310001/device/generic_sensor/platform_sensor_iio.cc#newcode96 device/generic_sensor/platform_sensor_iio.cc:96: if (!sensor_reader_->ReadSensorReading(&reading)) { Should notify PlatformSensor about error. check ...
4 years, 2 months ago (2016-10-19 10:03:22 UTC) #80
Mikhail
On 2016/10/19 06:57:09, maksims wrote: > https://codereview.chromium.org/2370343002/diff/290001/device/generic_sensor/iio/sensor_data_iio.h > File device/generic_sensor/iio/sensor_data_iio.h (right): > > https://codereview.chromium.org/2370343002/diff/290001/device/generic_sensor/iio/sensor_data_iio.h#newcode12 > ...
4 years, 2 months ago (2016-10-19 10:49:07 UTC) #81
maksims (do not use this acc)
On 2016/10/19 10:49:07, Mikhail wrote: > On 2016/10/19 06:57:09, maksims wrote: > > > https://codereview.chromium.org/2370343002/diff/290001/device/generic_sensor/iio/sensor_data_iio.h ...
4 years, 2 months ago (2016-10-19 11:48:27 UTC) #84
Mikhail
On 2016/10/18 11:37:21, Mikhail wrote: > > https://codereview.chromium.org/2370343002/diff/290001/device/generic_sensor/iio/sensor_reader_unittest.cc#newcode92 > device/generic_sensor/iio/sensor_reader_unittest.cc:92: std::string value1, > let's make ...
4 years, 2 months ago (2016-10-19 12:07:58 UTC) #87
Mikhail
https://codereview.chromium.org/2370343002/diff/370001/device/generic_sensor/iio/sensor_reader_unittest.cc File device/generic_sensor/iio/sensor_reader_unittest.cc (right): https://codereview.chromium.org/2370343002/diff/370001/device/generic_sensor/iio/sensor_reader_unittest.cc#newcode59 device/generic_sensor/iio/sensor_reader_unittest.cc:59: base::ScopedTempDir sensors_dir; pls use just 'base::CreateDirectory(path)' instead of having ...
4 years, 2 months ago (2016-10-19 13:10:13 UTC) #93
maksims (do not use this acc)
https://codereview.chromium.org/2370343002/diff/310001/device/generic_sensor/platform_sensor_iio.cc File device/generic_sensor/platform_sensor_iio.cc (right): https://codereview.chromium.org/2370343002/diff/310001/device/generic_sensor/platform_sensor_iio.cc#newcode96 device/generic_sensor/platform_sensor_iio.cc:96: if (!sensor_reader_->ReadSensorReading(&reading)) { On 2016/10/19 10:03:22, shalamov wrote: > ...
4 years, 2 months ago (2016-10-19 13:25:57 UTC) #96
Mikhail
lgtm https://codereview.chromium.org/2370343002/diff/410001/device/generic_sensor/iio/platform_sensor_utils_iio.cc File device/generic_sensor/iio/platform_sensor_utils_iio.cc (right): https://codereview.chromium.org/2370343002/diff/410001/device/generic_sensor/iio/platform_sensor_utils_iio.cc#newcode88 device/generic_sensor/iio/platform_sensor_utils_iio.cc:88: readings.values[i] = new_value; nit: readings.values[i++] = new_value;
4 years, 2 months ago (2016-10-19 13:56:13 UTC) #97
shalamov
https://codereview.chromium.org/2370343002/diff/410001/device/generic_sensor/iio/platform_sensor_utils_iio.cc File device/generic_sensor/iio/platform_sensor_utils_iio.cc (right): https://codereview.chromium.org/2370343002/diff/410001/device/generic_sensor/iio/platform_sensor_utils_iio.cc#newcode75 device/generic_sensor/iio/platform_sensor_utils_iio.cc:75: bool SensorReader::ReadSensorReading(SensorReading* reading) { why not to pass SensorReading& ...
4 years, 2 months ago (2016-10-19 16:37:12 UTC) #98
Mikhail
https://codereview.chromium.org/2370343002/diff/410001/device/generic_sensor/iio/platform_sensor_utils_iio.cc File device/generic_sensor/iio/platform_sensor_utils_iio.cc (right): https://codereview.chromium.org/2370343002/diff/410001/device/generic_sensor/iio/platform_sensor_utils_iio.cc#newcode75 device/generic_sensor/iio/platform_sensor_utils_iio.cc:75: bool SensorReader::ReadSensorReading(SensorReading* reading) { On 2016/10/19 16:37:11, shalamov wrote: ...
4 years, 2 months ago (2016-10-19 17:25:41 UTC) #99
Mikhail
On 2016/10/19 17:25:41, Mikhail wrote: > On 2016/10/19 16:37:11, shalamov wrote: > > who is ...
4 years, 2 months ago (2016-10-19 19:01:29 UTC) #100
maksims (do not use this acc)
https://codereview.chromium.org/2370343002/diff/410001/device/generic_sensor/iio/platform_sensor_utils_iio.cc File device/generic_sensor/iio/platform_sensor_utils_iio.cc (right): https://codereview.chromium.org/2370343002/diff/410001/device/generic_sensor/iio/platform_sensor_utils_iio.cc#newcode88 device/generic_sensor/iio/platform_sensor_utils_iio.cc:88: readings.values[i] = new_value; On 2016/10/19 13:56:13, Mikhail wrote: > ...
4 years, 2 months ago (2016-10-20 09:50:36 UTC) #101
maksims (do not use this acc)
tim, rockot and reilly, please review
4 years, 2 months ago (2016-10-20 09:55:37 UTC) #106
maksims (do not use this acc)
https://codereview.chromium.org/2370343002/diff/410001/device/generic_sensor/platform_sensor_provider_iio.cc File device/generic_sensor/platform_sensor_provider_iio.cc (right): https://codereview.chromium.org/2370343002/diff/410001/device/generic_sensor/platform_sensor_provider_iio.cc#newcode22 device/generic_sensor/platform_sensor_provider_iio.cc:22: PlatformSensorProviderIio(); On 2016/10/19 16:37:11, shalamov wrote: > make private ...
4 years, 2 months ago (2016-10-20 10:04:52 UTC) #112
Ken Rockot(use gerrit already)
I defer to reillyg
4 years, 2 months ago (2016-10-20 19:22:27 UTC) #126
Reilly Grant (use Gerrit)
Why must we use a timer to poll sysfs instead of non-blocking reads on the ...
4 years, 2 months ago (2016-10-20 20:35:43 UTC) #127
maksims (do not use this acc)
On 2016/10/20 20:35:43, Reilly Grant wrote: > Why must we use a timer to poll ...
4 years, 2 months ago (2016-10-20 20:59:38 UTC) #128
Reilly Grant (use Gerrit)
On 2016/10/20 at 20:59:38, maksim.sisov wrote: > On 2016/10/20 20:35:43, Reilly Grant wrote: > > ...
4 years, 2 months ago (2016-10-20 21:14:31 UTC) #129
maksims (do not use this acc)
On 2016/10/20 21:14:31, Reilly Grant wrote: > On 2016/10/20 at 20:59:38, maksim.sisov wrote: > > ...
4 years, 1 month ago (2016-10-24 08:25:06 UTC) #130
maksims (do not use this acc)
On 2016/10/24 08:25:06, maksims wrote: > On 2016/10/20 21:14:31, Reilly Grant wrote: > > On ...
4 years, 1 month ago (2016-10-24 10:17:52 UTC) #131
Reilly Grant (use Gerrit)
It's unfortunate that so many drivers don't support events. https://codereview.chromium.org/2370343002/diff/510001/device/generic_sensor/iio/platform_sensor_utils_iio.cc File device/generic_sensor/iio/platform_sensor_utils_iio.cc (right): https://codereview.chromium.org/2370343002/diff/510001/device/generic_sensor/iio/platform_sensor_utils_iio.cc#newcode66 device/generic_sensor/iio/platform_sensor_utils_iio.cc:66: ...
4 years, 1 month ago (2016-10-24 21:49:27 UTC) #132
maksims (do not use this acc)
Yes, unfortunately, drivers are not that good yet. Hope it will improve in the future. ...
4 years, 1 month ago (2016-10-25 06:23:54 UTC) #135
maksims (do not use this acc)
https://codereview.chromium.org/2370343002/diff/510001/device/generic_sensor/iio/platform_sensor_utils_iio.cc File device/generic_sensor/iio/platform_sensor_utils_iio.cc (right): https://codereview.chromium.org/2370343002/diff/510001/device/generic_sensor/iio/platform_sensor_utils_iio.cc#newcode67 device/generic_sensor/iio/platform_sensor_utils_iio.cc:67: return base::WrapUnique(new SensorReader(std::move(sensor_paths))); On 2016/10/25 06:23:54, maksims wrote: > ...
4 years, 1 month ago (2016-10-25 06:50:14 UTC) #146
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2370343002/diff/510001/device/generic_sensor/iio/sensor_data_iio.h File device/generic_sensor/iio/sensor_data_iio.h (right): https://codereview.chromium.org/2370343002/diff/510001/device/generic_sensor/iio/sensor_data_iio.h#newcode20 device/generic_sensor/iio/sensor_data_iio.h:20: const char** sensor_file_names[3]; On 2016/10/25 at 06:23:54, maksims wrote: ...
4 years, 1 month ago (2016-10-25 17:36:25 UTC) #153
maksims (do not use this acc)
4 years, 1 month ago (2016-10-26 09:32:56 UTC) #156
maksims (do not use this acc)
On 2016/10/25 17:36:25, Reilly Grant wrote: > https://codereview.chromium.org/2370343002/diff/510001/device/generic_sensor/iio/sensor_data_iio.h > File device/generic_sensor/iio/sensor_data_iio.h (right): > > https://codereview.chromium.org/2370343002/diff/510001/device/generic_sensor/iio/sensor_data_iio.h#newcode20 ...
4 years, 1 month ago (2016-10-26 09:33:17 UTC) #157
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2370343002/diff/710001/device/generic_sensor/platform_sensor_provider_iio.cc File device/generic_sensor/platform_sensor_provider_iio.cc (right): https://codereview.chromium.org/2370343002/diff/710001/device/generic_sensor/platform_sensor_provider_iio.cc#newcode62 device/generic_sensor/platform_sensor_provider_iio.cc:62: std::unique_ptr<base::Thread> manager_thread_; Can you explain why a separate thread ...
4 years, 1 month ago (2016-10-26 21:53:42 UTC) #182
maksims (do not use this acc)
https://codereview.chromium.org/2370343002/diff/710001/device/generic_sensor/platform_sensor_provider_iio.cc File device/generic_sensor/platform_sensor_provider_iio.cc (right): https://codereview.chromium.org/2370343002/diff/710001/device/generic_sensor/platform_sensor_provider_iio.cc#newcode62 device/generic_sensor/platform_sensor_provider_iio.cc:62: std::unique_ptr<base::Thread> manager_thread_; On 2016/10/26 21:53:42, Reilly Grant wrote: > ...
4 years, 1 month ago (2016-10-27 05:29:19 UTC) #185
maksims (do not use this acc)
On 2016/10/27 05:29:19, maksims wrote: > https://codereview.chromium.org/2370343002/diff/710001/device/generic_sensor/platform_sensor_provider_iio.cc > File device/generic_sensor/platform_sensor_provider_iio.cc (right): > > https://codereview.chromium.org/2370343002/diff/710001/device/generic_sensor/platform_sensor_provider_iio.cc#newcode62 > ...
4 years, 1 month ago (2016-10-27 10:41:57 UTC) #191
Reilly Grant (use Gerrit)
On 2016/10/27 at 10:41:57, maksim.sisov wrote: > On 2016/10/27 05:29:19, maksims wrote: > > https://codereview.chromium.org/2370343002/diff/710001/device/generic_sensor/platform_sensor_provider_iio.cc ...
4 years, 1 month ago (2016-10-27 22:49:15 UTC) #204
Reilly Grant (use Gerrit)
On 2016/10/27 at 22:49:15, Reilly Grant wrote: > On 2016/10/27 at 10:41:57, maksim.sisov wrote: > ...
4 years, 1 month ago (2016-10-27 22:50:33 UTC) #205
maksims (do not use this acc)
On 2016/10/27 22:50:33, Reilly Grant wrote: > On 2016/10/27 at 22:49:15, Reilly Grant wrote: > ...
4 years, 1 month ago (2016-10-28 08:35:49 UTC) #211
maksims (do not use this acc)
FYI, I'm going to implement a manager as a next step using udev from //devices. ...
4 years, 1 month ago (2016-10-28 11:20:09 UTC) #220
Mikhail
https://codereview.chromium.org/2370343002/diff/910001/device/generic_sensor/sensor_provider_impl.cc File device/generic_sensor/sensor_provider_impl.cc (right): https://codereview.chromium.org/2370343002/diff/910001/device/generic_sensor/sensor_provider_impl.cc#newcode40 device/generic_sensor/sensor_provider_impl.cc:40: provider->SetTaskRunner(task_runner); 1) this is better to be a ctor ...
4 years, 1 month ago (2016-10-28 11:29:03 UTC) #221
maksims (do not use this acc)
On 2016/10/28 11:29:03, Mikhail wrote: > https://codereview.chromium.org/2370343002/diff/910001/device/generic_sensor/sensor_provider_impl.cc > File device/generic_sensor/sensor_provider_impl.cc (right): > > https://codereview.chromium.org/2370343002/diff/910001/device/generic_sensor/sensor_provider_impl.cc#newcode40 > ...
4 years, 1 month ago (2016-10-28 14:15:03 UTC) #226
maksims (do not use this acc)
On 2016/10/28 11:20:09, maksims wrote: > FYI, I'm going to implement a manager as a ...
4 years, 1 month ago (2016-10-29 14:13:59 UTC) #229
Mikhail
https://codereview.chromium.org/2370343002/diff/930001/device/generic_sensor/platform_sensor_provider_iio.cc File device/generic_sensor/platform_sensor_provider_iio.cc (right): https://codereview.chromium.org/2370343002/diff/930001/device/generic_sensor/platform_sensor_provider_iio.cc#newcode81 device/generic_sensor/platform_sensor_provider_iio.cc:81: DCHECK(!file_task_runner->BelongsToCurrentThread()); think this DCHECK is unnecessary. https://codereview.chromium.org/2370343002/diff/930001/device/generic_sensor/platform_sensor_provider_iio.cc#newcode82 device/generic_sensor/platform_sensor_provider_iio.cc:82: file_task_runner_ ...
4 years, 1 month ago (2016-10-31 12:50:32 UTC) #230
timvolodine
a couple drive-by comments below https://codereview.chromium.org/2370343002/diff/930001/device/generic_sensor/platform_sensor_provider_iio.cc File device/generic_sensor/platform_sensor_provider_iio.cc (right): https://codereview.chromium.org/2370343002/diff/930001/device/generic_sensor/platform_sensor_provider_iio.cc#newcode38 device/generic_sensor/platform_sensor_provider_iio.cc:38: polling_thread_.reset(new base::Thread("Linux/CrOS manager thread")); ...
4 years, 1 month ago (2016-10-31 18:28:18 UTC) #231
maksims (do not use this acc)
https://codereview.chromium.org/2370343002/diff/930001/device/generic_sensor/platform_sensor_provider_iio.cc File device/generic_sensor/platform_sensor_provider_iio.cc (right): https://codereview.chromium.org/2370343002/diff/930001/device/generic_sensor/platform_sensor_provider_iio.cc#newcode38 device/generic_sensor/platform_sensor_provider_iio.cc:38: polling_thread_.reset(new base::Thread("Linux/CrOS manager thread")); On 2016/10/31 18:28:17, timvolodine wrote: ...
4 years, 1 month ago (2016-10-31 19:21:48 UTC) #232
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2370343002/diff/930001/device/generic_sensor/platform_sensor_provider_iio.h File device/generic_sensor/platform_sensor_provider_iio.h (right): https://codereview.chromium.org/2370343002/diff/930001/device/generic_sensor/platform_sensor_provider_iio.h#newcode19 device/generic_sensor/platform_sensor_provider_iio.h:19: class PlatformSensorProviderIio : public PlatformSensorProvider { On 2016/10/31 at ...
4 years, 1 month ago (2016-10-31 19:33:21 UTC) #233
Reilly Grant (use Gerrit)
lgtm once the existing comments are resolved https://codereview.chromium.org/2370343002/diff/930001/device/generic_sensor/iio/platform_sensor_utils_iio.cc File device/generic_sensor/iio/platform_sensor_utils_iio.cc (right): https://codereview.chromium.org/2370343002/diff/930001/device/generic_sensor/iio/platform_sensor_utils_iio.cc#newcode63 device/generic_sensor/iio/platform_sensor_utils_iio.cc:63: return base::WrapUnique(new ...
4 years, 1 month ago (2016-10-31 21:18:09 UTC) #234
maksims (do not use this acc)
alexmos@chromium.org: Please review changes in about_flags https://codereview.chromium.org/2370343002/diff/930001/device/generic_sensor/iio/platform_sensor_utils_iio.cc File device/generic_sensor/iio/platform_sensor_utils_iio.cc (right): https://codereview.chromium.org/2370343002/diff/930001/device/generic_sensor/iio/platform_sensor_utils_iio.cc#newcode63 device/generic_sensor/iio/platform_sensor_utils_iio.cc:63: return base::WrapUnique(new SensorReader(std::move(sensor_paths))); ...
4 years, 1 month ago (2016-11-01 08:10:31 UTC) #244
maksims (do not use this acc)
https://codereview.chromium.org/2370343002/diff/930001/device/generic_sensor/iio/sensor_data_iio.cc File device/generic_sensor/iio/sensor_data_iio.cc (right): https://codereview.chromium.org/2370343002/diff/930001/device/generic_sensor/iio/sensor_data_iio.cc#newcode37 device/generic_sensor/iio/sensor_data_iio.cc:37: data->sensor_file_names.push_back(file_names); On 2016/10/31 21:18:09, Reilly Grant wrote: > nit: ...
4 years, 1 month ago (2016-11-01 08:14:09 UTC) #245
maksims (do not use this acc)
alexmos@chromium.org: sorry, I meant frame_host/
4 years, 1 month ago (2016-11-01 13:21:53 UTC) #251
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2370343002/diff/930001/device/generic_sensor/iio/platform_sensor_utils_iio.cc File device/generic_sensor/iio/platform_sensor_utils_iio.cc (right): https://codereview.chromium.org/2370343002/diff/930001/device/generic_sensor/iio/platform_sensor_utils_iio.cc#newcode63 device/generic_sensor/iio/platform_sensor_utils_iio.cc:63: return base::WrapUnique(new SensorReader(std::move(sensor_paths))); On 2016/11/01 at 08:10:31, maksims wrote: ...
4 years, 1 month ago (2016-11-01 18:58:17 UTC) #252
alexmos
frame_host LGTM
4 years, 1 month ago (2016-11-01 23:23:06 UTC) #253
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/2370343002/1010001
4 years, 1 month ago (2016-11-02 07:01:50 UTC) #259
commit-bot: I haz the power
Try jobs failed on following builders: linux_site_isolation on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_site_isolation/builds/4422)
4 years, 1 month ago (2016-11-02 07:35:15 UTC) #261
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/2370343002/1030001
4 years, 1 month ago (2016-11-02 12:45:11 UTC) #268
commit-bot: I haz the power
Try jobs failed on following builders: linux_site_isolation on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_site_isolation/builds/4434)
4 years, 1 month ago (2016-11-02 14:06:47 UTC) #270
alexmos
On 2016/11/02 14:06:47, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 1 month ago (2016-11-02 16:35:27 UTC) #271
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/2370343002/1030001
4 years, 1 month ago (2016-11-03 05:47:12 UTC) #273
commit-bot: I haz the power
Try jobs failed on following builders: linux_site_isolation on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
4 years, 1 month ago (2016-11-03 07:48:08 UTC) #275
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/2370343002/1050001
4 years, 1 month ago (2016-11-03 14:51:14 UTC) #283
commit-bot: I haz the power
Committed patchset #26 (id:1050001)
4 years, 1 month ago (2016-11-03 14:57:07 UTC) #285
commit-bot: I haz the power
Patchset 26 (id:??) landed as https://crrev.com/de2d07084492be68633a47bae161cf9014ac88e2 Cr-Commit-Position: refs/heads/master@{#429584}
4 years, 1 month ago (2016-11-03 14:59:21 UTC) #287
Mathieu
A revert of this CL (patchset #26 id:1050001) has been created in https://codereview.chromium.org/2468283003/ by mathp@chromium.org. ...
4 years, 1 month ago (2016-11-03 16:00:18 UTC) #288
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2370343002/diff/1050001/device/generic_sensor/linux/sensor_data_linux.cc File device/generic_sensor/linux/sensor_data_linux.cc (right): https://codereview.chromium.org/2370343002/diff/1050001/device/generic_sensor/linux/sensor_data_linux.cc#newcode17 device/generic_sensor/linux/sensor_data_linux.cc:17: const std::string kAmbientLightFileNames[] = { This runs initializers, which ...
4 years, 1 month ago (2016-11-03 16:14:35 UTC) #289
Ken Rockot(use gerrit already)
On 2016/11/03 at 16:14:35, Ken Rockot wrote: > https://codereview.chromium.org/2370343002/diff/1050001/device/generic_sensor/linux/sensor_data_linux.cc > File device/generic_sensor/linux/sensor_data_linux.cc (right): > > ...
4 years, 1 month ago (2016-11-03 16:15:07 UTC) #290
maksims (do not use this acc)
Please confirm if I can commit again. https://codereview.chromium.org/2370343002/diff/1050001/device/generic_sensor/linux/sensor_data_linux.cc File device/generic_sensor/linux/sensor_data_linux.cc (right): https://codereview.chromium.org/2370343002/diff/1050001/device/generic_sensor/linux/sensor_data_linux.cc#newcode17 device/generic_sensor/linux/sensor_data_linux.cc:17: const std::string ...
4 years, 1 month ago (2016-11-04 08:37:33 UTC) #295
maksims (do not use this acc)
On 2016/11/04 08:37:33, maksims wrote: > Please confirm if I can commit again. > > ...
4 years, 1 month ago (2016-11-04 11:13:44 UTC) #298
Reilly Grant (use Gerrit)
4 years, 1 month ago (2016-11-04 15:23:40 UTC) #299
On 2016/11/04 11:13:44, maksims wrote:
> On 2016/11/04 08:37:33, maksims wrote:
> > Please confirm if I can commit again.
> > 
> >
>
https://codereview.chromium.org/2370343002/diff/1050001/device/generic_sensor...
> > File device/generic_sensor/linux/sensor_data_linux.cc (right):
> > 
> >
>
https://codereview.chromium.org/2370343002/diff/1050001/device/generic_sensor...
> > device/generic_sensor/linux/sensor_data_linux.cc:17: const std::string
> > kAmbientLightFileNames[] = {
> > On 2016/11/03 16:14:35, Ken Rockot wrote:
> > > This runs initializers, which are forbidden. Use C string constants
instead
> > and
> > > you should be able to reland.
> > 
> > Oh, thanks! Fixed
> 
> I meant - can I reland this cl again or should I create a new one?

Create a new CL, upload patchset 26 and 27 (to show what changed from the 1st
one landed) and send it out for review.

Powered by Google App Engine
This is Rietveld 408576698