OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 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 "chrome/browser/net/spdyproxy/data_reduction_proxy_android_ui_strings.h
" |
| 6 |
| 7 #include <string> |
| 8 |
| 9 #include "base/android/jni_android.h" |
| 10 #include "base/android/jni_string.h" |
| 11 #include "chrome/grit/generated_resources.h" |
| 12 #include "jni/DataReductionProxyAndroidUIStrings_jni.h" |
| 13 #include "ui/base/l10n/l10n_util.h" |
| 14 |
| 15 using base::android::JavaParamRef; |
| 16 using base::android::ScopedJavaLocalRef; |
| 17 |
| 18 // static |
| 19 ScopedJavaLocalRef<jstring> GetDataReductionProxyOtherHostNameUIString( |
| 20 JNIEnv* env, |
| 21 const JavaParamRef<jclass>& clazz) { |
| 22 return base::android::ConvertUTF8ToJavaString( |
| 23 env, |
| 24 l10n_util::GetStringUTF8(IDS_DATA_REDUCTION_BREAKDOWN_OTHER_HOST_NAME)); |
| 25 } |
| 26 |
| 27 bool RegisterDataReductionProxyAndroidUIStrings(JNIEnv* env) { |
| 28 return RegisterNativesImpl(env); |
| 29 } |
OLD | NEW |