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

Issue 693643004: Make UserActivityDetector a singleton (Closed)

Created:
6 years, 1 month ago by pkotwicz
Modified:
6 years, 1 month ago
CC:
chromium-reviews, sadrul, nkostylev+watch_chromium.org, derat+watch_chromium.org, oshima+watch_chromium.org, kalyank, stevenjb+watch_chromium.org, hashimoto+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@athena_do_not_use_ash45
Project:
chromium
Visibility:
Public.

Description

Make UserActivityDetector a singleton BUG=426561, 408752 TEST=None Committed: https://crrev.com/c44cb64db7d79078401a3fe776a38eba94faf9e5 Cr-Commit-Position: refs/heads/master@{#302734}

Patch Set 1 : #

Total comments: 4

Patch Set 2 : #

Total comments: 1

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -87 lines) Patch
M ash/display/display_change_observer_chromeos.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ash/shell.h View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M ash/system/chromeos/power/power_event_observer.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/app_mode/kiosk_mode_idle_app_name_notification.cc View 3 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/dbus/display_power_service_provider.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/chromeos/idle_detector.cc View 3 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/kiosk_mode/kiosk_mode_idle_logout.cc View 2 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/kiosk_mode/kiosk_mode_idle_logout_unittest.cc View 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/chromeos/kiosk_mode/kiosk_mode_screensaver.cc View 4 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/login/screens/user_selection_screen.cc View 1 2 3 chunks +2 lines, -11 lines 0 comments Download
M chrome/browser/chromeos/login/ui/webui_login_display.cc View 3 chunks +2 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/policy/recommendation_restorer.cc View 4 chunks +12 lines, -12 lines 0 comments Download
M chrome/browser/chromeos/session_length_limiter.cc View 2 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/system/automatic_reboot_manager.cc View 4 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/idle_chromeos.cc View 1 chunk +1 line, -7 lines 0 comments Download
M ui/wm/core/user_activity_detector.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ui/wm/core/user_activity_detector.cc View 1 2 2 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 55 (13 generated)
pkotwicz
Oshima, PTAL I moved the creation of UserActivityDetector to ChromeBrowserMainPartsChromeos because we do not seem ...
6 years, 1 month ago (2014-10-31 01:27:46 UTC) #5
Daniel Erat
i strongly prefer explicit ownership of objects and don't like seeing more singletons get created. ...
6 years, 1 month ago (2014-10-31 15:51:16 UTC) #8
pkotwicz
I suspect that it would be preferable to have a singleton which contains all of ...
6 years, 1 month ago (2014-10-31 16:52:58 UTC) #9
oshima
ctor/dtor and creation should probably be left as is as derat@ said. I don't have ...
6 years, 1 month ago (2014-10-31 16:53:31 UTC) #10
pkotwicz
https://codereview.chromium.org/693643004/diff/80001/ui/wm/core/user_activity_detector.h File ui/wm/core/user_activity_detector.h (right): https://codereview.chromium.org/693643004/diff/80001/ui/wm/core/user_activity_detector.h#newcode33 ui/wm/core/user_activity_detector.h:33: static void Shutdown(); For the sake of interest, which ...
6 years, 1 month ago (2014-10-31 16:58:30 UTC) #11
oshima
On 2014/10/31 16:58:30, pkotwicz wrote: > https://codereview.chromium.org/693643004/diff/80001/ui/wm/core/user_activity_detector.h > File ui/wm/core/user_activity_detector.h (right): > > https://codereview.chromium.org/693643004/diff/80001/ui/wm/core/user_activity_detector.h#newcode33 > ...
6 years, 1 month ago (2014-10-31 17:22:57 UTC) #12
pkotwicz
derat@, waiting for your comments before proceeding. I mostly want to make sure that you ...
6 years, 1 month ago (2014-10-31 17:40:16 UTC) #13
Daniel Erat
On 2014/10/31 17:40:16, pkotwicz wrote: > derat@, waiting for your comments before proceeding. I mostly ...
6 years, 1 month ago (2014-10-31 17:55:21 UTC) #14
pkotwicz
Yes, that is the proposal. The problem is that there is a need to get ...
6 years, 1 month ago (2014-10-31 17:58:54 UTC) #15
oshima
On 2014/10/31 17:58:54, pkotwicz wrote: > Yes, that is the proposal. > > The problem ...
6 years, 1 month ago (2014-10-31 18:18:28 UTC) #16
Daniel Erat
On 2014/10/31 18:18:28, oshima wrote: > On 2014/10/31 17:58:54, pkotwicz wrote: > > Yes, that ...
6 years, 1 month ago (2014-10-31 18:24:37 UTC) #17
oshima
On 2014/10/31 18:24:37, Daniel Erat wrote: > On 2014/10/31 18:18:28, oshima wrote: > > On ...
6 years, 1 month ago (2014-10-31 18:37:33 UTC) #18
pkotwicz
oshima@ and derat@ can you please take another look?
6 years, 1 month ago (2014-10-31 21:36:54 UTC) #19
Daniel Erat
lgtm
6 years, 1 month ago (2014-10-31 21:55:49 UTC) #22
oshima
lgtm
6 years, 1 month ago (2014-10-31 22:10:44 UTC) #23
pkotwicz
sky@ for ui/ and chrome/browser/idle_chromeos.cc OWNERS
6 years, 1 month ago (2014-10-31 22:16:39 UTC) #25
sky
Why do you want to convert to a singleton? Assuming there is a good reason ...
6 years, 1 month ago (2014-10-31 23:02:23 UTC) #26
pkotwicz
Oshima, can you please explain to Scott?
6 years, 1 month ago (2014-10-31 23:22:16 UTC) #27
stevenjb
FWIW, I think this would be more robust if: 1) UserActivityDetector has an explicit (static) ...
6 years, 1 month ago (2014-11-03 16:51:23 UTC) #29
oshima
On 2014/10/31 23:02:23, sky wrote: > Why do you want to convert to a singleton? ...
6 years, 1 month ago (2014-11-03 18:05:46 UTC) #30
oshima
On 2014/11/03 16:51:23, stevenjb wrote: > FWIW, I think this would be more robust if: ...
6 years, 1 month ago (2014-11-03 18:16:29 UTC) #31
stevenjb
On 2014/11/03 18:16:29, oshima wrote: > On 2014/11/03 16:51:23, stevenjb wrote: > > FWIW, I ...
6 years, 1 month ago (2014-11-03 18:20:31 UTC) #32
oshima
On 2014/11/03 18:20:31, stevenjb wrote: > On 2014/11/03 18:16:29, oshima wrote: > > On 2014/11/03 ...
6 years, 1 month ago (2014-11-03 18:39:55 UTC) #33
stevenjb
Now that we are accessing this as a singleton, we can no longer safely make ...
6 years, 1 month ago (2014-11-03 18:56:19 UTC) #34
oshima
On Mon, Nov 3, 2014 at 10:56 AM, Steven Bennetts <stevenjb@chromium.org> wrote: > Now that ...
6 years, 1 month ago (2014-11-03 21:17:45 UTC) #35
sky
On Mon, Nov 3, 2014 at 10:05 AM, <oshima@chromium.org> wrote: > On 2014/10/31 23:02:23, sky ...
6 years, 1 month ago (2014-11-03 21:57:50 UTC) #36
chromium-reviews
On Mon, Nov 3, 2014 at 1:57 PM, Scott Violet <sky@chromium.org> wrote: > On Mon, ...
6 years, 1 month ago (2014-11-03 22:35:13 UTC) #37
Daniel Erat
there doesn't necessarily need to be just a single instance of UserActivityDetector, assuming that listening ...
6 years, 1 month ago (2014-11-03 22:51:45 UTC) #38
oshima
On 2014/11/03 22:51:45, Daniel Erat wrote: > there doesn't necessarily need to be just a ...
6 years, 1 month ago (2014-11-03 23:10:53 UTC) #39
Daniel Erat
On 2014/11/03 23:10:53, oshima wrote: > On 2014/11/03 22:51:45, Daniel Erat wrote: > > there ...
6 years, 1 month ago (2014-11-03 23:13:58 UTC) #40
oshima
On 2014/11/03 23:13:58, Daniel Erat wrote: > On 2014/11/03 23:10:53, oshima wrote: > > On ...
6 years, 1 month ago (2014-11-03 23:26:59 UTC) #41
pkotwicz
Daniel, I do not see how it would be possible to have multiple UserActivityDetectors. If ...
6 years, 1 month ago (2014-11-03 23:50:39 UTC) #42
Daniel Erat
On 2014/11/03 23:50:39, pkotwicz wrote: > Daniel, I do not see how it would be ...
6 years, 1 month ago (2014-11-03 23:55:18 UTC) #43
sky
On Mon, Nov 3, 2014 at 2:34 PM, Mitsuru Oshima <oshima@google.com> wrote: > > > ...
6 years, 1 month ago (2014-11-04 00:17:01 UTC) #44
pkotwicz
Scott, I do not think I understand your suggestion. Can you ping me when you ...
6 years, 1 month ago (2014-11-04 01:42:47 UTC) #45
sky
Oshima wanted to discuss tomorrow in person. Will update you then. -Scott On Mon, Nov ...
6 years, 1 month ago (2014-11-04 03:35:01 UTC) #46
sky
Oshima convinced me: LGTM
6 years, 1 month ago (2014-11-04 22:16:29 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/693643004/160001
6 years, 1 month ago (2014-11-04 23:02:30 UTC) #49
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel/builds/8594)
6 years, 1 month ago (2014-11-05 00:19:12 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/693643004/160001
6 years, 1 month ago (2014-11-05 00:53:32 UTC) #53
commit-bot: I haz the power
Committed patchset #3 (id:160001)
6 years, 1 month ago (2014-11-05 01:30:32 UTC) #54
commit-bot: I haz the power
6 years, 1 month ago (2014-11-05 01:31:56 UTC) #55
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/c44cb64db7d79078401a3fe776a38eba94faf9e5
Cr-Commit-Position: refs/heads/master@{#302734}

Powered by Google App Engine
This is Rietveld 408576698