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

Unified Diff: chrome/browser/ui/browser.h

Issue 8642006: base::bind migrations for browser.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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/ui/browser.cc » ('j') | chrome/browser/ui/browser.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser.h
===================================================================
--- chrome/browser/ui/browser.h (revision 111186)
+++ chrome/browser/ui/browser.h (working copy)
@@ -15,8 +15,8 @@
#include "base/compiler_specific.h"
#include "base/gtest_prod_util.h"
#include "base/memory/scoped_ptr.h"
+#include "base/memory/weak_ptr.h"
#include "base/string16.h"
-#include "base/task.h"
#include "chrome/browser/command_updater.h"
#include "chrome/browser/debugger/devtools_toggle_action.h"
#include "chrome/browser/event_disposition.h"
@@ -1331,7 +1331,7 @@
UpdateMap scheduled_updates_;
// The following factory is used for chrome update coalescing.
- ScopedRunnableMethodFactory<Browser> chrome_updater_factory_;
+ base::WeakPtrFactory<Browser> chrome_updater_factory_;
James Hawkins 2011/11/22 21:26:30 Why do we need two WeakPtrFactory's? Nevermind, I
// OnBeforeUnload handling //////////////////////////////////////////////////
@@ -1375,7 +1375,7 @@
bool is_session_restore_;
// The following factory is used to close the frame at a later time.
- ScopedRunnableMethodFactory<Browser> method_factory_;
+ base::WeakPtrFactory<Browser> weak_factory_;
// The Find Bar. This may be NULL if there is no Find Bar, and if it is
// non-NULL, it may or may not be visible.
« no previous file with comments | « no previous file | chrome/browser/ui/browser.cc » ('j') | chrome/browser/ui/browser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698