New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 799980 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Jan 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

Allow ash/system/system_notifier.cc to be included in src/chrome

Project Member Reported by steve...@chromium.org, Jan 8 2018

Issue description

system_notifier.cc just defines some string constants and determines their notification priority. We should move this to ash/public so that it is clear that code in src/chrome/browser/ui/ash can safely use it.

 
Cc: yoshiki@chromium.org
+yoshiki

I think we didn't move this before because it contained some real logic, but I think yoshiki eliminated it.

It's up to you folks with more notifications knowledge about whether or not this is desirable. It has always seemed a bit weird that "show at lock screen" is based on both ash and browser sharing knowledge of a notification ID, rather than a boolean on the notification itself. But it's probably OK for now, esp. if those notifications are "it should live in ash, but it doesn't because of historical chrome dependencies".

Comment 2 by estade@google.com, Jan 8 2018

my plan is still to be able to remove it completely, as its entire existence is somewhat questionable (it's basically a centralized list used to determine when to hide notifications for fullscreen/login screen/etc, but that seems to belong in the Notification itself).

This isn't the first time someone has wanted to move it, maybe we should add a warning to the top of the file.
The reason I want to move it (even short term) is that it is currently harmless to include in src/chrome code, but it looks like a violation. This prevents tightening DEPS enforcement and complicates code reviews. A comment alone won't help with that.

If the time frame to remove it is a week or two, that's fine, we can leave it as-is until then, otherwise I'd like to just go ahead and move it, maybe with a comment that it has harmless code duplication and a TODO: deprecate.

Comment 4 by estade@google.com, Jan 8 2018

I would think the easier and less disruptive way to deal with it while proceeding with tightening DEPS rules is to -ash/ but +ash/system/system_notifier.cc in DEPS files.
Status: Assigned (was: Started)
Summary: Allow ash/system/system_notifier.cc to be included in src/chrome (was: Move ash/system/system_notifier.cc to ash/public)
I ran:

./tools/git/move_source_file.py ash/display/shutdown_observer_chromeos.cc ash/display/display_shutdown_observer_chromeos.cc

And it touches 27 files, only 10 of which are in src/chrome, so it may be better just to add individual DEPS rules for the affected files/directories.

Renaming to reflect what we need to accomplish.

Comment 6 by osh...@chromium.org, Jan 26 2018

Components: UI>Shell>Notifications

Comment 7 by est...@chromium.org, Jan 26 2018

Status: WontFix (was: Assigned)
removed in 2395de65c82b1d877b9e

Sign in to add a comment