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

Unified Diff: chrome/browser/ui/views/browser_actions_container.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/browser_actions_container.h
diff --git a/chrome/browser/ui/views/browser_actions_container.h b/chrome/browser/ui/views/browser_actions_container.h
index 659bd6adf64dd20be9798981c74222edbcb873ba..4d0c7836c83b0f1d86938b6376173d3137bd895c 100644
--- a/chrome/browser/ui/views/browser_actions_container.h
+++ b/chrome/browser/ui/views/browser_actions_container.h
@@ -10,8 +10,9 @@
#include <string>
#include <vector>
+#include "base/basictypes.h"
#include "base/compiler_specific.h"
-#include "base/task.h"
+#include "base/memory/weak_ptr.h"
#include "chrome/browser/extensions/extension_context_menu_model.h"
#include "chrome/browser/extensions/extension_toolbar_model.h"
#include "chrome/browser/extensions/image_loading_tracker.h"
@@ -513,10 +514,10 @@ class BrowserActionsContainer
// The x position for where to draw the drop indicator. -1 if no indicator.
int drop_indicator_position_;
- ScopedRunnableMethodFactory<BrowserActionsContainer> task_factory_;
+ base::WeakPtrFactory<BrowserActionsContainer> task_factory_;
// Handles delayed showing of the overflow menu when hovering.
- ScopedRunnableMethodFactory<BrowserActionsContainer> show_menu_task_factory_;
+ base::WeakPtrFactory<BrowserActionsContainer> show_menu_task_factory_;
DISALLOW_COPY_AND_ASSIGN(BrowserActionsContainer);
};
« no previous file with comments | « chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc ('k') | chrome/browser/ui/views/browser_actions_container.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698