Allow ash/system/system_notifier.cc to be included in src/chrome |
||||
Issue descriptionsystem_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.
,
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.
,
Jan 8 2018
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.
,
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.
,
Jan 9 2018
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.
,
Jan 26 2018
,
Jan 26 2018
removed in 2395de65c82b1d877b9e |
||||
►
Sign in to add a comment |
||||
Comment 1 by jamescook@chromium.org
, Jan 8 2018