summaryrefslogtreecommitdiffstats
path: root/net/url_request/test_url_fetcher_factory.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/url_request/test_url_fetcher_factory.cc')
-rw-r--r--net/url_request/test_url_fetcher_factory.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/url_request/test_url_fetcher_factory.cc b/net/url_request/test_url_fetcher_factory.cc
index bea97b6..538a41cf 100644
--- a/net/url_request/test_url_fetcher_factory.cc
+++ b/net/url_request/test_url_fetcher_factory.cc
@@ -242,7 +242,7 @@ void TestURLFetcher::SetResponseFilePath(const base::FilePath& path) {
}
TestURLFetcherFactory::TestURLFetcherFactory()
- : ScopedURLFetcherFactory(ALLOW_THIS_IN_INITIALIZER_LIST(this)),
+ : ScopedURLFetcherFactory(this),
delegate_for_tests_(NULL),
remove_fetcher_on_delete_(false) {
}
@@ -283,7 +283,7 @@ FakeURLFetcher::FakeURLFetcher(const GURL& url,
const std::string& response_data,
bool success)
: TestURLFetcher(0, url, d),
- ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)) {
+ weak_factory_(this) {
set_status(URLRequestStatus(
success ? URLRequestStatus::SUCCESS : URLRequestStatus::FAILED,
0));
@@ -309,7 +309,7 @@ const GURL& FakeURLFetcher::GetURL() const {
FakeURLFetcherFactory::FakeURLFetcherFactory(
URLFetcherFactory* default_factory)
- : ScopedURLFetcherFactory(ALLOW_THIS_IN_INITIALIZER_LIST(this)),
+ : ScopedURLFetcherFactory(this),
creator_(base::Bind(&DefaultFakeURLFetcherCreator)),
default_factory_(default_factory) {
}
@@ -317,7 +317,7 @@ FakeURLFetcherFactory::FakeURLFetcherFactory(
FakeURLFetcherFactory::FakeURLFetcherFactory(
URLFetcherFactory* default_factory,
const FakeURLFetcherCreator& creator)
- : ScopedURLFetcherFactory(ALLOW_THIS_IN_INITIALIZER_LIST(this)),
+ : ScopedURLFetcherFactory(this),
creator_(creator),
default_factory_(default_factory) {
}