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

Issue 134773004: Include external touchscreen vid/pid in UMA hardware profile (Closed)

Created:
6 years, 11 months ago by tdresser
Modified:
6 years, 10 months ago
CC:
chromium-reviews, Ilya Sherman, jar (doing other things), asvitkine+watch_chromium.org
Visibility:
Public.

Description

Include external touchscreen vid/pid in UMA hardware profile Relanding https://codereview.chromium.org/103893005 after it was reverted in https://codereview.chromium.org/135763002. When this was first landed, it would try to read information on the displays after ash::Shell had been destroyed, which caused issues. This patch checks if the ash::Shell exists before reading information on the displays. This patch also fixes a bug in the previous patch in which we'd log that the primary display was not a touch screen if we failed to find the native screen. Previously we looked at including the touchscreen name in the UMA hardware profile: https://codereview.chromium.org/23619085/. As that posed a privacy concern, this patch includes the vid/pid instead. BUG=248910 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=249617

Patch Set 1 #

Total comments: 5

Patch Set 2 : Address oshima's comments. #

Total comments: 2

Patch Set 3 : Method rename. #

Total comments: 4

Patch Set 4 : Include <utility> #

Total comments: 4

Patch Set 5 : Rebase onto refactor. #

Total comments: 4

Patch Set 6 : Address avitkine's comments. #

Total comments: 6

Patch Set 7 : Remove unused attribute from TouchFactory. #

