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

Side by Side Diff: chrome/browser/net/spdyproxy/data_reduction_proxy_android_ui_strings.cc

Issue 2953523002: Add 'Other' category on the Data Saver site-breakdown page (Closed)
Patch Set: Moved UI string to cpp Created 3 years, 5 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 unified diff | Download patch
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698