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

Side by Side Diff: libcurl_http_fetcher.cc

Issue 3170010: [update_engine] Update to use not-hideously-old logging API from chrome (Closed) Base URL: http://src.chromium.org/git/update_engine.git
Patch Set: Created 10 years, 4 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 unified diff | Download patch
« no previous file with comments | « libcurl_http_fetcher.h ('k') | main.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium OS Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "update_engine/libcurl_http_fetcher.h" 5 #include "update_engine/libcurl_http_fetcher.h"
6 #include <algorithm> 6 #include <algorithm>
7 #include "chromeos/obsolete_logging.h" 7 #include "base/logging.h"
8 8
9 using std::max; 9 using std::max;
10 using std::make_pair; 10 using std::make_pair;
11 11
12 // This is a concrete implementation of HttpFetcher that uses libcurl to do the 12 // This is a concrete implementation of HttpFetcher that uses libcurl to do the
13 // http work. 13 // http work.
14 14
15 namespace chromeos_update_engine { 15 namespace chromeos_update_engine {
16 16
17 namespace { 17 namespace {
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 curl_handle_ = NULL; 290 curl_handle_ = NULL;
291 } 291 }
292 if (curl_multi_handle_) { 292 if (curl_multi_handle_) {
293 CHECK_EQ(curl_multi_cleanup(curl_multi_handle_), CURLM_OK); 293 CHECK_EQ(curl_multi_cleanup(curl_multi_handle_), CURLM_OK);
294 curl_multi_handle_ = NULL; 294 curl_multi_handle_ = NULL;
295 } 295 }
296 transfer_in_progress_ = false; 296 transfer_in_progress_ = false;
297 } 297 }
298 298
299 } // namespace chromeos_update_engine 299 } // namespace chromeos_update_engine
OLDNEW
« no previous file with comments | « libcurl_http_fetcher.h ('k') | main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698