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

Unified Diff: ui/views/controls/table/table_view_unittest.cc

Issue 11801027: More work to make ash_unittests pass when we require context. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Possible asan fix. Created 7 years, 11 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/views/controls/table/table_view_unittest.cc
diff --git a/ui/views/controls/table/table_view_unittest.cc b/ui/views/controls/table/table_view_unittest.cc
index 797674f8a0bafb7cde23fc6a0dabb6f35d744ccb..ba69fbcc126cd9ce4f66661e5a6dfdc64bbc7f89 100644
--- a/ui/views/controls/table/table_view_unittest.cc
+++ b/ui/views/controls/table/table_view_unittest.cc
@@ -186,9 +186,8 @@ void TableViewTest::SetUp() {
columns[1].id = 1;
table_ = new TableView(model_.get(), columns, views::ICON_AND_TEXT,
false, false, false);
- window_ = views::Widget::CreateWindowWithBounds(
- this,
- gfx::Rect(100, 100, 512, 512));
+ window_ = views::Widget::CreateWindowWithContextAndBounds(
+ this, GetWidget()->GetNativeWindow(), gfx::Rect(100, 100, 512, 512));
}
void TableViewTest::TearDown() {

Powered by Google App Engine
This is Rietveld 408576698