Index: chrome/browser/notifications/platform_notification_service_impl.cc |
diff --git a/chrome/browser/notifications/platform_notification_service_impl.cc b/chrome/browser/notifications/platform_notification_service_impl.cc |
index e8a668d30dfa1c77c4041830b5fcf9f3aca3ab3b..032a6b25c59c089568168b866e7f0c4e926abec6 100644 |
--- a/chrome/browser/notifications/platform_notification_service_impl.cc |
+++ b/chrome/browser/notifications/platform_notification_service_impl.cc |
@@ -25,8 +25,6 @@ |
#include "chrome/browser/profiles/profile_io_data.h" |
#include "chrome/browser/profiles/profile_manager.h" |
#include "chrome/browser/ui/browser.h" |
-#include "chrome/browser/ui/chrome_pages.h" |
-#include "chrome/browser/ui/scoped_tabbed_browser_displayer.h" |
#include "chrome/common/chrome_switches.h" |
#include "chrome/common/pref_names.h" |
#include "chrome/grit/generated_resources.h" |
@@ -89,7 +87,7 @@ void OnCloseNonPersistentNotificationProfileLoaded( |
// Callback to run once the profile has been loaded in order to perform a |
// given |operation| in a notification. |
void ProfileLoadedCallback( |
- PlatformNotificationServiceImpl::NotificationOperation operation, |
+ notification_operation_common::NotificationOperation operation, |
const GURL& origin, |
int64_t persistent_notification_id, |
int action_index, |
@@ -102,19 +100,18 @@ void ProfileLoadedCallback( |
} |
switch (operation) { |
- case PlatformNotificationServiceImpl::NOTIFICATION_CLICK: |
+ case notification_operation_common::NOTIFICATION_CLICK: |
PlatformNotificationServiceImpl::GetInstance() |
->OnPersistentNotificationClick(profile, persistent_notification_id, |
origin, action_index); |
break; |
- case PlatformNotificationServiceImpl::NOTIFICATION_CLOSE: |
+ case notification_operation_common::NOTIFICATION_CLOSE: |
PlatformNotificationServiceImpl::GetInstance() |
->OnPersistentNotificationClose(profile, persistent_notification_id, |
origin, true); |
break; |
- case PlatformNotificationServiceImpl::NOTIFICATION_SETTINGS: |
- PlatformNotificationServiceImpl::GetInstance()->OpenNotificationSettings( |
- profile); |
+ case notification_operation_common::NOTIFICATION_SETTINGS: |
+ notification_operation_common::OpenNotificationSettings(profile); |
break; |
} |
} |
@@ -149,7 +146,7 @@ PlatformNotificationServiceImpl::PlatformNotificationServiceImpl() |
PlatformNotificationServiceImpl::~PlatformNotificationServiceImpl() {} |
void PlatformNotificationServiceImpl::ProcessPersistentNotificationOperation( |
- NotificationOperation operation, |
+ notification_operation_common::NotificationOperation operation, |
const std::string& profile_id, |
bool incognito, |
const GURL& origin, |
@@ -528,27 +525,6 @@ PlatformNotificationServiceImpl::GetNotificationDisplayService( |
return NotificationDisplayServiceFactory::GetForProfile(profile); |
} |
-void PlatformNotificationServiceImpl::OpenNotificationSettings( |
- BrowserContext* browser_context) { |
-#if defined(OS_ANDROID) |
- NOTIMPLEMENTED(); |
-#else |
- |
- Profile* profile = Profile::FromBrowserContext(browser_context); |
- DCHECK(profile); |
- |
- if (switches::SettingsWindowEnabled()) { |
- chrome::ShowContentSettingsExceptionsInWindow( |
- profile, CONTENT_SETTINGS_TYPE_NOTIFICATIONS); |
- } else { |
- chrome::ScopedTabbedBrowserDisplayer browser_displayer(profile); |
- chrome::ShowContentSettingsExceptions(browser_displayer.browser(), |
- CONTENT_SETTINGS_TYPE_NOTIFICATIONS); |
- } |
- |
-#endif // defined(OS_ANDROID) |
-} |
- |
base::string16 PlatformNotificationServiceImpl::DisplayNameForContextMessage( |
Profile* profile, |
const GURL& origin) const { |