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

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: Components Refactor + 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 2013 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 #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(const ScopedJavaLocalRef<jstring>& jstring);
Yaron 2013/03/13 21:23:23 To be honest, I don't see why we need these additi
apiccion 2013/03/15 00:59:13 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 const ScopedJavaLocalRef<jobjectArray>& jarray,
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

Powered by Google App Engine
This is Rietveld 408576698