Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2313)

Unified Diff: chrome/browser/ui/views/message_center/web_notification_tray.h

Issue 256443004: Revert of Moves the notification icon out of the status area overflow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/message_center/web_notification_tray.h
diff --git a/chrome/browser/ui/views/message_center/web_notification_tray.h b/chrome/browser/ui/views/message_center/web_notification_tray.h
index 9ff2492d8bee8a9cd6a98ac1a43d2159cef5af1b..24dfe5280e55ca31c236abbe6e74ced8ea9e5acb 100644
--- a/chrome/browser/ui/views/message_center/web_notification_tray.h
+++ b/chrome/browser/ui/views/message_center/web_notification_tray.h
@@ -6,7 +6,6 @@
#define CHROME_BROWSER_UI_VIEWS_MESSAGE_CENTER_WEB_NOTIFICATION_TRAY_H_
#include "base/memory/weak_ptr.h"
-#include "base/prefs/pref_member.h"
#include "chrome/browser/status_icons/status_icon_menu_model.h"
#include "chrome/browser/status_icons/status_icon_observer.h"
#include "chrome/browser/ui/views/message_center/message_center_widget_delegate.h"
@@ -18,11 +17,6 @@
#include "ui/message_center/message_center_tray_delegate.h"
#include "ui/views/widget/widget_observer.h"
-#if defined(OS_WIN)
-#include "base/threading/thread.h"
-#endif
-
-class PrefService;
class StatusIcon;
namespace message_center {
@@ -49,7 +43,7 @@
public base::SupportsWeakPtr<WebNotificationTray>,
public StatusIconMenuModel::Delegate {
public:
- explicit WebNotificationTray(PrefService* local_state);
+ WebNotificationTray();
virtual ~WebNotificationTray();
message_center::MessageCenter* message_center();
@@ -71,8 +65,6 @@
// This shows a platform-specific balloon informing the user of the existence
// of the message center in the status tray area.
void DisplayFirstRunBalloon();
-
- void EnforceStatusIconVisible();
#endif
// StatusIconMenuModel::Delegate implementation.
@@ -103,13 +95,6 @@
void AddQuietModeMenu(StatusIcon* status_icon);
MessageCenterWidgetDelegate* GetMessageCenterWidgetDelegateForTest();
-#if defined(OS_WIN)
- // This member variable keeps track of whether EnforceStatusIconVisible has
- // been invoked on this machine, so the user still has control after we try
- // promoting it the first time.
- scoped_ptr<BooleanPrefMember> did_force_tray_visible_;
-#endif
-
MessageCenterWidgetDelegate* message_center_delegate_;
scoped_ptr<message_center::MessagePopupCollection> popup_collection_;
« no previous file with comments | « chrome/browser/status_icons/status_icon.cc ('k') | chrome/browser/ui/views/message_center/web_notification_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698