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

Unified Diff: content/common/net/url_fetcher.cc

Issue 8336003: URLFetcher: Minor cleanups. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/net/url_fetcher.cc
diff --git a/content/common/net/url_fetcher.cc b/content/common/net/url_fetcher.cc
index 9333fbf1364ff5f20dad9a7ef7f4589713f8f74f..7b08df99e3a7d3ad6651d745a755bb5c7cb10928 100644
--- a/content/common/net/url_fetcher.cc
+++ b/content/common/net/url_fetcher.cc
@@ -11,7 +11,6 @@
#include "base/file_path.h"
#include "base/file_util_proxy.h"
#include "base/lazy_instance.h"
-#include "base/memory/scoped_callback_factory.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/message_loop_proxy.h"
@@ -149,11 +148,9 @@ class URLFetcher::Core
base::PlatformFileError error_code_;
// Callbacks are created for use with base::FileUtilProxy.
- base::ScopedCallbackFactory<URLFetcher::Core::TempFileWriter>
- callback_factory_;
base::WeakPtrFactory<URLFetcher::Core::TempFileWriter> weak_factory_;
- // Message loop on which file opperations should happen.
+ // Message loop on which file operations should happen.
scoped_refptr<base::MessageLoopProxy> file_message_loop_proxy_;
// Path to the temporary file. This path is empty when there
@@ -324,7 +321,6 @@ URLFetcher::Core::TempFileWriter::TempFileWriter(
scoped_refptr<base::MessageLoopProxy> file_message_loop_proxy)
: core_(core),
error_code_(base::PLATFORM_FILE_OK),
- ALLOW_THIS_IN_INITIALIZER_LIST(callback_factory_(this)),
ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)),
file_message_loop_proxy_(file_message_loop_proxy),
temp_file_handle_(base::kInvalidPlatformFileValue) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698