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

Unified Diff: content/browser/renderer_host/test_render_view_host.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 | « content/browser/renderer_host/test_render_view_host.h ('k') | ui/aura/demo/demo_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/test_render_view_host.cc
===================================================================
--- content/browser/renderer_host/test_render_view_host.cc (revision 124527)
+++ content/browser/renderer_host/test_render_view_host.cc (working copy)
@@ -400,8 +400,9 @@
void RenderViewHostTestHarness::SetUp() {
#if defined(USE_AURA)
- aura::RootWindow* root_window = aura::RootWindow::GetInstance();
- test_stacking_client_.reset(new aura::test::TestStackingClient(root_window));
+ root_window_.reset(new aura::RootWindow);
+ test_stacking_client_.reset(
+ new aura::test::TestStackingClient(root_window_.get()));
#endif
SetContents(CreateTestTabContents());
}
@@ -410,6 +411,7 @@
SetContents(NULL);
#if defined(USE_AURA)
test_stacking_client_.reset();
+ root_window_.reset();
#endif
// Make sure that we flush any messages related to TabContents destruction
« no previous file with comments | « content/browser/renderer_host/test_render_view_host.h ('k') | ui/aura/demo/demo_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698