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

Issue 1202383002: Changed DeviceDataManager to be able to create multiple instances for the purposes of test. (Closed)

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

Description

Changed DeviceDataManager to be able to create multiple instances for the purposes of test. The DeviceDataManager was implemented as a singleton and it was impossible to create two different instances in tests. This change makes it possible for future test framework to create multiple instances. BUG=499476 Committed: https://crrev.com/51ba4dd85063d575866a5003c2502c7fe88a10f8 Cr-Commit-Position: refs/heads/master@{#336558}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fixed DeviceDataManagerX11 singleton instance to be deleted at exit. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -10 lines) Patch
M ui/events/devices/device_data_manager.h View 2 chunks +3 lines, -0 lines 0 comments Download
M ui/events/devices/device_data_manager.cc View 1 1 chunk +15 lines, -9 lines 0 comments Download
M ui/events/devices/x11/device_data_manager_x11.cc View 1 2 chunks +7 lines, -1 line 1 comment Download

Messages

Total messages: 12 (2 generated)
bruthig
sadrul@, can you please have a look? This change is going to be used by ...
5 years, 6 months ago (2015-06-23 22:23:03 UTC) #2
sadrul
On 2015/06/23 22:23:03, bruthig wrote: > sadrul@, can you please have a look? > > ...
5 years, 6 months ago (2015-06-23 23:36:50 UTC) #3
bruthig
On 2015/06/23 23:36:50, sadrul wrote: > On 2015/06/23 22:23:03, bruthig wrote: > > sadrul@, can ...
5 years, 6 months ago (2015-06-24 14:53:42 UTC) #4
bruthig
FYI I've updated https://codereview.chromium.org/1182303005/ to work with this CL.
5 years, 6 months ago (2015-06-24 18:13:24 UTC) #5
sadrul
I should have actually looked at the CL before commenting, sorry :) The approach looks ...
5 years, 6 months ago (2015-06-24 19:50:13 UTC) #6
bruthig
sadrul@, can you have another look? https://codereview.chromium.org/1202383002/diff/1/ui/events/devices/device_data_manager.cc File ui/events/devices/device_data_manager.cc (right): https://codereview.chromium.org/1202383002/diff/1/ui/events/devices/device_data_manager.cc#newcode46 ui/events/devices/device_data_manager.cc:46: CHECK(!instance_) << "Can ...
5 years, 6 months ago (2015-06-24 21:52:59 UTC) #7
sadrul
This lgtm. But please consider the suggestion below (for both DDM and DDMX11. Feel free ...
5 years, 5 months ago (2015-06-27 07:09:06 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1202383002/20001
5 years, 5 months ago (2015-06-29 14:01:51 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 5 months ago (2015-06-29 14:52:44 UTC) #11
commit-bot: I haz the power
5 years, 5 months ago (2015-06-29 14:53:30 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/51ba4dd85063d575866a5003c2502c7fe88a10f8
Cr-Commit-Position: refs/heads/master@{#336558}

Powered by Google App Engine
This is Rietveld 408576698