summaryrefslogtreecommitdiffstats
path: root/ash/extended_desktop_unittest.cc
diff options
context:
space:
mode:
authorerg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-06 21:09:46 +0000
committererg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-06 21:09:46 +0000
commit5a9de31f01f29f0a2c754598a7f4c7eea7c3771e (patch)
treeabfc3cdb052e57dc7d3bdfd9cbbb15ac55351dc0 /ash/extended_desktop_unittest.cc
parent8c1e91b079517e00fb2d8e58594524e798aa08b6 (diff)
downloadchromium_src-5a9de31f01f29f0a2c754598a7f4c7eea7c3771e.zip
chromium_src-5a9de31f01f29f0a2c754598a7f4c7eea7c3771e.tar.gz
chromium_src-5a9de31f01f29f0a2c754598a7f4c7eea7c3771e.tar.bz2
views cleanup: Merge parent and parent_widget.
According to Ben, parent_widget is a leftover from when we had NativeViewGtk. It isn't needed now and everything should be handleable by the normal parent. BUG=161882 Review URL: https://chromiumcodereview.appspot.com/11299317 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171590 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/extended_desktop_unittest.cc')
-rw-r--r--ash/extended_desktop_unittest.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/ash/extended_desktop_unittest.cc b/ash/extended_desktop_unittest.cc
index d43fe02..c153a60 100644
--- a/ash/extended_desktop_unittest.cc
+++ b/ash/extended_desktop_unittest.cc
@@ -37,7 +37,8 @@ views::Widget* CreateTestWidgetWithParent(views::Widget* parent,
const gfx::Rect& bounds,
bool child) {
views::Widget::InitParams params(views::Widget::InitParams::TYPE_WINDOW);
- params.parent_widget = parent;
+ if (parent)
+ params.parent = parent->GetNativeView();
params.bounds = bounds;
params.child = child;
views::Widget* widget = new views::Widget;