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

Unified Diff: ui/aura/window.cc

Issue 2747723004: Revert of Correctly update the popup window position (patchset #6 id:160001 of https://codereview.c… (Closed)
Patch Set: Created 3 years, 9 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
Index: ui/aura/window.cc
diff --git a/ui/aura/window.cc b/ui/aura/window.cc
index 64ec5af5aea26662e1995666be89e3af208e385c..a8a79d62123d7cf23b25d7b2481c6026a1e566e0 100644
--- a/ui/aura/window.cc
+++ b/ui/aura/window.cc
@@ -306,11 +306,8 @@ void Window::SetBoundsInScreen(const gfx::Rect& new_bounds_in_screen,
if (root) {
aura::client::ScreenPositionClient* screen_position_client =
aura::client::GetScreenPositionClient(root);
- if (screen_position_client) {
- screen_position_client->SetBounds(this, new_bounds_in_screen,
- dst_display);
- return;
- }
+ screen_position_client->SetBounds(this, new_bounds_in_screen, dst_display);
+ return;
}
SetBounds(new_bounds_in_screen);
}

Powered by Google App Engine
This is Rietveld 408576698