diff options
author | johnnyg@chromium.org <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-31 03:27:19 +0000 |
---|---|---|
committer | johnnyg@chromium.org <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-31 03:27:19 +0000 |
commit | bfa69d49b17f33635c79f79819b90a8d2089c4b3 (patch) | |
tree | a2877f29a6b04dd388d444898fae755ab3e63ff7 /webkit/api/src/WebRuntimeFeatures.cpp | |
parent | e5d8bbbfb7b636643bf30f89f7d952d13a20473e (diff) | |
download | chromium_src-bfa69d49b17f33635c79f79819b90a8d2089c4b3.zip chromium_src-bfa69d49b17f33635c79f79819b90a8d2089c4b3.tar.gz chromium_src-bfa69d49b17f33635c79f79819b90a8d2089c4b3.tar.bz2 |
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
Diffstat (limited to 'webkit/api/src/WebRuntimeFeatures.cpp')
-rw-r--r-- | webkit/api/src/WebRuntimeFeatures.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
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 |