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

Side by Side Diff: components/cronet/android/cronet_library_loader.cc

Issue 2028223002: Remove base_i18n dependency from cronet_static_tmpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « components/cronet/android/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/cronet/android/cronet_library_loader.h" 5 #include "components/cronet/android/cronet_library_loader.h"
6 6
7 #include <jni.h> 7 #include <jni.h>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/android/base_jni_onload.h" 10 #include "base/android/base_jni_onload.h"
(...skipping 16 matching lines...) Expand all
27 #include "jni/CronetLibraryLoader_jni.h" 27 #include "jni/CronetLibraryLoader_jni.h"
28 #include "net/android/net_jni_registrar.h" 28 #include "net/android/net_jni_registrar.h"
29 #include "net/android/network_change_notifier_factory_android.h" 29 #include "net/android/network_change_notifier_factory_android.h"
30 #include "net/base/network_change_notifier.h" 30 #include "net/base/network_change_notifier.h"
31 #include "url/url_features.h" 31 #include "url/url_features.h"
32 #include "url/url_util.h" 32 #include "url/url_util.h"
33 33
34 #if BUILDFLAG(USE_PLATFORM_ICU_ALTERNATIVES) 34 #if BUILDFLAG(USE_PLATFORM_ICU_ALTERNATIVES)
35 #include "url/android/url_jni_registrar.h" // nogncheck 35 #include "url/android/url_jni_registrar.h" // nogncheck
36 #else 36 #else
37 #include "base/i18n/icu_util.h" 37 #include "base/i18n/icu_util.h" // nogncheck
38 #endif 38 #endif
39 39
40 namespace cronet { 40 namespace cronet {
41 namespace { 41 namespace {
42 42
43 const base::android::RegistrationMethod kCronetRegisteredMethods[] = { 43 const base::android::RegistrationMethod kCronetRegisteredMethods[] = {
44 {"BaseAndroid", base::android::RegisterJni}, 44 {"BaseAndroid", base::android::RegisterJni},
45 {"ChromiumUrlRequest", ChromiumUrlRequestRegisterJni}, 45 {"ChromiumUrlRequest", ChromiumUrlRequestRegisterJni},
46 {"ChromiumUrlRequestContext", ChromiumUrlRequestContextRegisterJni}, 46 {"ChromiumUrlRequestContext", ChromiumUrlRequestContextRegisterJni},
47 {"CronetBidirectionalStreamAdapter", 47 {"CronetBidirectionalStreamAdapter",
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 g_network_change_notifier = net::NetworkChangeNotifier::Create(); 110 g_network_change_notifier = net::NetworkChangeNotifier::Create();
111 } 111 }
112 112
113 ScopedJavaLocalRef<jstring> GetCronetVersion( 113 ScopedJavaLocalRef<jstring> GetCronetVersion(
114 JNIEnv* env, 114 JNIEnv* env,
115 const JavaParamRef<jclass>& jcaller) { 115 const JavaParamRef<jclass>& jcaller) {
116 return base::android::ConvertUTF8ToJavaString(env, CRONET_VERSION); 116 return base::android::ConvertUTF8ToJavaString(env, CRONET_VERSION);
117 } 117 }
118 118
119 } // namespace cronet 119 } // namespace cronet
OLDNEW
« no previous file with comments | « components/cronet/android/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698