| Index: chrome/browser/extensions/notifications_apitest.cc
|
| ===================================================================
|
| --- chrome/browser/extensions/notifications_apitest.cc (revision 81278)
|
| +++ chrome/browser/extensions/notifications_apitest.cc (working copy)
|
| @@ -1,11 +1,10 @@
|
| -// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| #include "chrome/browser/extensions/extension_apitest.h"
|
|
|
| #include "chrome/browser/notifications/desktop_notification_service.h"
|
| -#include "chrome/browser/notifications/desktop_notification_service_factory.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/ui/browser.h"
|
|
|
| @@ -17,10 +16,11 @@
|
| ASSERT_TRUE(RunExtensionTest("notifications/has_not_permission")) << message_;
|
| ASSERT_TRUE(RunExtensionTest("notifications/has_permission_manifest"))
|
| << message_;
|
| - DesktopNotificationServiceFactory::GetForProfile(browser()->profile())
|
| + browser()->profile()->GetDesktopNotificationService()
|
| ->GrantPermission(GURL(
|
| "chrome-extension://peoadpeiejnhkmpaakpnompolbglelel"));
|
| ASSERT_TRUE(RunExtensionTest("notifications/has_permission_prefs"))
|
| << message_;
|
| #endif
|
| }
|
| +
|
|
|