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

Side by Side Diff: base/android/jni_local_ref_extensions.h

Issue 12282004: Added personal_data_manager android implementation for auto-populating auto-fill on android builds … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed Nits Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
Ilya Sherman 2013/03/11 22:39:44 nit: Remove the (c)
apiccion 2013/03/13 20:17:28 Done.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef BASE_ANDROID_JNI_LOCAL_REF_EXTENSIONS_H_
6 #define BASE_ANDROID_JNI_LOCAL_REF_EXTENSIONS_H_
7
8 #include "base/android/jni_android.h"
9 #include "base/android/jni_array.h"
10 #include "base/android/jni_string.h"
11
12 namespace base {
13 namespace android {
14
15 // Returns an empty string if java string is null,
16 // otherwise converts and returns the string.
17 string16 SafeJavaStringToUTF16(ScopedJavaLocalRef<jstring> jstring);
Ilya Sherman 2013/03/11 22:39:44 nit: Should this be passed by const-ref?
apiccion 2013/03/13 20:17:28 Done.
18
19 // Fills |string_vector| with the contents of |jarray|.
20 // If the Java array is null, then |string_vector| is not modified.
21 void SafeJavaStringArrayToStringVector(
22 ScopedJavaLocalRef<jobjectArray> jarray,
Ilya Sherman 2013/03/11 22:39:44 nit: Should this be passed by const-ref?
apiccion 2013/03/13 20:17:28 Done.
23 JNIEnv* env,
24 std::vector<string16>* string_vector);
25
26 } // namespace android
27 } // namespace base
28
29 #endif // BASE_ANDROID_JNI_LOCAL_REF_EXTENSIONS_H_
OLDNEW
« no previous file with comments | « no previous file | base/android/jni_local_ref_extensions.cc » ('j') | base/android/jni_local_ref_extensions.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698