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

Unified Diff: content/browser/net/url_request_failed_dns_job.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/net/url_request_failed_dns_job.h
diff --git a/content/browser/net/url_request_failed_dns_job.h b/content/browser/net/url_request_failed_dns_job.h
index da1042ea02a2e1caa09b94ff32d56184d1f2a66e..47899feac3bdb505bdc1761d5088ee1478c7dee5 100644
--- a/content/browser/net/url_request_failed_dns_job.h
+++ b/content/browser/net/url_request_failed_dns_job.h
@@ -7,7 +7,7 @@
#define CONTENT_BROWSER_NET_URL_REQUEST_FAILED_DNS_JOB_H_
#pragma once
-#include "base/task.h"
+#include "base/memory/weak_ptr.h"
#include "content/common/content_export.h"
#include "net/url_request/url_request_job.h"
@@ -32,7 +32,7 @@ class URLRequestFailedDnsJob : public net::URLRequestJob {
// Simulate a DNS failure.
void StartAsync();
- ScopedRunnableMethodFactory<URLRequestFailedDnsJob> method_factory_;
+ base::WeakPtrFactory<URLRequestFailedDnsJob> method_factory_;
James Hawkins 2011/11/14 17:57:06 weak_factory_
dcheng 2011/11/14 20:47:49 Done.
};
#endif // CONTENT_BROWSER_NET_URL_REQUEST_FAILED_DNS_JOB_H_

Powered by Google App Engine
This is Rietveld 408576698