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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/ConversionUtils.java

Issue 2915863002: Photo Picker dialog: Add UMA statistics. (Closed)
Patch Set: Address feedback from Theresa Created 3 years, 7 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: 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;
+}

Powered by Google App Engine
This is Rietveld 408576698