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

Unified Diff: components/update_client/utils.cc

Issue 1685323002: Implement CUP signing in UpdateClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase and remove duplicated code comment. Created 4 years, 10 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: components/update_client/utils.cc
diff --git a/components/update_client/utils.cc b/components/update_client/utils.cc
index 75b0d008d81b5569581d82f5197b60103fafc006..a6ec277e6e9708eee70cc64c8b8afed32620be43 100644
--- a/components/update_client/utils.cc
+++ b/components/update_client/utils.cc
@@ -133,6 +133,8 @@ scoped_ptr<net::URLFetcher> SendProtocolRequest(
net::URLRequestContextGetter* url_request_context_getter) {
scoped_ptr<net::URLFetcher> url_fetcher = net::URLFetcher::Create(
0, url, net::URLFetcher::POST, url_fetcher_delegate);
+ if (!url_fetcher.get())
+ return url_fetcher;
url_fetcher->SetUploadData("application/xml", protocol_request);
url_fetcher->SetRequestContext(url_request_context_getter);

Powered by Google App Engine
This is Rietveld 408576698