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

Unified Diff: sync/test/accounts_client/test_accounts_client.cc

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
« no previous file with comments | « sync/internal_api/http_bridge.cc ('k') | third_party/libaddressinput/chromium/chrome_metadata_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/test/accounts_client/test_accounts_client.cc
diff --git a/sync/test/accounts_client/test_accounts_client.cc b/sync/test/accounts_client/test_accounts_client.cc
index 587c45fca1a4386fd23cabd85a95edcebcfdd179..2856ed275b92b117ca5e7dd50cb2ab201183da0f 100644
--- a/sync/test/accounts_client/test_accounts_client.cc
+++ b/sync/test/accounts_client/test_accounts_client.cc
@@ -142,8 +142,8 @@ bool TestAccountsClient::SendRequest(const GURL& url, string* response) {
base::RunLoop run_loop;
AccountsRequestDelegate delegate(&run_loop);
- scoped_ptr<net::URLFetcher> fetcher(net::URLFetcher::Create(
- url, net::URLFetcher::POST, &delegate));
+ scoped_ptr<net::URLFetcher> fetcher =
+ net::URLFetcher::Create(url, net::URLFetcher::POST, &delegate);
fetcher->SetRequestContext(context_getter.get());
fetcher->SetUploadData("application/json", "");
fetcher->Start();
« no previous file with comments | « sync/internal_api/http_bridge.cc ('k') | third_party/libaddressinput/chromium/chrome_metadata_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698