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

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

Issue 8381033: Replace ScopedRunnableMethodFactory with Closure in BalloonViewImpl. (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/balloon_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/notifications/balloon_view.h
===================================================================
--- chrome/browser/chromeos/notifications/balloon_view.h (revision 106989)
+++ chrome/browser/chromeos/notifications/balloon_view.h (working copy)
@@ -10,7 +10,7 @@
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
-#include "base/task.h"
+#include "base/memory/weak_ptr.h"
#include "chrome/browser/notifications/balloon.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
@@ -37,7 +37,8 @@
// A balloon view is the UI component for a notification panel.
class BalloonViewImpl : public BalloonView,
public views::View,
- public content::NotificationObserver {
+ public content::NotificationObserver,
+ public base::SupportsWeakPtr<BalloonViewImpl> {
public:
BalloonViewImpl(bool sticky, bool controls, bool web_ui);
virtual ~BalloonViewImpl();
@@ -104,9 +105,6 @@
// The renderer of the HTML contents. Pointer owned by the views hierarchy.
BalloonViewHost* html_contents_;
- // The following factory is used to call methods at a later time.
- ScopedRunnableMethodFactory<BalloonViewImpl> method_factory_;
-
// A widget for ControlView.
scoped_ptr<views::Widget> control_view_host_;
« no previous file with comments | « no previous file | chrome/browser/chromeos/notifications/balloon_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698