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

Side by Side Diff: chrome/browser/password_manager/credential_android.cc

Issue 2146753002: Android: Remove unneeded RegisterNatives() calls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android: Don't require RegisterNatives if there are none 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "chrome/browser/password_manager/credential_android.h" 5 #include "chrome/browser/password_manager/credential_android.h"
6 6
7 #include "base/android/jni_string.h" 7 #include "base/android/jni_string.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "chrome/grit/generated_resources.h" 9 #include "chrome/grit/generated_resources.h"
10 #include "jni/Credential_jni.h" 10 #include "jni/Credential_jni.h"
(...skipping 17 matching lines...) Expand all
28 env, ConvertUTF16ToJavaString(env, password_form.username_value).obj(), 28 env, ConvertUTF16ToJavaString(env, password_form.username_value).obj(),
29 ConvertUTF16ToJavaString(env, password_form.display_name).obj(), 29 ConvertUTF16ToJavaString(env, password_form.display_name).obj(),
30 ConvertUTF8ToJavaString(env, federation).obj(), type, position); 30 ConvertUTF8ToJavaString(env, federation).obj(), type, position);
31 } 31 }
32 32
33 base::android::ScopedJavaLocalRef<jobjectArray> CreateNativeCredentialArray( 33 base::android::ScopedJavaLocalRef<jobjectArray> CreateNativeCredentialArray(
34 JNIEnv* env, 34 JNIEnv* env,
35 size_t size) { 35 size_t size) {
36 return Java_Credential_createCredentialArray(env, static_cast<int>(size)); 36 return Java_Credential_createCredentialArray(env, static_cast<int>(size));
37 } 37 }
38
39 bool RegisterCredential(JNIEnv* env) {
40 return RegisterNativesImpl(env);
41 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698