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

Issue 2400553002: ash: Remove broken display notification suppression when settings is open (Closed)

Created:
4 years, 2 months ago by James Cook
Modified:
4 years, 2 months ago
Reviewers:
oshima
CC:
chromium-reviews, kalyank, sadrul, oshima+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ash: Remove broken display notification suppression when settings is open On Chrome OS we used to have code that suppressed showing a display change notification (e.g. resolution changed) when the display settings UI was visible. This broke when settings moved from being shown in a tab to being shown in a window. We always show the notifications, and have been doing so for about 2 years. I spoke with PM tbuckley@ and he's OK with always showing the notifications I've deleted the code that was trying to suppress them, effectively doing a manual revert of http://crrev.com/208299 This simplifies ash::SystemTrayDelegate and removes one method I would have to port to mojo for mustash. BUG=246271, 647412 TEST=ash_unittests, change display rotation and see that a notification always appears Committed: https://crrev.com/f60d6ea452282d53ef12de076c0a5436bae3ddb7 Cr-Commit-Position: refs/heads/master@{#424553}

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : fix ash_content_unittests #

Patch Set 4 : rebase #

Patch Set 5 : fix tests #

Total comments: 2

Patch Set 6 : rebase #

Patch Set 7 : add bug number #

Patch Set 8 : hide notifications in tests by default #

Patch Set 9 : ash_content_unittests #

Total comments: 2

Patch Set 10 : fix comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -139 lines) Patch
M ash/common/system/tray/default_system_tray_delegate.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M ash/common/system/tray/default_system_tray_delegate.cc View 1 1 chunk +0 lines, -4 lines 0 comments Download
M ash/common/system/tray/system_tray_delegate.h View 1 2 3 4 5 1 chunk +0 lines, -4 lines 0 comments Download
M ash/common/system/tray/system_tray_delegate.cc View 1 2 3 4 5 1 chunk +0 lines, -4 lines 0 comments Download
M ash/common/test/test_system_tray_delegate.h View 1 2 3 4 5 3 chunks +0 lines, -6 lines 0 comments Download
M ash/common/test/test_system_tray_delegate.cc View 1 2 3 4 5 2 chunks +1 line, -7 lines 0 comments Download
M ash/content/display/screen_orientation_controller_chromeos_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -2 lines 0 comments Download
M ash/display/mirror_window_controller_unittest.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M ash/system/chromeos/screen_layout_observer.h View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -0 lines 0 comments Download
M ash/system/chromeos/screen_layout_observer.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -4 lines 0 comments Download
M ash/system/chromeos/screen_layout_observer_unittest.cc View 1 2 3 4 5 6 7 4 chunks +13 lines, -9 lines 0 comments Download
M ash/system/web_notification/web_notification_tray_unittest.cc View 1 2 3 4 5 6 7 2 chunks +7 lines, -4 lines 0 comments Download
M ash/test/ash_test_helper.cc View 1 2 3 4 5 6 7 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_client.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_client.cc View 1 2 3 2 chunks +1 line, -5 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.cc View 1 2 3 4 5 3 chunks +0 lines, -24 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos_browsertest_chromeos.cc View 1 2 3 4 4 chunks +0 lines, -61 lines 0 comments Download

Messages

Total messages: 47 (37 generated)
James Cook
oshima, please take a look
4 years, 2 months ago (2016-10-06 00:22:48 UTC) #6
James Cook
Ping oshima?
4 years, 2 months ago (2016-10-10 17:03:45 UTC) #17
oshima
lgtm https://codereview.chromium.org/2400553002/diff/100001/ash/wm/ash_native_cursor_manager_interactive_uitest.cc File ash/wm/ash_native_cursor_manager_interactive_uitest.cc (right): https://codereview.chromium.org/2400553002/diff/100001/ash/wm/ash_native_cursor_manager_interactive_uitest.cc#newcode82 ash/wm/ash_native_cursor_manager_interactive_uitest.cc:82: ScopedSuppressNotifications suppress_notifications; can you file a bug with ...
4 years, 2 months ago (2016-10-11 17:19:00 UTC) #24
James Cook
https://codereview.chromium.org/2400553002/diff/100001/ash/wm/ash_native_cursor_manager_interactive_uitest.cc File ash/wm/ash_native_cursor_manager_interactive_uitest.cc (right): https://codereview.chromium.org/2400553002/diff/100001/ash/wm/ash_native_cursor_manager_interactive_uitest.cc#newcode82 ash/wm/ash_native_cursor_manager_interactive_uitest.cc:82: ScopedSuppressNotifications suppress_notifications; On 2016/10/11 17:19:00, oshima wrote: > can ...
4 years, 2 months ago (2016-10-11 18:01:04 UTC) #27
James Cook
oshima, please take another look.
4 years, 2 months ago (2016-10-11 18:45:39 UTC) #30
oshima
lgtm https://codereview.chromium.org/2400553002/diff/180001/ash/system/chromeos/screen_layout_observer.h File ash/system/chromeos/screen_layout_observer.h (right): https://codereview.chromium.org/2400553002/diff/180001/ash/system/chromeos/screen_layout_observer.h#newcode32 ash/system/chromeos/screen_layout_observer.h:32: // Allow tests to suppress showing notifications. nit: ...
4 years, 2 months ago (2016-10-11 20:50:34 UTC) #39
James Cook
Thanks for the reviews. https://codereview.chromium.org/2400553002/diff/180001/ash/system/chromeos/screen_layout_observer.h File ash/system/chromeos/screen_layout_observer.h (right): https://codereview.chromium.org/2400553002/diff/180001/ash/system/chromeos/screen_layout_observer.h#newcode32 ash/system/chromeos/screen_layout_observer.h:32: // Allow tests to suppress ...
4 years, 2 months ago (2016-10-11 20:58:17 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2400553002/200001
4 years, 2 months ago (2016-10-11 20:58:48 UTC) #43
commit-bot: I haz the power
Committed patchset #10 (id:200001)
4 years, 2 months ago (2016-10-11 21:38:05 UTC) #45
commit-bot: I haz the power
4 years, 2 months ago (2016-10-11 21:39:45 UTC) #47
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/f60d6ea452282d53ef12de076c0a5436bae3ddb7
Cr-Commit-Position: refs/heads/master@{#424553}

Powered by Google App Engine
This is Rietveld 408576698