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

Unified Diff: content/browser/renderer_host/resource_dispatcher_host.h

Issue 8556001: Convert NewRunnableFunction/NewRunnableMethod calls to use base::Bind(). (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
Index: content/browser/renderer_host/resource_dispatcher_host.h
diff --git a/content/browser/renderer_host/resource_dispatcher_host.h b/content/browser/renderer_host/resource_dispatcher_host.h
index 79d33e489f3bf1bed5a8caa4a0c7e026a24cc241..2dcccadde69eb0f664f3cbef8c5f92b52c420a17 100644
--- a/content/browser/renderer_host/resource_dispatcher_host.h
+++ b/content/browser/renderer_host/resource_dispatcher_host.h
@@ -20,6 +20,7 @@
#include "base/basictypes.h"
#include "base/gtest_prod_util.h"
#include "base/memory/scoped_ptr.h"
+#include "base/memory/weak_ptr.h"
#include "base/time.h"
#include "base/timer.h"
#include "content/browser/download/download_resource_handler.h"
@@ -469,7 +470,7 @@ class CONTENT_EXPORT ResourceDispatcherHost : public net::URLRequest::Delegate {
int request_id_;
// For running tasks.
- ScopedRunnableMethodFactory<ResourceDispatcherHost> method_runner_;
+ base::WeakPtrFactory<ResourceDispatcherHost> method_runner_;
James Hawkins 2011/11/14 17:57:06 weak_factory_
dcheng 2011/11/14 20:47:49 Done.
// True if the resource dispatcher host has been shut down.
bool is_shutdown_;

Powered by Google App Engine
This is Rietveld 408576698