| Index: chrome/browser/notifications/message_center_notification_manager.cc
|
| diff --git a/chrome/browser/notifications/message_center_notification_manager.cc b/chrome/browser/notifications/message_center_notification_manager.cc
|
| index 46d22de75999192f123c5376c5720923934fd1d5..5ea8d2421cfbc77b2e2b2057719c3a8437b5d5e2 100644
|
| --- a/chrome/browser/notifications/message_center_notification_manager.cc
|
| +++ b/chrome/browser/notifications/message_center_notification_manager.cc
|
| @@ -9,7 +9,6 @@
|
| #include "base/prefs/pref_registry_simple.h"
|
| #include "base/prefs/pref_service.h"
|
| #include "base/stl_util.h"
|
| -#include "chrome/browser/chrome_notification_types.h"
|
| #include "chrome/browser/extensions/api/notification_provider/notification_provider_api.h"
|
| #include "chrome/browser/notifications/desktop_notification_service.h"
|
| #include "chrome/browser/notifications/desktop_notification_service_factory.h"
|
| @@ -21,17 +20,11 @@
|
| #include "chrome/browser/notifications/notification_conversion_helper.h"
|
| #include "chrome/browser/notifications/screen_lock_notification_blocker.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| -#include "chrome/browser/ui/browser_finder.h"
|
| -#include "chrome/browser/ui/chrome_pages.h"
|
| -#include "chrome/browser/ui/host_desktop.h"
|
| #include "chrome/common/extensions/api/notification_provider.h"
|
| #include "chrome/common/pref_names.h"
|
| -#include "content/public/browser/notification_service.h"
|
| #include "content/public/browser/web_contents.h"
|
| #include "content/public/common/url_constants.h"
|
| #include "extensions/browser/extension_registry.h"
|
| -#include "extensions/browser/extension_system.h"
|
| -#include "extensions/browser/info_map.h"
|
| #include "extensions/common/extension_set.h"
|
| #include "extensions/common/permissions/permissions_data.h"
|
| #include "ui/gfx/image/image_skia.h"
|
| @@ -94,9 +87,6 @@ MessageCenterNotificationManager::MessageCenterNotificationManager(
|
| // views.Other platforms have global ownership and Create will return NULL.
|
| tray_.reset(message_center::CreateMessageCenterTray());
|
| #endif
|
| - registrar_.Add(this,
|
| - chrome::NOTIFICATION_FULLSCREEN_CHANGED,
|
| - content::NotificationService::AllSources());
|
| }
|
|
|
| MessageCenterNotificationManager::~MessageCenterNotificationManager() {
|
| @@ -325,18 +315,6 @@ void MessageCenterNotificationManager::SetMessageCenterTrayDelegateForTest(
|
| tray_.reset(delegate);
|
| }
|
|
|
| -void MessageCenterNotificationManager::Observe(
|
| - int type,
|
| - const content::NotificationSource& source,
|
| - const content::NotificationDetails& details) {
|
| - if (type == chrome::NOTIFICATION_FULLSCREEN_CHANGED) {
|
| - const bool is_fullscreen = *content::Details<bool>(details).ptr();
|
| -
|
| - if (is_fullscreen && tray_.get() && tray_->GetMessageCenterTray())
|
| - tray_->GetMessageCenterTray()->HidePopupBubble();
|
| - }
|
| -}
|
| -
|
| ////////////////////////////////////////////////////////////////////////////////
|
| // ImageDownloads
|
|
|
|
|