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

Side by Side Diff: chrome/browser/android/password_ui_view_android.cc

Issue 67573003: Android: moves chrome/ to use long for JNI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 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/android/password_ui_view_android.h" 5 #include "chrome/browser/android/password_ui_view_android.h"
6 6
7 #include "base/android/jni_helper.h" 7 #include "base/android/jni_helper.h"
8 #include "base/android/jni_string.h" 8 #include "base/android/jni_string.h"
9 #include "chrome/browser/profiles/profile_manager.h" 9 #include "chrome/browser/profiles/profile_manager.h"
10 #include "components/autofill/core/common/password_form.h" 10 #include "components/autofill/core/common/password_form.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 JNIEnv* env, jobject, int index) { 79 JNIEnv* env, jobject, int index) {
80 password_manager_presenter_.RemoveSavedPassword(index); 80 password_manager_presenter_.RemoveSavedPassword(index);
81 } 81 }
82 82
83 void PasswordUIViewAndroid::HandleRemoveSavedPasswordException( 83 void PasswordUIViewAndroid::HandleRemoveSavedPasswordException(
84 JNIEnv* env, jobject, int index) { 84 JNIEnv* env, jobject, int index) {
85 password_manager_presenter_.RemovePasswordException(index); 85 password_manager_presenter_.RemovePasswordException(index);
86 } 86 }
87 87
88 // static 88 // static
89 static jint Init(JNIEnv* env, jobject obj) { 89 static jlong Init(JNIEnv* env, jobject obj) {
90 PasswordUIViewAndroid* controller = new PasswordUIViewAndroid(env, obj); 90 PasswordUIViewAndroid* controller = new PasswordUIViewAndroid(env, obj);
91 return reinterpret_cast<jint>(controller); 91 return reinterpret_cast<intptr_t>(controller);
92 } 92 }
93 93
94 bool PasswordUIViewAndroid::RegisterPasswordUIViewAndroid(JNIEnv* env) { 94 bool PasswordUIViewAndroid::RegisterPasswordUIViewAndroid(JNIEnv* env) {
95 return RegisterNativesImpl(env); 95 return RegisterNativesImpl(env);
96 } 96 }
OLDNEW
« no previous file with comments | « chrome/browser/android/omnibox/omnibox_prerender.cc ('k') | chrome/browser/android/provider/chrome_browser_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698