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

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

Issue 577523002: Refactoring the WeakPtrFactory initialization in chrome/browser/ui/views (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolved Rebase issues Created 6 years, 3 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 2dce52f3f6dffb41511420de93938b1921f98e46..99be67fa6e6f6a8060219b6d804601f79dc3b6f0 100644
--- a/chrome/browser/ui/views/download/download_item_view.h
+++ b/chrome/browser/ui/views/download/download_item_view.h
@@ -328,10 +328,6 @@ class DownloadItemView : public views::ButtonListener,
// The time at which a dangerous download warning was displayed.
base::Time time_download_warning_shown_;
- // Method factory used to delay reenabling of the item when opening the
- // downloaded file.
- base::WeakPtrFactory<DownloadItemView> weak_ptr_factory_;
-
// The currently running download context menu.
scoped_ptr<DownloadShelfContextMenuView> context_menu_;
@@ -347,6 +343,10 @@ class DownloadItemView : public views::ButtonListener,
// and the user's decisions about it.
scoped_ptr<extensions::ExperienceSamplingEvent> sampling_event_;
+ // Method factory used to delay reenabling of the item when opening the
+ // downloaded file.
+ base::WeakPtrFactory<DownloadItemView> weak_ptr_factory_;
+
DISALLOW_COPY_AND_ASSIGN(DownloadItemView);
};
« no previous file with comments | « chrome/browser/ui/views/chrome_views_delegate.cc ('k') | chrome/browser/ui/views/extensions/extension_message_bubble_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698