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/focus/focus_manager_test.cc

Issue 11416251: Desktop aura: Continue threading context through views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix erroneously removed line from NWWin tests. Created 8 years 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/focus/focus_manager_test.cc
diff --git a/ui/views/focus/focus_manager_test.cc b/ui/views/focus/focus_manager_test.cc
index 4344f127e70370bf66514df990e94c3aeea9dfa1..2868112379754d54342c26160f79e29077d0d56f 100644
--- a/ui/views/focus/focus_manager_test.cc
+++ b/ui/views/focus/focus_manager_test.cc
@@ -30,8 +30,13 @@ FocusManager* FocusManagerTest::GetFocusManager() {
void FocusManagerTest::SetUp() {
ViewsTestBase::SetUp();
- Widget* widget =
- Widget::CreateWindowWithBounds(this, gfx::Rect(0, 0, 1024, 768));
+
+ Widget* widget = new Widget;
+ Widget::InitParams params = CreateParams(Widget::InitParams::TYPE_WINDOW);
+ params.delegate = this;
+ params.bounds = gfx::Rect(0, 0, 1024, 768);
+ widget->Init(params);
+
InitContentView();
widget->Show();
}
« no previous file with comments | « ui/views/controls/textfield/native_textfield_views_unittest.cc ('k') | ui/views/focus/focus_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698