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

Unified Diff: ui/views/widget/desktop_aura/desktop_screen_position_client.cc

Issue 292583003: Remove unused code in DesktopScreenPositionClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/desktop_aura/desktop_screen_position_client.cc
diff --git a/ui/views/widget/desktop_aura/desktop_screen_position_client.cc b/ui/views/widget/desktop_aura/desktop_screen_position_client.cc
index 34c8553e2512a7676f017d7d64bffb0becc87ab5..b147129a83ea1437cf5f8e602744e9396835c417 100644
--- a/ui/views/widget/desktop_aura/desktop_screen_position_client.cc
+++ b/ui/views/widget/desktop_aura/desktop_screen_position_client.cc
@@ -8,7 +8,6 @@
#include "ui/gfx/display.h"
#include "ui/gfx/point_conversions.h"
#include "ui/gfx/screen.h"
-#include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h"
namespace views {
@@ -89,16 +88,7 @@ void DesktopScreenPositionClient::SetBounds(
return;
}
- internal::NativeWidgetPrivate* desktop_native_widget =
- DesktopNativeWidgetAura::ForWindow(root);
- if (desktop_native_widget &&
sadrul 2014/05/20 17:39:17 Is this because DesktopNativeWidgetAura::ForWindow
pkotwicz 2014/05/20 19:11:13 views::Widget::is_top_level() returns true if
sadrul 2014/05/20 20:03:10 OK. Let's add DCHECK() for this, so we know to fix
pkotwicz 2014/05/20 21:27:25 There is no point in a DCHECK. One could argue tha
sadrul 2014/05/21 19:00:06 Right. Do we have code to check that that call is
- desktop_native_widget->GetNativeView() == window) {
- // |window| is the content_window.
- // Setting bounds of root resizes |window|.
- root->GetHost()->SetBounds(bounds);
- } else {
- window->SetBounds(bounds);
- }
+ window->SetBounds(bounds);
}
} // namespace views
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698