Index: chrome/test/base/testing_profile.cc |
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc |
index 18a75dcd292464babeee67a125157112c6e5ac55..5a273b608140c67f1063b6cd7b4f84e726d7a331 100644 |
--- a/chrome/test/base/testing_profile.cc |
+++ b/chrome/test/base/testing_profile.cc |
@@ -151,14 +151,12 @@ class TestExtensionURLRequestContextGetter |
scoped_ptr<net::URLRequestContext> context_; |
}; |
+#if defined(ENABLE_NOTIFICATIONS) |
BrowserContextKeyedService* CreateTestDesktopNotificationService( |
content::BrowserContext* profile) { |
-#if defined(ENABLE_NOTIFICATIONS) |
return new DesktopNotificationService(static_cast<Profile*>(profile), NULL); |
-#else |
- return NULL; |
-#endif |
} |
+#endif |
} // namespace |