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

Side by Side Diff: url/url_canon_icu_alternatives_android.cc

Issue 2215863002: Fix cronet build after JNI registration change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « url/url_canon_icu_alternatives_android.h ('k') | url/url_srcs.gypi » ('j') | 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 <string.h> 5 #include <string.h>
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/jni_string.h" 8 #include "base/android/jni_string.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "base/strings/string_piece.h" 10 #include "base/strings/string_piece.h"
(...skipping 16 matching lines...) Expand all
27 // NULL indicates failure. 27 // NULL indicates failure.
28 if (java_result.is_null()) 28 if (java_result.is_null())
29 return false; 29 return false;
30 30
31 base::string16 utf16_result = 31 base::string16 utf16_result =
32 base::android::ConvertJavaStringToUTF16(java_result); 32 base::android::ConvertJavaStringToUTF16(java_result);
33 output->Append(utf16_result.data(), static_cast<int>(utf16_result.size())); 33 output->Append(utf16_result.data(), static_cast<int>(utf16_result.size()));
34 return true; 34 return true;
35 } 35 }
36 36
37 bool RegisterIcuAlternativesJni(JNIEnv* env) {
38 return android::RegisterNativesImpl(env);
39 }
40
41 } // namespace url 37 } // namespace url
OLDNEW
« no previous file with comments | « url/url_canon_icu_alternatives_android.h ('k') | url/url_srcs.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698