From bfa69d49b17f33635c79f79819b90a8d2089c4b3 Mon Sep 17 00:00:00 2001 From: "johnnyg@chromium.org" <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> Date: Sat, 31 Oct 2009 03:27:19 +0000 Subject: Change notification cmd line enabling to use the new RuntimeEnabledFeatures code. BUG=25318 TEST=none Review URL: http://codereview.chromium.org/339093 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30660 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/api/src/WebRuntimeFeatures.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'webkit/api/src/WebRuntimeFeatures.cpp') diff --git a/webkit/api/src/WebRuntimeFeatures.cpp b/webkit/api/src/WebRuntimeFeatures.cpp index fb51928..b3d3ff6 100644 --- a/webkit/api/src/WebRuntimeFeatures.cpp +++ b/webkit/api/src/WebRuntimeFeatures.cpp @@ -119,4 +119,20 @@ bool WebRuntimeFeatures::isSocketsEnabled() #endif } +void WebRuntimeFeatures::enableNotifications(bool enable) +{ +#if ENABLE(NOTIFICATIONS) + RuntimeEnabledFeatures::setNotificationsEnabled(enable); +#endif +} + +bool WebRuntimeFeatures::isNotificationsEnabled() +{ +#if ENABLE(NOTIFICATIONS) + return RuntimeEnabledFeatures::notificationsEnabled(); +#else + return false; +#endif +} + } // namespace WebKit -- cgit v1.1