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

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

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 | « chrome/browser/chromeos/notifications/notification_panel.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/notifications/notification_panel.cc
===================================================================
--- chrome/browser/chromeos/notifications/notification_panel.cc (revision 106989)
+++ chrome/browser/chromeos/notifications/notification_panel.cc (working copy)
@@ -8,6 +8,7 @@
#include <algorithm>
+#include "base/bind.h"
#include "chrome/browser/chromeos/notifications/balloon_collection_impl.h"
#include "chrome/browser/chromeos/notifications/balloon_view.h"
#include "chrome/common/chrome_notification_types.h"
@@ -421,7 +422,6 @@
panel_widget_(NULL),
container_host_(NULL),
state_(CLOSED),
- task_factory_(this),
min_bounds_(0, 0, kBalloonMinWidth, kBalloonMinHeight),
stale_timeout_(1000 * kStaleTimeoutInSeconds),
active_(NULL),
@@ -812,8 +812,7 @@
BalloonViewImpl* view = GetBalloonViewOf(balloon);
MessageLoop::current()->PostDelayedTask(
FROM_HERE,
- task_factory_.NewRunnableMethod(
- &NotificationPanel::OnStale, view),
+ base::Bind(&NotificationPanel::OnStale, AsWeakPtr(), view),
stale_timeout_);
}
« no previous file with comments | « chrome/browser/chromeos/notifications/notification_panel.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698