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

Issue 1182303005: Fixed the Touchscreen.TouchEventsEnabled histogram to record the correct values on X11 and Ozone ba… (Closed)

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

Description

Fixed the Touchscreen.TouchEventsEnabled histogram to record the correct values on X11 and Ozone based builds. The Touchscreen.TouchEventsEnabled histogram was being recorded before the X11 and Ozone sub-systems had a chance to scan all the devices. This caused the recorded value to be incorrect. TEST=ChromeBrowserMainExtraPartsMetricsTest.VerifyTouchEventsEnabledIsNotRecordedAfterConstruction TEST=ChromeBrowserMainExtraPartsMetricsTest.VerifyTouchEventsEnabledIsNotRecordedAfterPostBrowserStart TEST=ChromeBrowserMainExtraPartsMetricsTest.VerifyTouchEventsEnabledIsRecordedWhenDeviceListsComplete TEST=ChromeBrowserMainExtraPartsMetricsTest.VerifyTouchEventsEnabledIsOnlyRecordedOnce TEST=ChromeBrowserMainExtraPartsMetricsTest.VerifyTouchEventsEnabledIsRecordedAfterPostBrowserStart BUG=499476 Committed: https://crrev.com/86fbc49b97910112e68ad53dde3d7c9cdf63eef8 Cr-Commit-Position: refs/heads/master@{#338414}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Added check for race condition and a test. #

Patch Set 3 : Merge with master #

Patch Set 4 : Fixed the ChromeBrowserMainExtraPartsMetricsTest's so they are independant. #

Patch Set 5 : Updated comment in ChromeBrowserMainExtraPartsMetrics::PostBrowserStart(). #

Total comments: 19

Patch Set 6 : Addressed isherman@'s comments from patch set 5. #

Patch Set 7 : Added Touchscreen.TouchEventsEnabled histogram to public histograms.xml. #

Total comments: 6

Patch Set 8 : Moved histogram note to <details> and fixed nits in tests. #

Patch Set 9 : Added #if guard around DeviceDataManager access. #

Patch Set 10 : Fixed compile time issues across the failing platform builds. #

Total comments: 18

Patch Set 11 : Created gfx::test::TestScreen and addressed other comments. #

Total comments: 10

Patch Set 12 : Addressed asvitkine@'s comments from patch set 11. #

Total comments: 6

Patch Set 13 : Addressed sadrul@'s comments from patch set 12. #

Total comments: 2

Patch Set 14 : Changed DeviceDataManagerTestAPI::delete_instance_ to should_delete_instance_. #

Total comments: 2

Patch Set 15 : Removed explicit. #

Patch Set 16 : Rebased on master. #

Patch Set 17 : Added logging.h include to device_data_manager_test_api_stub.cc. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+550 lines, -132 lines) Patch
M chrome/browser/manifest/manifest_icon_selector_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +15 lines, -56 lines 0 comments Download
M chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +50 lines, -0 lines 0 comments Download
A chrome/browser/metrics/chrome_browser_main_extra_parts_metrics_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +127 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/media/capture/web_contents_video_capture_device_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +9 lines, -42 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +19 lines, -0 lines 0 comments Download
M ui/aura/test/test_screen.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M ui/events/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +7 lines, -0 lines 0 comments Download
M ui/events/devices/device_data_manager.h View 1 2 3 6 7 2 chunks +12 lines, -0 lines 0 comments Download
M ui/events/devices/device_data_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +30 lines, -15 lines 0 comments Download
M ui/events/devices/x11/device_data_manager_x11.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -1 line 0 comments Download
M ui/events/events.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +10 lines, -0 lines 0 comments Download
A ui/events/test/device_data_manager_test_api.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +58 lines, -0 lines 0 comments Download
A ui/events/test/device_data_manager_test_api_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +61 lines, -0 lines 0 comments Download
A ui/events/test/device_data_manager_test_api_stub.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +52 lines, -0 lines 0 comments Download
M ui/gfx/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gfx/gfx.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -0 lines 0 comments Download
A + ui/gfx/test/test_screen.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +22 lines, -18 lines 0 comments Download
A ui/gfx/test/test_screen.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +61 lines, -0 lines 0 comments Download

Messages