Patch Set 8 : Don't assume a screen exists - it doesn't in some tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -7 lines) Patch
M chrome/browser/metrics/metrics_log_chromeos.cc View 1 2 3 4 3 chunks +29 lines, -0 lines 0 comments Download
M chrome/common/metrics/proto/system_profile.proto View 1 2 3 4 5 2 chunks +16 lines, -1 line 0 comments Download
M ui/events/event_utils.h View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M ui/events/event_utils.cc View 1 2 3 4 5 6 7 1 chunk +10 lines, -6 lines 0 comments Download
M ui/events/x/touch_factory_x11.h View 1 2 3 4 5 6 4 chunks +12 lines, -0 lines 0 comments Download
M ui/events/x/touch_factory_x11.cc View 1 2 3 4 5 4 chunks +42 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (0 generated)
tdresser
oshima, does this look like a reasonable solution?
6 years, 11 months ago (2014-01-14 16:34:03 UTC) #1
oshima
On second thought, i think it's better to support screen during shutdown because this is ...
6 years, 11 months ago (2014-01-14 22:35:00 UTC) #2
oshima
On 2014/01/14 22:35:00, oshima wrote: > On second thought, i think it's better to support ...
6 years, 11 months ago (2014-01-15 03:01:38 UTC) #3
tdresser
On 2014/01/15 03:01:38, oshima wrote: > On 2014/01/14 22:35:00, oshima wrote: > > On second ...
6 years, 11 months ago (2014-01-15 13:30:08 UTC) #4
oshima
On 2014/01/15 13:30:08, tdresser wrote: > On 2014/01/15 03:01:38, oshima wrote: > > On 2014/01/14 ...
6 years, 11 months ago (2014-01-17 18:36:54 UTC) #5
tdresser
Thanks for the CL. Is this all that's necessary now? https://codereview.chromium.org/134773004/diff/1/ui/events/event_utils.cc File ui/events/event_utils.cc (right): https://codereview.chromium.org/134773004/diff/1/ui/events/event_utils.cc#newcode41 ...
6 years, 11 months ago (2014-01-17 20:38:35 UTC) #6
oshima
lgtm with nit https://codereview.chromium.org/134773004/diff/140001/ui/events/event_utils.cc File ui/events/event_utils.cc (right): https://codereview.chromium.org/134773004/diff/140001/ui/events/event_utils.cc#newcode33 ui/events/event_utils.cc:33: gfx::Display::TouchSupport InternalDisplaySupportsTouch() { GetInternalDisplayTouchSupport() ?
6 years, 11 months ago (2014-01-17 20:49:46 UTC) #7
tdresser
Relanding https://codereview.chromium.org/103893005 after fixing some issues with accessing information on displays after the ash::Shell was ...
6 years, 11 months ago (2014-01-17 21:34:53 UTC) #8
tdresser
sadrul@, can you take a look at ui/**? jar@, can you take a look at ...
6 years, 11 months ago (2014-01-20 19:40:24 UTC) #9
sadrul
ui/events/ lgtm
6 years, 11 months ago (2014-01-20 20:42:01 UTC) #10
jar (doing other things)
https://codereview.chromium.org/134773004/diff/200001/chrome/browser/metrics/metrics_log.cc File chrome/browser/metrics/metrics_log.cc (right): https://codereview.chromium.org/134773004/diff/200001/chrome/browser/metrics/metrics_log.cc#newcode395 chrome/browser/metrics/metrics_log.cc:395: touchscreen->set_vendor_id(it->first); Do we have privacy approval for uploading this ...
6 years, 11 months ago (2014-01-20 22:34:46 UTC) #11
tdresser
https://codereview.chromium.org/134773004/diff/200001/chrome/browser/metrics/metrics_log.cc File chrome/browser/metrics/metrics_log.cc (right): https://codereview.chromium.org/134773004/diff/200001/chrome/browser/metrics/metrics_log.cc#newcode395 chrome/browser/metrics/metrics_log.cc:395: touchscreen->set_vendor_id(it->first); On 2014/01/20 22:34:47, jar wrote: > Do we ...
6 years, 11 months ago (2014-01-21 13:44:33 UTC) #12
tdresser
jar@, can you take another look?
6 years, 11 months ago (2014-01-23 14:39:48 UTC) #13
Alexei Svitkine (slow)
These values seem similar to the types of things we log in the UMA system ...
6 years, 11 months ago (2014-01-23 15:30:48 UTC) #14
battre
LGTM to the idea of collecting vid/pid (did not review the CL)
6 years, 11 months ago (2014-01-27 14:03:16 UTC) #15
tdresser
On 2014/01/27 14:03:16, battre wrote: > LGTM to the idea of collecting vid/pid (did not ...
6 years, 10 months ago (2014-01-28 13:49:52 UTC) #16
Alexei Svitkine (slow)
https://codereview.chromium.org/134773004/diff/280001/chrome/browser/metrics/metrics_log.cc File chrome/browser/metrics/metrics_log.cc (right): https://codereview.chromium.org/134773004/diff/280001/chrome/browser/metrics/metrics_log.cc#newcode11 chrome/browser/metrics/metrics_log.cc:11: #include "ash/shell.h" Is this header valid to include on ...
6 years, 10 months ago (2014-01-28 16:01:05 UTC) #17
tdresser
I have a patch up performing the refactor here: https://codereview.chromium.org/146913005. Once that lands, I'll rebase, ...
6 years, 10 months ago (2014-01-30 13:52:53 UTC) #18
tdresser
asvitkine@, how's this?
6 years, 10 months ago (2014-02-04 20:52:29 UTC) #19
Alexei Svitkine (slow)
Looks great, just a couple of comments. https://codereview.chromium.org/134773004/diff/340001/chrome/common/metrics/proto/system_profile.proto File chrome/common/metrics/proto/system_profile.proto (right): https://codereview.chromium.org/134773004/diff/340001/chrome/common/metrics/proto/system_profile.proto#newcode223 chrome/common/metrics/proto/system_profile.proto:223: // Whether ...
6 years, 10 months ago (2014-02-04 21:13:34 UTC) #20
tdresser
https://codereview.chromium.org/134773004/diff/340001/chrome/common/metrics/proto/system_profile.proto File chrome/common/metrics/proto/system_profile.proto (right): https://codereview.chromium.org/134773004/diff/340001/chrome/common/metrics/proto/system_profile.proto#newcode223 chrome/common/metrics/proto/system_profile.proto:223: // Whether the internal display produces touch events. On ...
6 years, 10 months ago (2014-02-04 22:01:48 UTC) #21
Alexei Svitkine (slow)
LGTM, thanks!
6 years, 10 months ago (2014-02-04 22:09:55 UTC) #22
tdresser
On 2014/02/04 22:09:55, Alexei Svitkine wrote: > LGTM, thanks! jar@, can you take a look ...
6 years, 10 months ago (2014-02-04 22:16:52 UTC) #23
jar (doing other things)
https://codereview.chromium.org/134773004/diff/360001/ui/events/x/touch_factory_x11.cc File ui/events/x/touch_factory_x11.cc (right): https://codereview.chromium.org/134773004/diff/360001/ui/events/x/touch_factory_x11.cc#newcode31 ui/events/x/touch_factory_x11.cc:31: touch_events_disabled_(false), nit: initializer for internal_display_supports_touch_ https://codereview.chromium.org/134773004/diff/360001/ui/events/x/touch_factory_x11.h File ui/events/x/touch_factory_x11.h (right): ...
6 years, 10 months ago (2014-02-05 00:10:13 UTC) #24
tdresser
https://codereview.chromium.org/134773004/diff/360001/ui/events/x/touch_factory_x11.h File ui/events/x/touch_factory_x11.h (right): https://codereview.chromium.org/134773004/diff/360001/ui/events/x/touch_factory_x11.h#newcode121 ui/events/x/touch_factory_x11.h:121: bool touch_events_disabled_; On 2014/02/05 00:10:13, jar wrote: > nit/pet-peeve: ...
6 years, 10 months ago (2014-02-05 19:29:57 UTC) #25
jar1
lgtm https://codereview.chromium.org/134773004/diff/360001/ui/events/x/touch_factory_x11.h File ui/events/x/touch_factory_x11.h (right): https://codereview.chromium.org/134773004/diff/360001/ui/events/x/touch_factory_x11.h#newcode121 ui/events/x/touch_factory_x11.h:121: bool touch_events_disabled_; On 2014/02/05 19:29:58, tdresser wrote: > ...
6 years, 10 months ago (2014-02-05 20:27:17 UTC) #26
Ilya Sherman
lgtm2, with a driveby request to make sure to update to internal .proto files to ...
6 years, 10 months ago (2014-02-05 20:48:33 UTC) #27
tdresser
On 2014/02/05 20:27:17, jar1 wrote: > lgtm > > https://codereview.chromium.org/134773004/diff/360001/ui/events/x/touch_factory_x11.h > File ui/events/x/touch_factory_x11.h (right): > ...
6 years, 10 months ago (2014-02-06 13:42:33 UTC) #28
tdresser
On 2014/02/05 20:48:33, Ilya Sherman (catching up...) wrote: > lgtm2, with a driveby request to ...
6 years, 10 months ago (2014-02-06 13:43:48 UTC) #29
tdresser
The CQ bit was checked by tdresser@chromium.org
6 years, 10 months ago (2014-02-06 13:43:55 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdresser@chromium.org/134773004/470001
6 years, 10 months ago (2014-02-06 13:44:06 UTC) #31
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-06 15:23:19 UTC) #32
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=199039
6 years, 10 months ago (2014-02-06 15:23:20 UTC) #33
tdresser
The CQ bit was checked by tdresser@chromium.org
6 years, 10 months ago (2014-02-06 15:48:35 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdresser@chromium.org/134773004/630002
6 years, 10 months ago (2014-02-06 15:48:45 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdresser@chromium.org/134773004/630002
6 years, 10 months ago (2014-02-07 02:12:50 UTC) #36
commit-bot: I haz the power
6 years, 10 months ago (2014-02-07 08:10:12 UTC) #37
Message was sent while issue was closed.
Change committed as 249617

Powered by Google App Engine
This is Rietveld 408576698