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

Unified Diff: google_apis/gaia/mock_url_fetcher_factory.h

Issue 1117703002: Adjust URLFetcher::Create API so that object is returned as scoped_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unneeded Pass() calls Created 5 years, 8 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
Index: google_apis/gaia/mock_url_fetcher_factory.h
diff --git a/google_apis/gaia/mock_url_fetcher_factory.h b/google_apis/gaia/mock_url_fetcher_factory.h
index 68e30aa63f927c21cdb3880a96e80a7ed70b6d74..adc118bcaad06ebd79041ed264fe0a02dfd3c7e4 100644
--- a/google_apis/gaia/mock_url_fetcher_factory.h
+++ b/google_apis/gaia/mock_url_fetcher_factory.h
@@ -48,12 +48,13 @@ class MockURLFetcherFactory : public net::URLFetcherFactory,
success_(true) {
}
~MockURLFetcherFactory() {}
- net::URLFetcher* CreateURLFetcher(
+ scoped_ptr<net::URLFetcher> CreateURLFetcher(
int id,
const GURL& url,
net::URLFetcher::RequestType request_type,
net::URLFetcherDelegate* d) override {
- return new T(success_, url, results_, request_type, d);
+ return scoped_ptr<net::URLFetcher>(
+ new T(success_, url, results_, request_type, d));
}
void set_success(bool success) {
success_ = success;
« no previous file with comments | « google_apis/gaia/gaia_oauth_client_unittest.cc ('k') | google_apis/gaia/oauth2_access_token_fetcher_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698