Total messages: 71 (23 generated)
bruthig
rbyers@chromium.org: Please review to ensure the semantics for the Touchscreen.TouchEventsEnabled metric hasn't changed. asvitkine@chromium.org: Please ...
5 years, 6 months ago (2015-06-15 20:02:52 UTC) #2
Rick Byers
Metrics semantics seems good reasonable modulo possible race: https://codereview.chromium.org/1182303005/diff/1/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc File chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc (right): https://codereview.chromium.org/1182303005/diff/1/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc#newcode276 chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc:276: #if ...
5 years, 6 months ago (2015-06-16 14:45:47 UTC) #3
bruthig
rbyers@, please see my reply to comment. https://codereview.chromium.org/1182303005/diff/1/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc File chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc (right): https://codereview.chromium.org/1182303005/diff/1/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc#newcode276 chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc:276: #if defined(USE_OZONE) ...
5 years, 6 months ago (2015-06-16 15:52:45 UTC) #4
spang
https://codereview.chromium.org/1182303005/diff/1/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc File chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc (right): https://codereview.chromium.org/1182303005/diff/1/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc#newcode276 chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc:276: #if defined(USE_OZONE) || defined(USE_X11) On 2015/06/16 15:52:45, bruthig wrote: ...
5 years, 6 months ago (2015-06-16 15:55:40 UTC) #6
Rick Byers
On 2015/06/16 15:55:40, spang wrote: > https://codereview.chromium.org/1182303005/diff/1/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc > File chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc (right): > > https://codereview.chromium.org/1182303005/diff/1/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc#newcode276 > ...
5 years, 6 months ago (2015-06-16 16:53:30 UTC) #7
bruthig
Please note this CL is now based off of https://codereview.chromium.org/1202383002/. Replacing asvitkine@ with isherman@ since ...
5 years, 6 months ago (2015-06-24 18:16:54 UTC) #9
Ilya Sherman
What was previously recorded to this histogram on these platforms, in the cases where the ...
5 years, 6 months ago (2015-06-24 23:46:51 UTC) #10
Rick Byers
On 2015/06/24 23:46:51, Ilya Sherman wrote: > What was previously recorded to this histogram on ...
5 years, 6 months ago (2015-06-25 17:17:32 UTC) #11
Rick Byers
chrome/browser/metrics LGTM
5 years, 6 months ago (2015-06-25 17:22:44 UTC) #12
Rick Byers
On 2015/06/25 17:22:44, Rick Byers wrote: > chrome/browser/metrics LGTM modulo isherman@'s feedback of course...
5 years, 6 months ago (2015-06-25 17:23:36 UTC) #13
bruthig
I've addressed isherman@'s concerns from patch set 5. On 2015/06/24 23:46:51, Ilya Sherman wrote: > ...
5 years, 6 months ago (2015-06-25 17:26:52 UTC) #14
Rick Byers
On 2015/06/25 17:26:52, bruthig wrote: > I've addressed isherman@'s concerns from patch set 5. > ...
5 years, 6 months ago (2015-06-25 17:29:31 UTC) #15
bruthig
I've added the TouchScreen.TouchEventsEnabled histogram to the public histograms.xml. rbyers@, isherman@, can you have a ...
5 years, 6 months ago (2015-06-25 18:27:35 UTC) #16
Ilya Sherman
Metrics LGTM % the remaining nits. For histograms.xml, it's fine to land the CLs in ...
5 years, 6 months ago (2015-06-25 20:31:48 UTC) #17
Rick Byers
Description LGTM modulo isherman@'s nit (we want the short summary on the dashboard to describe ...
5 years, 6 months ago (2015-06-25 20:37:04 UTC) #18
bruthig
https://codereview.chromium.org/1182303005/diff/120001/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics_unittest.cc File chrome/browser/metrics/chrome_browser_main_extra_parts_metrics_unittest.cc (right): https://codereview.chromium.org/1182303005/diff/120001/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics_unittest.cc#newcode33 chrome/browser/metrics/chrome_browser_main_extra_parts_metrics_unittest.cc:33: } On 2015/06/25 20:31:47, Ilya Sherman wrote: > nit: ...
5 years, 6 months ago (2015-06-25 22:36:25 UTC) #19
sadrul
ui lgtm
5 years, 5 months ago (2015-06-27 07:24:44 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1182303005/140001
5 years, 5 months ago (2015-06-29 18:39:58 UTC) #23
commit-bot: I haz the power
Exceeded global retry quota
5 years, 5 months ago (2015-06-29 18:55:21 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1182303005/160001
5 years, 5 months ago (2015-06-29 19:24:34 UTC) #28
commit-bot: I haz the power
Exceeded global retry quota
5 years, 5 months ago (2015-06-29 19:40:55 UTC) #30
bruthig
I've had to fix some compile time issues. asvitkine@, can you please have a look ...
5 years, 5 months ago (2015-07-07 20:49:29 UTC) #32
Alexei Svitkine (slow)
https://codereview.chromium.org/1182303005/diff/180001/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h File chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h (right): https://codereview.chromium.org/1182303005/diff/180001/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h#newcode21 chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h:21: #if defined(USE_OZONE) || defined(USE_X11) Nit: I don't think it's ...
5 years, 5 months ago (2015-07-07 22:00:59 UTC) #34
sadrul
lgtm with the nits (and feedback from asvitkine@) addressed. https://codereview.chromium.org/1182303005/diff/180001/ui/events/devices/device_data_manager.cc File ui/events/devices/device_data_manager.cc (right): https://codereview.chromium.org/1182303005/diff/180001/ui/events/devices/device_data_manager.cc#newcode39 ui/events/devices/device_data_manager.cc:39: ...
5 years, 5 months ago (2015-07-07 22:04:39 UTC) #35
Ilya Sherman
https://codereview.chromium.org/1182303005/diff/180001/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics_unittest.cc File chrome/browser/metrics/chrome_browser_main_extra_parts_metrics_unittest.cc (right): https://codereview.chromium.org/1182303005/diff/180001/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics_unittest.cc#newcode39 chrome/browser/metrics/chrome_browser_main_extra_parts_metrics_unittest.cc:39: return NULL; nit: nullptr (pretty much everywhere where you're ...
5 years, 5 months ago (2015-07-07 22:06:22 UTC) #36
bruthig
I've made some non-trivial changes. asvitkine@/isherman@: Can you please have another look at: - chrome/* ...
5 years, 5 months ago (2015-07-08 20:29:52 UTC) #37
Alexei Svitkine (slow)
Thanks, this looks a lot cleaner! Just a few more comments. https://codereview.chromium.org/1182303005/diff/200001/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics_unittest.cc File chrome/browser/metrics/chrome_browser_main_extra_parts_metrics_unittest.cc (right): ...
5 years, 5 months ago (2015-07-09 15:17:06 UTC) #38
bruthig
https://codereview.chromium.org/1182303005/diff/200001/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics_unittest.cc File chrome/browser/metrics/chrome_browser_main_extra_parts_metrics_unittest.cc (right): https://codereview.chromium.org/1182303005/diff/200001/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics_unittest.cc#newcode31 chrome/browser/metrics/chrome_browser_main_extra_parts_metrics_unittest.cc:31: scoped_ptr<ui::test::DeviceDataManagerTestAPI> device_data_manager_test_api_; On 2015/07/09 15:17:05, Alexei Svitkine wrote: > ...
5 years, 5 months ago (2015-07-10 15:38:42 UTC) #39
Alexei Svitkine (slow)
LGTM
5 years, 5 months ago (2015-07-10 15:50:59 UTC) #40
bruthig
ddorwin@chromium.org: Please review changes in - content/browser/media/capture/web_contents_video_capture_device_unittest.cc dfalcantara@chromium.org: Please review changes in - chrome/browser/manifest/manifest_icon_selector_unittest.cc
5 years, 5 months ago (2015-07-10 16:43:51 UTC) #42
gone
manifest_icon_selector_unittest.cc lgtm
5 years, 5 months ago (2015-07-10 17:16:33 UTC) #43
ddorwin
+miu to review capture/. On 2015/07/10 16:43:51, bruthig wrote: > mailto:ddorwin@chromium.org: Please review changes in ...
5 years, 5 months ago (2015-07-10 17:34:13 UTC) #46
sadrul
Not in this CL, but maybe aura::TestScreen could inherit from gfx::TestScreen? https://codereview.chromium.org/1182303005/diff/220001/ui/events/devices/device_data_manager.cc File ui/events/devices/device_data_manager.cc (right): ...
5 years, 5 months ago (2015-07-10 17:35:48 UTC) #47
bruthig
sadrul@, I've addressed your comments from patch set 12. Can you please take a look ...
5 years, 5 months ago (2015-07-10 20:04:58 UTC) #49
miu
content/browser/media/capture/web_contents_video_capture_device_unittest.cc lgtm Thanks for the clean-up! :)
5 years, 5 months ago (2015-07-10 20:50:08 UTC) #50
sadrul
https://codereview.chromium.org/1182303005/diff/240001/ui/events/test/device_data_manager_test_api.h File ui/events/test/device_data_manager_test_api.h (right): https://codereview.chromium.org/1182303005/diff/240001/ui/events/test/device_data_manager_test_api.h#newcode39 ui/events/test/device_data_manager_test_api.h:39: bool CreateDeviceDataManagerInstance(); Why does delete_instance need to be passed-in ...
5 years, 5 months ago (2015-07-10 21:57:34 UTC) #51
bruthig
sadrul@, can you PTAL? https://codereview.chromium.org/1182303005/diff/240001/ui/events/test/device_data_manager_test_api.h File ui/events/test/device_data_manager_test_api.h (right): https://codereview.chromium.org/1182303005/diff/240001/ui/events/test/device_data_manager_test_api.h#newcode39 ui/events/test/device_data_manager_test_api.h:39: bool CreateDeviceDataManagerInstance(); On 2015/07/10 21:57:34, ...
5 years, 5 months ago (2015-07-10 22:27:28 UTC) #52
sadrul
lgtm https://codereview.chromium.org/1182303005/diff/260001/ui/events/test/device_data_manager_test_api.h File ui/events/test/device_data_manager_test_api.h (right): https://codereview.chromium.org/1182303005/diff/260001/ui/events/test/device_data_manager_test_api.h#newcode23 ui/events/test/device_data_manager_test_api.h:23: explicit DeviceDataManagerTestAPI(); No explicit
5 years, 5 months ago (2015-07-10 22:29:54 UTC) #53
bruthig
https://codereview.chromium.org/1182303005/diff/260001/ui/events/test/device_data_manager_test_api.h File ui/events/test/device_data_manager_test_api.h (right): https://codereview.chromium.org/1182303005/diff/260001/ui/events/test/device_data_manager_test_api.h#newcode23 ui/events/test/device_data_manager_test_api.h:23: explicit DeviceDataManagerTestAPI(); On 2015/07/10 22:29:54, sadrul wrote: > No ...
5 years, 5 months ago (2015-07-10 22:42:09 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1182303005/280001
5 years, 5 months ago (2015-07-10 22:43:13 UTC) #57
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/72247) ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 5 months ago (2015-07-10 22:46:24 UTC) #59
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1182303005/300001
5 years, 5 months ago (2015-07-10 23:00:44 UTC) #62
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/107369) ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 5 months ago (2015-07-10 23:09:03 UTC) #64
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1182303005/320001
5 years, 5 months ago (2015-07-10 23:32:18 UTC) #67
commit-bot: I haz the power
Committed patchset #17 (id:320001)
5 years, 5 months ago (2015-07-11 00:52:50 UTC) #68
commit-bot: I haz the power
Patchset 17 (id:??) landed as https://crrev.com/86fbc49b97910112e68ad53dde3d7c9cdf63eef8 Cr-Commit-Position: refs/heads/master@{#338414}
5 years, 5 months ago (2015-07-11 00:53:58 UTC) #69
Adrian Kuegel
On 2015/07/11 00:53:58, commit-bot: I haz the power wrote: > Patchset 17 (id:??) landed as ...
5 years, 5 months ago (2015-07-13 08:18:25 UTC) #70
bruthig
5 years, 5 months ago (2015-07-13 22:57:07 UTC) #71
Message was sent while issue was closed.
On 2015/07/13 08:18:25, Adrian Kuegel wrote:
> On 2015/07/11 00:53:58, commit-bot: I haz the power wrote:
> > Patchset 17 (id:??) landed as
> > https://crrev.com/86fbc49b97910112e68ad53dde3d7c9cdf63eef8
> > Cr-Commit-Position: refs/heads/master@{#338414}
> 
> This CL has broken the ChromiumOS Codesearch bot:
>
https://build.chromium.org/p/chromium.infra.cron/builders/ChromiumOS%20Codese...

CL to fix the errors can be found here:
https://codereview.chromium.org/1236073002/

Powered by Google App Engine
This is Rietveld 408576698