summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
authorjohnnyg@chromium.org <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-09 20:09:01 +0000
committerjohnnyg@chromium.org <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-09 20:09:01 +0000
commit21351f3d53b1764783de97b4f8927bcc819edb8a (patch)
tree4d0c2fcb423d75de938cd3ec548aa8cd9dd9d56f /chrome/renderer
parentea7c380758e8825f45ea6c803326e5954fb1cb6c (diff)
downloadchromium_src-21351f3d53b1764783de97b4f8927bcc819edb8a.zip
chromium_src-21351f3d53b1764783de97b4f8927bcc819edb8a.tar.gz
chromium_src-21351f3d53b1764783de97b4f8927bcc819edb8a.tar.bz2
Revert 38469 - Desktop Notifications for the mac!
BUG=23066 TEST=notify_demo.html Review URL: http://codereview.chromium.org/548208 TBR=johnnyg@chromium.org Review URL: http://codereview.chromium.org/600015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38493 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/render_thread.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/renderer/render_thread.cc b/chrome/renderer/render_thread.cc
index 1f61c23..ecca2af 100644
--- a/chrome/renderer/render_thread.cc
+++ b/chrome/renderer/render_thread.cc
@@ -653,8 +653,11 @@ void RenderThread::EnsureWebKitInitialized() {
WebRuntimeFeatures::enableApplicationCache(
!command_line.HasSwitch(switches::kDisableApplicationCache));
+#if defined(OS_WIN) || defined(OS_LINUX)
+ // Notifications are supported on Windows and Linux only.
WebRuntimeFeatures::enableNotifications(
!command_line.HasSwitch(switches::kDisableDesktopNotifications));
+#endif
WebRuntimeFeatures::enableLocalStorage(
!command_line.HasSwitch(switches::kDisableLocalStorage));