| 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..67987c37124f84e45ff0e8212571d98ccc6a4475 100644
|
| --- a/chrome/browser/extensions/notifications_apitest.cc
|
| +++ b/chrome/browser/extensions/notifications_apitest.cc
|
| @@ -4,6 +4,9 @@
|
|
|
| #include "chrome/browser/extensions/extension_apitest.h"
|
|
|
| +#if defined(OS_MACOSX)
|
| +#import "base/mac/mac_util.h"
|
| +#endif
|
| #include "chrome/browser/notifications/desktop_notification_service.h"
|
| #include "chrome/browser/notifications/desktop_notification_service_factory.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| @@ -33,6 +36,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"));
|
|
|