OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "ui/base/text/bytes_formatting.h" | 5 #include "ui/base/text/bytes_formatting.h" |
6 | 6 |
7 #include "base/i18n/number_formatting.h" | 7 #include "base/i18n/number_formatting.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 | 101 |
102 string16 FormatBytes(int64 bytes) { | 102 string16 FormatBytes(int64 bytes) { |
103 return FormatBytesWithUnits(bytes, GetByteDisplayUnits(bytes), true); | 103 return FormatBytesWithUnits(bytes, GetByteDisplayUnits(bytes), true); |
104 } | 104 } |
105 | 105 |
106 string16 FormatSpeed(int64 bytes) { | 106 string16 FormatSpeed(int64 bytes) { |
107 return FormatSpeedWithUnits(bytes, GetByteDisplayUnits(bytes), true); | 107 return FormatSpeedWithUnits(bytes, GetByteDisplayUnits(bytes), true); |
108 } | 108 } |
109 | 109 |
110 } // namespace ui | 110 } // namespace ui |
| 111 |
OLD | NEW |