summaryrefslogtreecommitdiffstats
path: root/chrome/test/base
diff options
context:
space:
mode:
authorhans@chromium.org <hans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-12 01:59:02 +0000
committerhans@chromium.org <hans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-12 01:59:02 +0000
commit1d51882f44178fb5bdbf6a7f31e435c9d6de652a (patch)
tree97388deda6011a2d2897a8d4eea831a6bc56b568 /chrome/test/base
parent9e9a06a3d002a799246a5dbbd9d95aef999185c9 (diff)
downloadchromium_src-1d51882f44178fb5bdbf6a7f31e435c9d6de652a.zip
chromium_src-1d51882f44178fb5bdbf6a7f31e435c9d6de652a.tar.gz
chromium_src-1d51882f44178fb5bdbf6a7f31e435c9d6de652a.tar.bz2
Fixes for -Wunused-function on Linux, Android and ChromeOS
BUG=315884, 78045 TBR=owners Review URL: https://codereview.chromium.org/67923002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@234373 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/base')
-rw-r--r--chrome/test/base/testing_profile.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc
index 18a75dc..5a273b6 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