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

Unified Diff: ash/shell.cc

Issue 2697043004: Makes Shell::SetDisplayWorkAreaInsets() call to WmShell (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« ash/aura/wm_shell_aura.cc ('K') | « ash/aura/wm_shell_aura.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell.cc
diff --git a/ash/shell.cc b/ash/shell.cc
index f1ecea4ff9df78d765c895884b5d9592fdb4cd08..0327a11dc067e8159f363ca866b4727a52e3feda 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -274,10 +274,7 @@ views::NonClientFrameView* Shell::CreateDefaultNonClientFrameView(
void Shell::SetDisplayWorkAreaInsets(Window* contains,
const gfx::Insets& insets) {
- if (!window_tree_host_manager_->UpdateWorkAreaOfDisplayNearestWindow(
- contains, insets)) {
- return;
- }
+ wm_shell_->SetDisplayWorkAreaInsets(WmWindow::Get(contains), insets);
msw 2017/02/16 18:34:49 It's a bit odd to do Shell->WmShell->Shell, but it
sky 2017/02/16 18:42:20 Acknowledged.
}
void Shell::OnLoginStateChanged(LoginStatus status) {
« ash/aura/wm_shell_aura.cc ('K') | « ash/aura/wm_shell_aura.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698