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

Issue 10382118: Don't show system notifications while the screen is locked. (Closed)

Created:
8 years, 7 months ago by stevenjb
Modified:
8 years, 7 months ago
Reviewers:
Daniel Erat, oshima
CC:
chromium-reviews, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
http://git.chromium.org/git/chromium/src@master
Visibility:
Public.

Description

Don't show system notifications while the screen is locked. Change-Id: Ie6079866fb0b957e56aff2993745e8976c4fb10b BUG=124402 TEST=Test system notifications (power, network, sms) especially around screen lock/unlock. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=137159

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add GetIsScreenLocked to PowerManagerClient #

Patch Set 3 : Only defer notifications on screen lock (don't hide) #

Total comments: 1

Patch Set 4 : Rebase #

Patch Set 5 : Add GetIsScreenLocked to mock #

Patch Set 6 : Fix shutdown crash in tests. #

Patch Set 7 : Fix shutdown crash in tests. #

Patch Set 8 : Fix shutdown crash in tests. #

Patch Set 9 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -12 lines) Patch
M chrome/browser/chromeos/extensions/file_browser_notifications_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/notifications/system_notification.h View 1 2 4 chunks +12 lines, -1 line 0 comments Download
M chrome/browser/chromeos/notifications/system_notification.cc View 1 2 6 5 chunks +44 lines, -9 lines 0 comments Download
M chromeos/dbus/mock_power_manager_client.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/dbus/power_manager_client.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M chromeos/dbus/power_manager_client.cc View 1 2 3 7 chunks +16 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
stevenjb
This is an attempt to fix http://code.google.com/p/chromium/issues/detail?id=124402. I'm pretty certain it is related to showing ...
8 years, 7 months ago (2012-05-11 00:30:44 UTC) #1
Daniel Erat
http://codereview.chromium.org/10382118/diff/1/chrome/browser/chromeos/notifications/system_notification.cc File chrome/browser/chromeos/notifications/system_notification.cc (right): http://codereview.chromium.org/10382118/diff/1/chrome/browser/chromeos/notifications/system_notification.cc#newcode20 chrome/browser/chromeos/notifications/system_notification.cc:20: DBusThreadManager::Get()->GetPowerManagerClient()->GetIsScreenLocked(); i don't see this method at git.chromium.org/gitweb/?p=chromium.git;a=blob;f=chromeos/dbus/power_manager_client.h;h=00c27b83007f785056948c878fbfc241e531e300;hb=HEAD -- ...
8 years, 7 months ago (2012-05-11 14:12:38 UTC) #2
stevenjb
Add GetIsScreenLocked to PowerManagerClient
8 years, 7 months ago (2012-05-11 16:34:46 UTC) #3
stevenjb
ptal http://codereview.chromium.org/10382118/diff/1/chrome/browser/chromeos/notifications/system_notification.cc File chrome/browser/chromeos/notifications/system_notification.cc (right): http://codereview.chromium.org/10382118/diff/1/chrome/browser/chromeos/notifications/system_notification.cc#newcode20 chrome/browser/chromeos/notifications/system_notification.cc:20: DBusThreadManager::Get()->GetPowerManagerClient()->GetIsScreenLocked(); On 2012/05/11 14:12:38, Daniel Erat wrote: > ...
8 years, 7 months ago (2012-05-11 16:35:29 UTC) #4
Daniel Erat
Summarizing in-person discussion: I'm pretty sure that this is happening because browser/ui/views/notifications/balloon_view.cc calls Widget::GetWindowScreenBounds() on ...
8 years, 7 months ago (2012-05-11 17:16:18 UTC) #5
oshima
On 2012/05/11 17:16:18, Daniel Erat wrote: > Summarizing in-person discussion: I'm pretty sure that this ...
8 years, 7 months ago (2012-05-11 17:36:49 UTC) #6
stevenjb
Rebase
8 years, 7 months ago (2012-05-11 18:33:54 UTC) #7
stevenjb
Only defer notifications on screen lock (don't hide)
8 years, 7 months ago (2012-05-11 18:40:16 UTC) #8
stevenjb
This change now only defers showing a notification if it is shown during screen lock; ...
8 years, 7 months ago (2012-05-11 18:43:44 UTC) #9
oshima
By the way, what about regular notifications such as email/calendar notifications? Won't they have the ...
8 years, 7 months ago (2012-05-11 19:15:46 UTC) #10
stevenjb
Maybe? I haven't seen a bug for that though. Perhaps they are less susceptible to ...
8 years, 7 months ago (2012-05-11 19:22:50 UTC) #11
oshima
i'm ok with the approach. Just one question. http://codereview.chromium.org/10382118/diff/6003/chrome/browser/chromeos/notifications/system_notification.cc File chrome/browser/chromeos/notifications/system_notification.cc (right): http://codereview.chromium.org/10382118/diff/6003/chrome/browser/chromeos/notifications/system_notification.cc#newcode87 chrome/browser/chromeos/notifications/system_notification.cc:87: if ...
8 years, 7 months ago (2012-05-11 19:40:07 UTC) #12
stevenjb
On 2012/05/11 19:40:07, oshima wrote: > i'm ok with the approach. Just one question. > ...
8 years, 7 months ago (2012-05-11 20:19:10 UTC) #13
Daniel Erat
On Fri, May 11, 2012 at 10:36 AM, <oshima@chromium.org> wrote: > On 2012/05/11 17:16:18, Daniel ...
8 years, 7 months ago (2012-05-11 20:20:24 UTC) #14
oshima
LGTM We discussed offline and agreed that we should change places that uses ScreenLocker::default_screen_locker()->locked() to ...
8 years, 7 months ago (2012-05-11 20:25:04 UTC) #15
Daniel Erat
lgtm
8 years, 7 months ago (2012-05-11 20:25:32 UTC) #16
oshima
On 2012/05/11 20:20:24, Daniel Erat wrote: > On Fri, May 11, 2012 at 10:36 AM, ...
8 years, 7 months ago (2012-05-11 20:30:54 UTC) #17
oshima
On 2012/05/11 20:30:54, oshima wrote: > On 2012/05/11 20:20:24, Daniel Erat wrote: > > On ...
8 years, 7 months ago (2012-05-11 20:41:00 UTC) #18
stevenjb
Rebase
8 years, 7 months ago (2012-05-14 22:37:11 UTC) #19
stevenjb
Add GetIsScreenLocked to mock
8 years, 7 months ago (2012-05-14 22:59:51 UTC) #20
stevenjb
Fix shutdown crash in tests.
8 years, 7 months ago (2012-05-15 00:03:08 UTC) #21
stevenjb
8 years, 7 months ago (2012-05-15 01:38:35 UTC) #22
Fix shutdown crash in tests.

Powered by Google App Engine
This is Rietveld 408576698