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

Side by Side Diff: net/url_request/url_request_job_metrics.cc

Issue 4974001: base: Get rid of 'using' declaration of StringAppendF. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 10 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « net/tools/hresolv/hresolv.cc ('k') | net/url_request/view_cache_helper.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium 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 "net/url_request/url_request_job_metrics.h" 5 #include "net/url_request/url_request_job_metrics.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 10
(...skipping 13 matching lines...) Expand all
24 24
25 text->append(L"job url = "); 25 text->append(L"job url = ");
26 text->append(UTF8ToWide(original_url_->spec())); 26 text->append(UTF8ToWide(original_url_->spec()));
27 27
28 if (url_.get()) { 28 if (url_.get()) {
29 text->append(L"; redirected url = "); 29 text->append(L"; redirected url = ");
30 text->append(UTF8ToWide(url_->spec())); 30 text->append(UTF8ToWide(url_->spec()));
31 } 31 }
32 32
33 TimeDelta elapsed = end_time_ - start_time_; 33 TimeDelta elapsed = end_time_ - start_time_;
34 StringAppendF(text, 34 base::StringAppendF(text,
35 L"; total bytes read = %ld; read calls = %d; time = %lld ms;", 35 L"; total bytes read = %ld; read calls = %d; time = %lld ms;",
36 static_cast<long>(total_bytes_read_), 36 static_cast<long>(total_bytes_read_),
37 number_of_read_IO_, elapsed.InMilliseconds()); 37 number_of_read_IO_, elapsed.InMilliseconds());
38 38
39 if (success_) { 39 if (success_) {
40 text->append(L" success."); 40 text->append(L" success.");
41 } else { 41 } else {
42 text->append(L" fail."); 42 text->append(L" fail.");
43 } 43 }
44 } 44 }
OLDNEW
« no previous file with comments | « net/tools/hresolv/hresolv.cc ('k') | net/url_request/view_cache_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698