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

Unified Diff: chrome/browser/chromeos/attestation/attestation_ca_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: Fix another failure missed by my regex 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: chrome/browser/chromeos/attestation/attestation_ca_client.cc
diff --git a/chrome/browser/chromeos/attestation/attestation_ca_client.cc b/chrome/browser/chromeos/attestation/attestation_ca_client.cc
index 4a9aca67f7c71d47b0f6587f5948bdafd3c51b78..ab1ae86eaa6702a38f784ccbb5bbd62fec3e445f 100644
--- a/chrome/browser/chromeos/attestation/attestation_ca_client.cc
+++ b/chrome/browser/chromeos/attestation/attestation_ca_client.cc
@@ -77,10 +77,9 @@ void AttestationCAClient::FetchURL(const std::string& url,
const std::string& request,
const DataCallback& on_response) {
// The first argument allows the use of TestURLFetcherFactory in tests.
- net::URLFetcher* fetcher = net::URLFetcher::Create(0,
- GURL(url),
- net::URLFetcher::POST,
- this);
+ net::URLFetcher* fetcher =
+ net::URLFetcher::Create(0, GURL(url), net::URLFetcher::POST, this)
+ .release();
Ryan Sleevi 2015/04/30 18:23:44 Ideally, you'd move the .release() to line 88 and
fetcher->SetRequestContext(g_browser_process->system_request_context());
fetcher->SetLoadFlags(net::LOAD_DO_NOT_SEND_COOKIES |
net::LOAD_DO_NOT_SAVE_COOKIES |

Powered by Google App Engine
This is Rietveld 408576698