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

Unified Diff: chrome/test/base/browser_with_test_window_test.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
Index: chrome/test/base/browser_with_test_window_test.cc
===================================================================
--- chrome/test/base/browser_with_test_window_test.cc (revision 124527)
+++ chrome/test/base/browser_with_test_window_test.cc (working copy)
@@ -48,11 +48,11 @@
window_.reset(new TestBrowserWindow(browser()));
browser_->SetWindowForTesting(window_.get());
#if defined(USE_AURA)
- aura::RootWindow* root_window = aura::RootWindow::GetInstance();
+ root_window_.reset(new aura::RootWindow);
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
}
@@ -61,7 +61,7 @@
#if defined(USE_AURA)
test_activation_client_.reset();
test_stacking_client_.reset();
- aura::RootWindow::DeleteInstance();
+ root_window_.reset();
#endif
}
« no previous file with comments | « chrome/test/base/browser_with_test_window_test.h ('k') | chrome/test/base/chrome_render_view_host_test_harness.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698