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

Unified Diff: chrome/browser/notifications/desktop_notifications_unittest.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/browser/notifications/desktop_notifications_unittest.cc
===================================================================
--- chrome/browser/notifications/desktop_notifications_unittest.cc (revision 124527)
+++ chrome/browser/notifications/desktop_notifications_unittest.cc (working copy)
@@ -91,11 +91,11 @@
}
void DesktopNotificationsTest::SetUp() {
-#if defined(USE_AURA)
+#if defined(USE_ASH)
WebKit::initialize(&webkit_platform_support_);
// MockBalloonCollection retrieves information about the screen on creation.
// So it is necessary to make sure the desktop gets created first.
- ash::Shell::GetRootWindow();
+ ash::Shell::CreateInstance(NULL);
#endif
browser::RegisterLocalState(&local_state_);
@@ -111,8 +111,8 @@
service_.reset(NULL);
ui_manager_.reset(NULL);
profile_.reset(NULL);
-#if defined(USE_AURA)
- aura::RootWindow::DeleteInstance();
+#if defined(USE_ASH)
+ ash::Shell::DeleteInstance();
aura::Env::DeleteInstance();
WebKit::shutdown();
#endif

Powered by Google App Engine
This is Rietveld 408576698