Index: chrome/android/java/src/org/chromium/chrome/browser/ConversionUtils.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ConversionUtils.java b/chrome/android/java/src/org/chromium/chrome/browser/ConversionUtils.java |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e44b5ceb07952b880c49f1119e566aeef21184dd |
--- /dev/null |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ConversionUtils.java |
@@ -0,0 +1,14 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+package org.chromium.chrome.browser; |
Ted C
2017/06/02 16:16:40
let's put this in the chrome.browser.util package
|
+ |
+/** |
+ * A class containing some utility static methods for common conversions. |
+ */ |
+public class ConversionUtils { |
+ public static final int BYTES_PER_KILOBYTE = 1024; |
+ public static final int BYTES_PER_MEGABYTE = 1024 * 1024; |
+ public static final int BYTES_PER_GIGABYTE = 1024 * 1024 * 1024; |
+} |