New issue
Advanced search Search tips

Issue 663857 link

Starred by 1 user

Issue metadata

Status: Archived
Owner:
Closed: Dec 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug



Sign in to add a comment

Bad usage of base::SysInfo::GetLsbReleaseBoard().

Project Member Reported by tnagel@chromium.org, Nov 9 2016

Issue description

GetLsbReleaseBoard() has confusing semantics and is insufficiently documented.

On developer builds, it contains the board name, however in release builds, the board name is appended with signature information (eg. "-signed-mp-v2keys").  As devs develop and test with test builds they never see the appended signature information and as a consequence there's several places where special-casing of boards happens by string match against the board name which works on dev images but fails on production builds.

There's wrong use at least in LockStateController::PreLockAnimationFinished() and DriveMetricsProvider::HasSeekPenalty(), I haven't looked in detail at the other call sites.
 
Components: OS>Systems

Comment 2 by tnagel@chromium.org, Nov 10 2016

Cc: -igorcov@chromium.org
Owner: igorcov@chromium.org
Status: Assigned (was: Available)
We should add a warning to the description of GetLsbReleaseBoard() and provider a safer way to obtain the board name.
Status: Started (was: Assigned)
Status: Fixed (was: Started)

Comment 6 by dchan@google.com, Mar 4 2017

Labels: VerifyIn-58

Comment 7 by dchan@google.com, Apr 17 2017

Labels: VerifyIn-59

Comment 8 by dchan@google.com, May 30 2017

Labels: VerifyIn-60

Comment 9 by dchan@chromium.org, Aug 1 2017

Labels: VerifyIn-61

Comment 10 by dchan@chromium.org, Oct 14 2017

Status: Archived (was: Fixed)

Sign in to add a comment