Index: chrome/browser/extensions/notifications_apitest.cc |
diff --git a/chrome/browser/extensions/notifications_apitest.cc b/chrome/browser/extensions/notifications_apitest.cc |
index 48e0183160a2ec4585bd50461c22091572640f48..834efa4eed42f278c17b518d293808b5f20f0986 100644 |
--- a/chrome/browser/extensions/notifications_apitest.cc |
+++ b/chrome/browser/extensions/notifications_apitest.cc |
@@ -9,6 +9,11 @@ |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/ui/browser.h" |
+// TODO(kbr): remove: http://crbug.com/222296 |
+#if defined(OS_MACOSX) |
+#import "base/mac/mac_util.h" |
+#endif |
+ |
IN_PROC_BROWSER_TEST_F(ExtensionApiTest, NotificationsNoPermission) { |
#if defined(OS_LINUX) && defined(TOOLKIT_VIEWS) |
// Notifications not supported on linux/views yet. |
@@ -33,6 +38,13 @@ IN_PROC_BROWSER_TEST_F(ExtensionApiTest, NotificationsHasPermission) { |
#if defined(OS_LINUX) && defined(TOOLKIT_VIEWS) |
// Notifications not supported on linux/views yet. |
#else |
+ |
+#if defined(OS_MACOSX) |
+ // TODO(kbr): re-enable: http://crbug.com/222296 |
+ if (base::mac::IsOSMountainLionOrLater()) |
+ return; |
+#endif |
+ |
DesktopNotificationServiceFactory::GetForProfile(browser()->profile()) |
->GrantPermission(GURL( |
"chrome-extension://peoadpeiejnhkmpaakpnompolbglelel")); |