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

Unified Diff: content/browser/net/view_http_cache_job_factory.cc

Issue 2870203002: Implement chrome://view-http-cache with network service. (Closed)
Patch Set: fix memory leak Created 3 years, 7 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 | « no previous file | content/browser/webui/web_ui_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/net/view_http_cache_job_factory.cc
diff --git a/content/browser/net/view_http_cache_job_factory.cc b/content/browser/net/view_http_cache_job_factory.cc
index ca64341e0d5f8fc5b77907f8cafb55b9be3e0275..179c55be5664864c0a93dcc1b13357f6a94be560 100644
--- a/content/browser/net/view_http_cache_job_factory.cc
+++ b/content/browser/net/view_http_cache_job_factory.cc
@@ -57,8 +57,7 @@ class ViewHttpCacheJob : public net::URLRequestJob {
public:
Core()
: data_offset_(0),
- callback_(base::Bind(&Core::OnIOComplete, this)) {
- }
+ callback_(base::Bind(&Core::OnIOComplete, base::Unretained(this))) {}
int Start(const net::URLRequest& request, const base::Closure& callback);
« no previous file with comments | « no previous file | content/browser/webui/web_ui_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698