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

Unified Diff: chrome/browser/chromeos/notifications/notification_panel.h

Issue 8387022: Replace ScopedRunnableMethodFactory with Closure in NotificationPanel. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/notifications/notification_panel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/notifications/notification_panel.h
===================================================================
--- chrome/browser/chromeos/notifications/notification_panel.h (revision 106989)
+++ chrome/browser/chromeos/notifications/notification_panel.h (working copy)
@@ -8,8 +8,8 @@
#define CHROME_BROWSER_CHROMEOS_NOTIFICATIONS_NOTIFICATION_PANEL_H_
#pragma once
+#include "base/memory/weak_ptr.h"
#include "base/memory/scoped_ptr.h"
-#include "base/task.h"
#include "chrome/browser/chromeos/frame/panel_controller.h"
#include "chrome/browser/chromeos/notifications/balloon_collection_impl.h"
#include "content/public/browser/notification_registrar.h"
@@ -71,7 +71,8 @@
//
class NotificationPanel : public PanelController::Delegate,
public BalloonCollectionImpl::NotificationUI,
- public content::NotificationObserver {
+ public content::NotificationObserver,
+ public base::SupportsWeakPtr<NotificationPanel> {
public:
enum State {
FULL, // Show all notifications
@@ -176,8 +177,6 @@
// Panel's state.
State state_;
- ScopedRunnableMethodFactory<NotificationPanel> task_factory_;
-
// The minimum size of a notification.
gfx::Rect min_bounds_;
« no previous file with comments | « no previous file | chrome/browser/chromeos/notifications/notification_panel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698