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

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..0442eb357f1180a0f757bc3ae27c7416e95072b4 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> weak_factory_;
};
#endif // CONTENT_BROWSER_NET_URL_REQUEST_FAILED_DNS_JOB_H_
« no previous file with comments | « content/browser/download/mhtml_generation_manager.cc ('k') | content/browser/net/url_request_failed_dns_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698