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

Issue 998603003: Fix for menus blocking user activity detection. (Closed)

Created:
5 years, 9 months ago by afakhry
Modified:
5 years, 9 months ago
Reviewers:
sadrul, James Cook, oshima
CC:
chromium-reviews, kalyank, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix for menus blocking user activity detection. Menus used to block detecting user activity. The fix works by making the UserActivityDetector a PlatformEventObserver rather than an EventHandler. BUG=462735 TEST=ui_base_unittests --gtest_filter=UserActivityDetectorTest.* Committed: https://crrev.com/c655cc2a17c6c7fd113346bedc8433488c4b6dbe Cr-Commit-Position: refs/heads/master@{#320400}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Removing the use of the UserActivityDetector as a pre-target handler in shell_desktop_controller_au… #

Patch Set 3 : Removed a header causing compile failure on mac. #

Patch Set 4 : Found out that on platforms other than CrOs and Linux PlatformEventSource can be null. #

Patch Set 5 : Making sure we fail if no instance of PlatformEventSource and creating a mock PlatformEventSource f… #

Total comments: 2

Patch Set 6 : Ash on Windows would fail because of that CHECK(), doing it only for CrOS and Linux #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -51 lines) Patch
M ash/shell.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M extensions/shell/browser/shell_desktop_controller_aura.cc View 1 2 chunks +0 lines, -6 lines 0 comments Download
M ui/base/user_activity/user_activity_detector.h View 2 chunks +11 lines, -8 lines 0 comments Download
M ui/base/user_activity/user_activity_detector.cc View 1 2 3 4 5 3 chunks +33 lines, -22 lines 0 comments Download
M ui/base/user_activity/user_activity_detector_unittest.cc View 1 2 3 4 14 chunks +31 lines, -13 lines 0 comments Download

Messages

Total messages: 30 (9 generated)
afakhry
@Oshima: Could you please review shell.cc? @Sadrul: Could you please review user_activity_detector*.*? Thanks!
5 years, 9 months ago (2015-03-10 17:12:29 UTC) #2
oshima
https://codereview.chromium.org/998603003/diff/1/ash/shell.cc File ash/shell.cc (left): https://codereview.chromium.org/998603003/diff/1/ash/shell.cc#oldcode925 ash/shell.cc:925: AddPreTargetHandler(user_activity_detector_.get()); You need to remove the pre target handler ...
5 years, 9 months ago (2015-03-10 22:24:10 UTC) #3
afakhry
https://codereview.chromium.org/998603003/diff/1/ash/shell.cc File ash/shell.cc (left): https://codereview.chromium.org/998603003/diff/1/ash/shell.cc#oldcode925 ash/shell.cc:925: AddPreTargetHandler(user_activity_detector_.get()); On 2015/03/10 22:24:10, oshima wrote: > You need ...
5 years, 9 months ago (2015-03-10 22:28:59 UTC) #4
oshima
https://codereview.chromium.org/998603003/diff/1/ash/shell.cc File ash/shell.cc (left): https://codereview.chromium.org/998603003/diff/1/ash/shell.cc#oldcode925 ash/shell.cc:925: AddPreTargetHandler(user_activity_detector_.get()); On 2015/03/10 22:28:58, afakhry wrote: > On 2015/03/10 ...
5 years, 9 months ago (2015-03-10 22:56:51 UTC) #5
sadrul
LGTM
5 years, 9 months ago (2015-03-11 07:46:16 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/998603003/1
5 years, 9 months ago (2015-03-11 17:19:13 UTC) #8
afakhry
For some reason my eclipse indexer missed showing me that it was also being created ...
5 years, 9 months ago (2015-03-11 18:36:00 UTC) #11
James Cook
lgtm
5 years, 9 months ago (2015-03-11 22:03:48 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/998603003/20001
5 years, 9 months ago (2015-03-11 22:20:51 UTC) #15
afakhry
Removed a header from |user_activity_detector_unittest.cc| causing a compile failure on mac.
5 years, 9 months ago (2015-03-11 22:54:59 UTC) #17
afakhry
Found out that on platforms other than CrOs and Linux PlatformEventSource can be null.
5 years, 9 months ago (2015-03-12 01:05:14 UTC) #18
afakhry
@sadrul: Could you please take a look at the change I made to |user_activity_detector_unittest.cc|? After ...
5 years, 9 months ago (2015-03-12 01:57:35 UTC) #19
afakhry
@Sadrul: as agreed on IM, please review the changes I made to |user_activity_detector.cc| and |user_activity_detector_unittest.cc|. ...
5 years, 9 months ago (2015-03-12 20:41:19 UTC) #20
sadrul
lgtm++ https://codereview.chromium.org/998603003/diff/80001/ui/base/user_activity/user_activity_detector_unittest.cc File ui/base/user_activity/user_activity_detector_unittest.cc (right): https://codereview.chromium.org/998603003/diff/80001/ui/base/user_activity/user_activity_detector_unittest.cc#newcode77 ui/base/user_activity/user_activity_detector_unittest.cc:77: scoped_ptr<TestPlatformEventSource> platform_event_source_; You probably don't need scoped_ptr<>
5 years, 9 months ago (2015-03-12 20:44:12 UTC) #21
afakhry
https://codereview.chromium.org/998603003/diff/80001/ui/base/user_activity/user_activity_detector_unittest.cc File ui/base/user_activity/user_activity_detector_unittest.cc (right): https://codereview.chromium.org/998603003/diff/80001/ui/base/user_activity/user_activity_detector_unittest.cc#newcode77 ui/base/user_activity/user_activity_detector_unittest.cc:77: scoped_ptr<TestPlatformEventSource> platform_event_source_; On 2015/03/12 20:44:11, sadrul wrote: > You ...
5 years, 9 months ago (2015-03-12 20:47:32 UTC) #22
afakhry
5 years, 9 months ago (2015-03-12 22:59:57 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/998603003/100001
5 years, 9 months ago (2015-03-12 23:00:29 UTC) #26
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 9 months ago (2015-03-12 23:04:08 UTC) #27
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/c655cc2a17c6c7fd113346bedc8433488c4b6dbe Cr-Commit-Position: refs/heads/master@{#320400}
5 years, 9 months ago (2015-03-12 23:04:43 UTC) #28
Jun Mukai
On 2015/03/12 23:04:43, I haz the power (commit-bot) wrote: > Patchset 6 (id:??) landed as ...
5 years, 9 months ago (2015-03-13 01:47:38 UTC) #29
Jun Mukai
5 years, 9 months ago (2015-03-13 01:48:17 UTC) #30
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:100001) has been created in
https://codereview.chromium.org/1006733002/ by mukai@chromium.org.

The reason for reverting is: Linux ChromiumOS Ozone bot fails.

Powered by Google App Engine
This is Rietveld 408576698