Keigo Oka | 74352ad8 | 2024-12-09 05:58:48 | [diff] [blame] | 1 | // Copyright 2024 The Chromium Authors |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include "ui/base/text/bytes_formatting.h" |
| 6 | |
| 7 | #include <jni.h> |
| 8 | |
| 9 | #include "base/android/jni_string.h" |
| 10 | #include "ui/android/ui_android_jni_headers/BytesFormatting_jni.h" |
| 11 | |
| 12 | namespace ui { |
| 13 | |
| 14 | static jni_zero::ScopedJavaLocalRef<jstring> JNI_BytesFormatting_FormatSpeed( |
| 15 | JNIEnv* env, |
| 16 | jlong speed) { |
| 17 | return base::android::ConvertUTF16ToJavaString(env, FormatSpeed(speed)); |
| 18 | } |
| 19 | |
| 20 | } // namespace ui |