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

Unified Diff: chrome/browser/ui/views/first_run_bubble.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
« no previous file with comments | « chrome/browser/ui/views/download/download_item_view.cc ('k') | chrome/browser/ui/views/first_run_bubble.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/first_run_bubble.h
diff --git a/chrome/browser/ui/views/first_run_bubble.h b/chrome/browser/ui/views/first_run_bubble.h
index 9727eda3d7d2f7f335503eb10f5bde385e0c79d1..72ecd806844b6ad0058dc6f0ddcf9c77b36e9452 100644
--- a/chrome/browser/ui/views/first_run_bubble.h
+++ b/chrome/browser/ui/views/first_run_bubble.h
@@ -6,8 +6,9 @@
#define CHROME_BROWSER_UI_VIEWS_FIRST_RUN_BUBBLE_H_
#pragma once
+#include "base/basictypes.h"
#include "base/compiler_specific.h"
-#include "base/task.h"
+#include "base/memory/weak_ptr.h"
#include "chrome/browser/first_run/first_run.h"
#include "chrome/browser/ui/views/bubble/bubble.h"
@@ -17,11 +18,11 @@ class Profile;
class FirstRunBubble : public Bubble,
public BubbleDelegate {
public:
- static FirstRunBubble* Show(
- Profile* profile, views::Widget* parent,
- const gfx::Rect& position_relative_to,
- views::BubbleBorder::ArrowLocation arrow_location,
- FirstRun::BubbleType bubble_type);
+ static FirstRunBubble* Show(Profile* profile,
+ views::Widget* parent,
+ const gfx::Rect& position_relative_to,
+ views::BubbleBorder::ArrowLocation arrow_location,
+ FirstRun::BubbleType bubble_type);
private:
FirstRunBubble();
@@ -45,7 +46,7 @@ class FirstRunBubble : public Bubble,
// Whether we have already been activated.
bool has_been_activated_;
- ScopedRunnableMethodFactory<FirstRunBubble> enable_window_method_factory_;
+ base::WeakPtrFactory<FirstRunBubble> enable_window_method_factory_;
// The view inside the FirstRunBubble.
FirstRunBubbleViewBase* view_;
« no previous file with comments | « chrome/browser/ui/views/download/download_item_view.cc ('k') | chrome/browser/ui/views/first_run_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698