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

Issue 1234543003: Report Android Build.MODEL in SystemProfileProto hardware_class. (Closed)

Created:
5 years, 5 months ago by tdresser
Modified:
5 years, 4 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Report Android Build.MODEL in SystemProfileProto hardware_class. BUG=509018 Committed: https://crrev.com/ae416695267e33d69c903a30783fc522bf93509d Cr-Commit-Position: refs/heads/master@{#339037}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Fix typo, use GetDeviceName(). #

Total comments: 5

Patch Set 3 : Remove GetDeviceName(). #

Total comments: 4

Patch Set 4 : Address jdduke's comments. #

Total comments: 4

Patch Set 5 : Address rkaplow's comments. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -40 lines) Patch
M base/sys_info.h View 1 2 3 4 2 chunks +3 lines, -6 lines 0 comments Download
M base/sys_info.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/sys_info_android.cc View 1 2 3 2 chunks +17 lines, -17 lines 0 comments Download
M chrome/browser/ui/android/android_about_app_info.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/metrics/proto/system_profile.proto View 1 2 3 4 1 chunk +8 lines, -4 lines 1 comment Download
M content/common/user_agent.cc View 1 2 3 2 chunks +1 line, -11 lines 0 comments Download

Messages

Total messages: 41 (12 generated)
tdresser
PTAL
5 years, 5 months ago (2015-07-10 18:37:28 UTC) #2
jdduke (slow)
+dfalcantara who originally added some of the current sys_info_android routines. https://codereview.chromium.org/1234543003/diff/1/base/sys_info_android.cc File base/sys_info_android.cc (right): https://codereview.chromium.org/1234543003/diff/1/base/sys_info_android.cc#newcode177 ...
5 years, 5 months ago (2015-07-10 19:16:05 UTC) #4
Nico
https://codereview.chromium.org/1234543003/diff/1/base/sys_info.h File base/sys_info.h (right): https://codereview.chromium.org/1234543003/diff/1/base/sys_info.h#newcode55 base/sys_info.h:55: // string if machime model is unknown or an ...
5 years, 5 months ago (2015-07-10 19:52:22 UTC) #5
jdduke (slow)
https://codereview.chromium.org/1234543003/diff/1/base/sys_info_android.cc File base/sys_info_android.cc (right): https://codereview.chromium.org/1234543003/diff/1/base/sys_info_android.cc#newcode182 base/sys_info_android.cc:182: return base::android::BuildInfo::GetInstance()->model(); On 2015/07/10 19:52:22, Nico wrote: > This ...
5 years, 5 months ago (2015-07-10 20:01:14 UTC) #6
gone
https://codereview.chromium.org/1234543003/diff/1/base/sys_info_android.cc File base/sys_info_android.cc (right): https://codereview.chromium.org/1234543003/diff/1/base/sys_info_android.cc#newcode177 base/sys_info_android.cc:177: __system_property_get("ro.product.model", device_model_str); On 2015/07/10 19:16:05, jdduke wrote: > Hmm, ...
5 years, 5 months ago (2015-07-10 20:58:11 UTC) #8
tdresser
https://codereview.chromium.org/1234543003/diff/1/base/sys_info.h File base/sys_info.h (right): https://codereview.chromium.org/1234543003/diff/1/base/sys_info.h#newcode55 base/sys_info.h:55: // string if machime model is unknown or an ...
5 years, 5 months ago (2015-07-13 13:19:23 UTC) #10
jdduke (slow)
https://codereview.chromium.org/1234543003/diff/40001/base/sys_info.h File base/sys_info.h (right): https://codereview.chromium.org/1234543003/diff/40001/base/sys_info.h#newcode56 base/sys_info.h:56: // e.g. MacPro1,1 on Mac. another example for Android ...
5 years, 5 months ago (2015-07-14 15:04:31 UTC) #11
tdresser
https://codereview.chromium.org/1234543003/diff/40001/base/sys_info.h File base/sys_info.h (right): https://codereview.chromium.org/1234543003/diff/40001/base/sys_info.h#newcode56 base/sys_info.h:56: // e.g. MacPro1,1 on Mac. On 2015/07/14 15:04:31, jdduke ...
5 years, 5 months ago (2015-07-14 18:42:40 UTC) #12
gone
https://chromiumcodereview.appspot.com/1234543003/diff/40001/base/sys_info.h File base/sys_info.h (right): https://chromiumcodereview.appspot.com/1234543003/diff/40001/base/sys_info.h#newcode134 base/sys_info.h:134: static std::string GetDeviceName(); On 2015/07/14 15:04:31, jdduke wrote: > ...
5 years, 5 months ago (2015-07-14 18:44:31 UTC) #13
jdduke (slow)
lgtm, thanks https://codereview.chromium.org/1234543003/diff/60001/base/sys_info_android.cc File base/sys_info_android.cc (right): https://codereview.chromium.org/1234543003/diff/60001/base/sys_info_android.cc#newcode175 base/sys_info_android.cc:175: char device_model_str[PROP_VALUE_MAX]; Nit: Should we move this ...
5 years, 5 months ago (2015-07-14 18:46:48 UTC) #14
tdresser
On 2015/07/14 18:44:31, dfalcantara wrote: > https://chromiumcodereview.appspot.com/1234543003/diff/40001/base/sys_info.h > File base/sys_info.h (right): > > https://chromiumcodereview.appspot.com/1234543003/diff/40001/base/sys_info.h#newcode134 > ...
5 years, 5 months ago (2015-07-14 18:47:22 UTC) #15
gone
On 2015/07/14 18:47:22, tdresser wrote: > On 2015/07/14 18:44:31, dfalcantara wrote: > > https://chromiumcodereview.appspot.com/1234543003/diff/40001/base/sys_info.h > ...
5 years, 5 months ago (2015-07-14 18:48:15 UTC) #16
tdresser
https://codereview.chromium.org/1234543003/diff/60001/base/sys_info_android.cc File base/sys_info_android.cc (right): https://codereview.chromium.org/1234543003/diff/60001/base/sys_info_android.cc#newcode175 base/sys_info_android.cc:175: char device_model_str[PROP_VALUE_MAX]; On 2015/07/14 18:46:48, jdduke wrote: > Nit: ...
5 years, 5 months ago (2015-07-14 19:02:28 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1234543003/80001
5 years, 5 months ago (2015-07-14 19:03:40 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/78669)
5 years, 5 months ago (2015-07-14 19:12:53 UTC) #22
tdresser
Oops, still missing LGTM from Nico. jam@, can you take a look at content/common/user_agent.cc?
5 years, 5 months ago (2015-07-14 19:17:55 UTC) #24
rkaplow
Can you also update this comment? https://code.google.com/p/chromium/codesearch#chromium/src/components/metrics/proto/system_profile.proto&q=hardware_class&sq=package:chromium&type=cs&l=124 https://codereview.chromium.org/1234543003/diff/80001/base/sys_info.h File base/sys_info.h (right): https://codereview.chromium.org/1234543003/diff/80001/base/sys_info.h#newcode57 base/sys_info.h:57: // Only ...
5 years, 5 months ago (2015-07-14 19:43:19 UTC) #26
jam
lgtm
5 years, 5 months ago (2015-07-14 20:19:56 UTC) #27
Alexei Svitkine (slow)
https://codereview.chromium.org/1234543003/diff/80001/base/sys_info_android.cc File base/sys_info_android.cc (right): https://codereview.chromium.org/1234543003/diff/80001/base/sys_info_android.cc#newcode160 base/sys_info_android.cc:160: __system_property_get("ro.product.model", device_model_str); Hmm, there's a bug saying that this ...
5 years, 5 months ago (2015-07-14 20:20:40 UTC) #29
jdduke (slow)
https://codereview.chromium.org/1234543003/diff/80001/base/sys_info_android.cc File base/sys_info_android.cc (right): https://codereview.chromium.org/1234543003/diff/80001/base/sys_info_android.cc#newcode160 base/sys_info_android.cc:160: __system_property_get("ro.product.model", device_model_str); On 2015/07/14 20:20:39, Alexei Svitkine wrote: > ...
5 years, 5 months ago (2015-07-14 20:29:57 UTC) #30
tdresser
On 2015/07/14 20:29:57, jdduke wrote: > https://codereview.chromium.org/1234543003/diff/80001/base/sys_info_android.cc > File base/sys_info_android.cc (right): > > https://codereview.chromium.org/1234543003/diff/80001/base/sys_info_android.cc#newcode160 > ...
5 years, 5 months ago (2015-07-14 20:34:40 UTC) #31
jdduke (slow)
On 2015/07/14 20:34:40, tdresser wrote: > On 2015/07/14 20:29:57, jdduke wrote: > > https://codereview.chromium.org/1234543003/diff/80001/base/sys_info_android.cc > ...
5 years, 5 months ago (2015-07-14 20:45:19 UTC) #32
tdresser
rkaplow@, does the comment in system_profile.proto look okay? https://codereview.chromium.org/1234543003/diff/80001/base/sys_info.h File base/sys_info.h (right): https://codereview.chromium.org/1234543003/diff/80001/base/sys_info.h#newcode57 base/sys_info.h:57: // ...
5 years, 5 months ago (2015-07-14 20:57:31 UTC) #33
rkaplow
lgtm
5 years, 5 months ago (2015-07-16 14:16:07 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1234543003/100001
5 years, 5 months ago (2015-07-16 14:20:25 UTC) #37
commit-bot: I haz the power
Committed patchset #5 (id:100001)
5 years, 5 months ago (2015-07-16 15:41:15 UTC) #38
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/ae416695267e33d69c903a30783fc522bf93509d Cr-Commit-Position: refs/heads/master@{#339037}
5 years, 5 months ago (2015-07-16 15:42:09 UTC) #39
Alexei Svitkine (slow)
https://codereview.chromium.org/1234543003/diff/100001/components/metrics/proto/system_profile.proto File components/metrics/proto/system_profile.proto (right): https://codereview.chromium.org/1234543003/diff/100001/components/metrics/proto/system_profile.proto#newcode115 components/metrics/proto/system_profile.proto:115: // The hardware_class describes the current machine model, e.g. ...
5 years, 5 months ago (2015-07-21 16:52:12 UTC) #40
tdresser
5 years, 4 months ago (2015-07-28 12:24:21 UTC) #41
Message was sent while issue was closed.
On 2015/07/21 16:52:12, Alexei Svitkine wrote:
>
https://codereview.chromium.org/1234543003/diff/100001/components/metrics/pro...
> File components/metrics/proto/system_profile.proto (right):
> 
>
https://codereview.chromium.org/1234543003/diff/100001/components/metrics/pro...
> components/metrics/proto/system_profile.proto:115: // The hardware_class
> describes the current machine model, e.g. "MacPro1,1"
> Can you also send a CL to update this comment in the internal copy of this
> proto? Thanks!

Sorry for the late response, I was OOO.
I'll update the proto.

Powered by Google App Engine
This is Rietveld 408576698