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

Unified Diff: chrome/browser/chromeos/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/chromeos/notifications/desktop_notifications_unittest.cc
===================================================================
--- chrome/browser/chromeos/notifications/desktop_notifications_unittest.cc (revision 124527)
+++ chrome/browser/chromeos/notifications/desktop_notifications_unittest.cc (working copy)
@@ -112,9 +112,9 @@
}
void DesktopNotificationsTest::SetUp() {
-#if defined(USE_AURA)
+#if defined(USE_ASH)
// Make sure a root window has been instantiated.
- ash::Shell::GetRootWindow();
+ ash::Shell::CreateInstance(NULL);
#endif
browser::RegisterLocalState(&local_state_);
profile_.reset(new TestingProfile());
@@ -129,6 +129,9 @@
service_.reset(NULL);
ui_manager_.reset(NULL);
profile_.reset(NULL);
+#if defined(USE_ASH)
+ ash::Shell::DeleteInstance();
+#endif
}
content::ShowDesktopNotificationHostMsgParams
« no previous file with comments | « chrome/browser/chrome_browser_main_extra_parts_aura.cc ('k') | chrome/browser/notifications/desktop_notifications_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698