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

Issue 2489853002: Added function to provide the short board name of the device (Closed)

Created:
4 years, 1 month ago by igorcov
Modified:
4 years ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added function to provide the short board name of the device To be used in Chrome OS when separating functionality based on board. Fixed the bad usage of GetLsbReleaseBoard(). BUG=653814, 663857 Committed: https://crrev.com/1a5a3f57210bc089a74d37ef6cc50f034d281c41 Cr-Commit-Position: refs/heads/master@{#435679}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fixed review comments #

Patch Set 3 : Fixed bad usage of function #

Patch Set 4 : Fixed the lock_state_controller too #

Total comments: 3

Patch Set 5 : Fixed the review comment #

Total comments: 7

Patch Set 6 : Fixed review comments #

Patch Set 7 : Small nit #

Total comments: 3

Patch Set 8 : Fixed review comments #

Total comments: 6

Patch Set 9 : Added comment related parrot devices #

Patch Set 10 : Nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -8 lines) Patch
M ash/wm/lock_state_controller.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -4 lines 0 comments Download
M base/sys_info.h View 1 2 3 4 5 6 7 1 chunk +11 lines, -1 line 0 comments Download
M base/sys_info_chromeos.cc View 1 2 3 4 5 6 7 8 9 1 chunk +10 lines, -0 lines 0 comments Download
M base/sys_info_unittest.cc View 1 1 chunk +10 lines, -0 lines 0 comments Download
M components/metrics/drive_metrics_provider_linux.cc View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 48 (14 generated)
Thiemo Nagel
I've filed 663857 for this.
4 years, 1 month ago (2016-11-09 20:42:13 UTC) #3
Thiemo Nagel
Please add a unit test. https://codereview.chromium.org/2489853002/diff/1/base/sys_info.h File base/sys_info.h (right): https://codereview.chromium.org/2489853002/diff/1/base/sys_info.h#newcode109 base/sys_info.h:109: // Convenience function for ...
4 years, 1 month ago (2016-11-09 20:48:47 UTC) #4
igorcov
Added unit tests and improved the comments. Please take a look again. Thank you,
4 years, 1 month ago (2016-11-16 14:19:10 UTC) #5
Thiemo Nagel
On 2016/11/16 14:19:10, igorcov wrote: > Added unit tests and improved the comments. Please take ...
4 years, 1 month ago (2016-11-16 16:39:51 UTC) #6
igorcov
I've left the LockStateController unchanged, since looking at https://chromium.googlesource.com/chromium/src/+/896955de48930899c6c43f24af45ced7af96c5f5%5E%21/#F0 I assume the developer knew what ...
4 years, 1 month ago (2016-11-17 13:56:30 UTC) #8
Thiemo Nagel
On 2016/11/17 13:56:30, igorcov wrote: > I assume the developer knew what what to expect ...
4 years, 1 month ago (2016-11-17 14:00:50 UTC) #9
Thiemo Nagel
Hi Nikita, why do you parse mario differently than alex and zgb? That looks like ...
4 years, 1 month ago (2016-11-17 14:02:18 UTC) #10
igorcov
I've changed the LockStateController too, and ran the associated tests for it. Please take a ...
4 years, 1 month ago (2016-11-22 17:55:34 UTC) #11
Nikita (slow)
On 2016/11/17 14:02:18, Thiemo Nagel (slow) wrote: > Hi Nikita, > > why do you ...
4 years, 1 month ago (2016-11-22 19:09:11 UTC) #12
Nikita (slow)
On 2016/11/17 14:02:18, Thiemo Nagel (slow) wrote: > Hi Nikita, > > why do you ...
4 years, 1 month ago (2016-11-22 19:09:17 UTC) #13
Nikita (slow)
https://codereview.chromium.org/2489853002/diff/60001/ash/wm/lock_state_controller.cc File ash/wm/lock_state_controller.cc (right): https://codereview.chromium.org/2489853002/diff/60001/ash/wm/lock_state_controller.cc#newcode492 ash/wm/lock_state_controller.cc:492: if (board == "x86-mario" || board == "x86-alex" || ...
4 years, 1 month ago (2016-11-22 19:10:11 UTC) #15
igorcov
Thanks for clarification Nikita. I've changed the code. Technically this introduces a change from previous ...
4 years ago (2016-11-23 10:03:49 UTC) #16
Thiemo Nagel
Dan, since you did https://codereview.chromium.org/1057093003, could you maybe comment whether that was intended to cover ...
4 years ago (2016-11-23 20:21:19 UTC) #18
Dan Beam
https://codereview.chromium.org/2489853002/diff/80001/components/metrics/drive_metrics_provider_linux.cc File components/metrics/drive_metrics_provider_linux.cc (right): https://codereview.chromium.org/2489853002/diff/80001/components/metrics/drive_metrics_provider_linux.cc#newcode35 components/metrics/drive_metrics_provider_linux.cc:35: #if defined(OS_CHROMEOS) On 2016/11/23 20:21:19, Thiemo Nagel (slow) wrote: ...
4 years ago (2016-11-23 21:18:37 UTC) #19
Thiemo Nagel
> > ¯\_(ツ)_/¯ > > maybe use StartsWith()? Sgtm.
4 years ago (2016-11-24 10:07:16 UTC) #20
Thiemo Nagel
On 2016/11/24 10:07:16, Thiemo Nagel (slow) wrote: > > > > ¯\_(ツ)_/¯ > > > ...
4 years ago (2016-11-24 10:09:23 UTC) #21
igorcov
https://codereview.chromium.org/2489853002/diff/60001/ash/wm/lock_state_controller.cc File ash/wm/lock_state_controller.cc (right): https://codereview.chromium.org/2489853002/diff/60001/ash/wm/lock_state_controller.cc#newcode492 ash/wm/lock_state_controller.cc:492: if (board == "x86-mario" || board == "x86-alex" || ...
4 years ago (2016-11-25 11:08:59 UTC) #22
Thiemo Nagel
https://codereview.chromium.org/2489853002/diff/120001/ash/wm/lock_state_controller.cc File ash/wm/lock_state_controller.cc (right): https://codereview.chromium.org/2489853002/diff/120001/ash/wm/lock_state_controller.cc#newcode492 ash/wm/lock_state_controller.cc:492: if (board == "x86-mario" || board == "daisy" || ...
4 years ago (2016-11-25 15:16:12 UTC) #23
igorcov
https://codereview.chromium.org/2489853002/diff/120001/ash/wm/lock_state_controller.cc File ash/wm/lock_state_controller.cc (right): https://codereview.chromium.org/2489853002/diff/120001/ash/wm/lock_state_controller.cc#newcode492 ash/wm/lock_state_controller.cc:492: if (board == "x86-mario" || board == "daisy" || ...
4 years ago (2016-11-28 12:09:49 UTC) #24
Thiemo Nagel
lgtm (but I'm not an owner)
4 years ago (2016-11-28 15:12:50 UTC) #25
igorcov
thakis@ PTAL base/* asvitkine@ PTAL components/metrics/drive_metrics_provider_linux.cc pkotwicz@ PTAL ash/wm/lock_state_controller.cc
4 years ago (2016-11-28 15:46:38 UTC) #27
Nico
lgtm https://codereview.chromium.org/2489853002/diff/140001/components/metrics/drive_metrics_provider_linux.cc File components/metrics/drive_metrics_provider_linux.cc (right): https://codereview.chromium.org/2489853002/diff/140001/components/metrics/drive_metrics_provider_linux.cc#newcode39 components/metrics/drive_metrics_provider_linux.cc:39: !base::StartsWith(board, "parrot", base::CompareCase::SENSITIVE)) { why do you need ...
4 years ago (2016-11-28 15:52:17 UTC) #28
igorcov
https://codereview.chromium.org/2489853002/diff/140001/components/metrics/drive_metrics_provider_linux.cc File components/metrics/drive_metrics_provider_linux.cc (right): https://codereview.chromium.org/2489853002/diff/140001/components/metrics/drive_metrics_provider_linux.cc#newcode39 components/metrics/drive_metrics_provider_linux.cc:39: !base::StartsWith(board, "parrot", base::CompareCase::SENSITIVE)) { On 2016/11/28 15:52:17, Nico wrote: ...
4 years ago (2016-11-28 15:58:03 UTC) #29
Alexei Svitkine (slow)
lgtm % comments Assuming the logic makes sense to the ChromeOS folks. https://codereview.chromium.org/2489853002/diff/140001/base/sys_info_chromeos.cc File base/sys_info_chromeos.cc ...
4 years ago (2016-11-28 16:03:29 UTC) #30
igorcov
https://codereview.chromium.org/2489853002/diff/140001/base/sys_info_chromeos.cc File base/sys_info_chromeos.cc (right): https://codereview.chromium.org/2489853002/diff/140001/base/sys_info_chromeos.cc#newcode206 base/sys_info_chromeos.cc:206: if (index != std::string::npos) { On 2016/11/28 16:03:28, Alexei ...
4 years ago (2016-11-28 16:37:09 UTC) #31
Dan Beam
lgtm but general observation: something somewhere seems to be creating this string from various permutations. ...
4 years ago (2016-11-29 01:01:10 UTC) #32
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/2489853002/180001
4 years ago (2016-11-29 09:57:22 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/314398)
4 years ago (2016-11-29 10:04:43 UTC) #37
igorcov
On 2016/11/29 01:01:10, Dan Beam wrote: > lgtm but general observation: something somewhere seems to ...
4 years ago (2016-11-29 10:16:25 UTC) #38
igorcov
varkha@chromium.org PTAL ash/wm/* Thanks
4 years ago (2016-12-01 17:04:06 UTC) #40
varkha
On 2016/12/01 17:04:06, igorcov wrote: > mailto:varkha@chromium.org PTAL ash/wm/* > Thanks ash/wm/ lgtm.
4 years ago (2016-12-01 18:46:22 UTC) #41
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/2489853002/180001
4 years ago (2016-12-01 18:47:16 UTC) #43
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years ago (2016-12-01 19:43:11 UTC) #46
commit-bot: I haz the power
4 years ago (2016-12-01 19:45:31 UTC) #48
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/1a5a3f57210bc089a74d37ef6cc50f034d281c41
Cr-Commit-Position: refs/heads/master@{#435679}

Powered by Google App Engine
This is Rietveld 408576698