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

Unified Diff: ui/views/test/views_test_base.cc

Issue 9535025: Remove the singleton instance get/delete methods from RootWindow (yay) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 10 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 | « ui/views/test/views_test_base.h ('k') | ui/views/widget/native_widget_aura_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/test/views_test_base.cc
===================================================================
--- ui/views/test/views_test_base.cc (revision 124527)
+++ ui/views/test/views_test_base.cc (working copy)
@@ -87,14 +87,14 @@
if (!views_delegate_.get())
views_delegate_.reset(new TestViewsDelegate());
#if defined(USE_AURA)
- root_window_ = aura::RootWindow::GetInstance();
+ root_window_.reset(new aura::RootWindow);
root_window_->SetProperty(
aura::client::kRootWindowInputMethodKey,
test_input_method_.get());
test_activation_client_.reset(
- new aura::test::TestActivationClient(root_window_));
+ new aura::test::TestActivationClient(root_window_.get()));
test_stacking_client_.reset(
- new aura::test::TestStackingClient(root_window_));
+ new aura::test::TestStackingClient(root_window_.get()));
#endif
}
@@ -108,7 +108,7 @@
#if defined(USE_AURA)
test_stacking_client_.reset();
test_activation_client_.reset();
- aura::RootWindow::DeleteInstance();
+ root_window_.reset();
#endif
}
« no previous file with comments | « ui/views/test/views_test_base.h ('k') | ui/views/widget/native_widget_aura_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698