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

Issue 2523873002: Remove DisplayChangeObserver ash dependencies. (Closed)

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

Description

Remove DisplayChangeObserver ash dependencies. Before moving DisplayChangeObserver from src/ash/display to src/ui/display we need to remove all ash dependencies. 1. DisplayManager and DisplayConfigurator are injected instead of getting them from ash::Shell. 2. DCO no longer acts as a ShellObserver for shutdown. Add ShutdownObserver to do this instead. 3. Move display strings from ash to ui. BUG=667344 Committed: https://crrev.com/98748a534f51488863475326bcc87b510c90df1d Cr-Commit-Position: refs/heads/master@{#436129}

Patch Set 1 #

Patch Set 2 : Remove comment. #

Total comments: 4

Patch Set 3 : Rebase + rework. #

Patch Set 4 : Rebase. #

Total comments: 2

Patch Set 5 : Change DCO constructor slightly. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -77 lines) Patch
M ash/BUILD.gn View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M ash/ash_strings.grd View 1 2 2 chunks +0 lines, -9 lines 0 comments Download
M ash/display/display_change_observer_chromeos.h View 1 2 3 4 3 chunks +15 lines, -9 lines 0 comments Download
M ash/display/display_change_observer_chromeos.cc View 1 2 3 4 13 chunks +21 lines, -38 lines 0 comments Download
A ash/display/shutdown_observer_chromeos.h View 1 chunk +35 lines, -0 lines 0 comments Download
A ash/display/shutdown_observer_chromeos.cc View 1 2 1 chunk +28 lines, -0 lines 0 comments Download
M ash/display/window_tree_host_manager.h View 1 2 3 chunks +3 lines, -5 lines 0 comments Download
M ash/display/window_tree_host_manager.cc View 1 2 3 2 chunks +0 lines, -9 lines 0 comments Download
M ash/shell.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M ash/shell.cc View 1 2 3 4 3 chunks +8 lines, -1 line 0 comments Download
M ash/system/chromeos/screen_layout_observer.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M ui/display/manager/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ui/display/manager/DEPS View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M ui/display/manager/display_manager.h View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M ui/display/manager/display_manager.cc View 1 2 4 chunks +4 lines, -2 lines 0 comments Download
M ui/strings/ui_strings.grd View 1 2 1 chunk +11 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 32 (22 generated)
kylechar
4 years ago (2016-11-24 19:38:53 UTC) #7
oshima
https://codereview.chromium.org/2523873002/diff/20001/ash/display/display_change_observer_chromeos.cc File ash/display/display_change_observer_chromeos.cc (left): https://codereview.chromium.org/2523873002/diff/20001/ash/display/display_change_observer_chromeos.cc#oldcode52 ash/display/display_change_observer_chromeos.cc:52: }; This is defined for readability/explanation purpose, so let's ...
4 years ago (2016-11-30 18:17:10 UTC) #8
kylechar
+sadrul for the general ui/* stuff. https://codereview.chromium.org/2523873002/diff/20001/ash/display/display_change_observer_chromeos.cc File ash/display/display_change_observer_chromeos.cc (left): https://codereview.chromium.org/2523873002/diff/20001/ash/display/display_change_observer_chromeos.cc#oldcode52 ash/display/display_change_observer_chromeos.cc:52: }; On 2016/11/30 ...
4 years ago (2016-11-30 21:46:03 UTC) #10
sadrul
lgtm
4 years ago (2016-12-02 00:55:49 UTC) #12
kylechar
This is rebased on the new build target and the DisplayStringProvider interface is gone.
4 years ago (2016-12-02 14:36:53 UTC) #13
oshima
lgtm https://codereview.chromium.org/2523873002/diff/80001/ash/display/display_change_observer_chromeos.h File ash/display/display_change_observer_chromeos.h (right): https://codereview.chromium.org/2523873002/diff/80001/ash/display/display_change_observer_chromeos.h#newcode73 ash/display/display_change_observer_chromeos.h:73: private: can you document ownership/lifetime of these objects?
4 years ago (2016-12-02 19:07:46 UTC) #19
kylechar
Thanks oshima/sadrul! https://codereview.chromium.org/2523873002/diff/80001/ash/display/display_change_observer_chromeos.h File ash/display/display_change_observer_chromeos.h (right): https://codereview.chromium.org/2523873002/diff/80001/ash/display/display_change_observer_chromeos.h#newcode73 ash/display/display_change_observer_chromeos.h:73: private: On 2016/12/02 19:07:45, oshima wrote: > ...
4 years ago (2016-12-02 20:32:36 UTC) #22
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/2523873002/100001
4 years ago (2016-12-03 01:23:37 UTC) #27
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years ago (2016-12-03 01:33:58 UTC) #30
commit-bot: I haz the power
4 years ago (2016-12-03 01:36:40 UTC) #32
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/98748a534f51488863475326bcc87b510c90df1d
Cr-Commit-Position: refs/heads/master@{#436129}

Powered by Google App Engine
This is Rietveld 408576698