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

Unified Diff: chrome/browser/ui/views/download/download_item_view.h

Issue 8301022: ui/views: Migrate usages of ScopedRunnableMethodFactory to base::WeakPtrFactory/base::Bind pair. (Closed) Base URL: svn://svn.chromium.org/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
Index: chrome/browser/ui/views/download/download_item_view.h
diff --git a/chrome/browser/ui/views/download/download_item_view.h b/chrome/browser/ui/views/download/download_item_view.h
index eceaa1bf0a527a985c75702c70441ac73712aeb9..ea9ed24ca9487c628a121cc6cf25c3bf2c4db94f 100644
--- a/chrome/browser/ui/views/download/download_item_view.h
+++ b/chrome/browser/ui/views/download/download_item_view.h
@@ -21,6 +21,7 @@
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
+#include "base/memory/weak_ptr.h"
#include "base/string_util.h"
#include "base/time.h"
#include "base/timer.h"
@@ -273,7 +274,7 @@ class DownloadItemView : public views::ButtonListener,
// Method factory used to delay reenabling of the item when opening the
// downloaded file.
- ScopedRunnableMethodFactory<DownloadItemView> reenable_method_factory_;
+ base::WeakPtrFactory<DownloadItemView> reenable_method_factory_;
// The currently running download context menu.
scoped_ptr<DownloadShelfContextMenuView> context_menu_;
« no previous file with comments | « chrome/browser/ui/views/browser_actions_container.cc ('k') | chrome/browser/ui/views/download/download_item_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698