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

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

Issue 2209993003: Add missing using statements for JNI types. (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
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 <algorithm> 7 #include <algorithm>
8 8
9 #include "base/android/jni_string.h" 9 #include "base/android/jni_string.h"
10 #include "base/android/jni_weak_ref.h" 10 #include "base/android/jni_weak_ref.h"
11 #include "base/metrics/field_trial.h" 11 #include "base/metrics/field_trial.h"
12 #include "base/strings/string_piece.h" 12 #include "base/strings/string_piece.h"
13 #include "chrome/browser/profiles/profile_manager.h" 13 #include "chrome/browser/profiles/profile_manager.h"
14 #include "chrome/browser/sync/profile_sync_service_factory.h" 14 #include "chrome/browser/sync/profile_sync_service_factory.h"
15 #include "chrome/grit/generated_resources.h" 15 #include "chrome/grit/generated_resources.h"
16 #include "components/autofill/core/common/password_form.h" 16 #include "components/autofill/core/common/password_form.h"
17 #include "components/browser_sync/browser/profile_sync_service.h" 17 #include "components/browser_sync/browser/profile_sync_service.h"
18 #include "components/password_manager/core/browser/affiliation_utils.h" 18 #include "components/password_manager/core/browser/affiliation_utils.h"
19 #include "components/password_manager/core/browser/password_bubble_experiment.h" 19 #include "components/password_manager/core/browser/password_bubble_experiment.h"
20 #include "components/password_manager/core/browser/password_manager_constants.h" 20 #include "components/password_manager/core/browser/password_manager_constants.h"
21 #include "components/password_manager/core/browser/password_ui_utils.h" 21 #include "components/password_manager/core/browser/password_ui_utils.h"
22 #include "components/password_manager/core/common/experiments.h" 22 #include "components/password_manager/core/common/experiments.h"
23 #include "jni/PasswordUIView_jni.h" 23 #include "jni/PasswordUIView_jni.h"
24 #include "ui/base/l10n/l10n_util.h" 24 #include "ui/base/l10n/l10n_util.h"
25 25
26 using base::android::ConvertUTF16ToJavaString; 26 using base::android::ConvertUTF16ToJavaString;
27 using base::android::ConvertUTF8ToJavaString; 27 using base::android::ConvertUTF8ToJavaString;
28 using base::android::JavaParamRef;
28 using base::android::ScopedJavaLocalRef; 29 using base::android::ScopedJavaLocalRef;
29 30
30 namespace { 31 namespace {
31 32
32 // Returns the human readable version of the origin string displayed in 33 // Returns the human readable version of the origin string displayed in
33 // Chrome settings for |form|. 34 // Chrome settings for |form|.
34 std::string GetDisplayOriginForSettings(const autofill::PasswordForm& form) { 35 std::string GetDisplayOriginForSettings(const autofill::PasswordForm& form) {
35 bool is_android_uri = false; 36 bool is_android_uri = false;
36 bool is_clickable = false; 37 bool is_clickable = false;
37 GURL link_url; // TODO(crbug.com/617094) Also display link_url. 38 GURL link_url; // TODO(crbug.com/617094) Also display link_url.
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 162
162 // static 163 // static
163 static jlong Init(JNIEnv* env, const JavaParamRef<jobject>& obj) { 164 static jlong Init(JNIEnv* env, const JavaParamRef<jobject>& obj) {
164 PasswordUIViewAndroid* controller = new PasswordUIViewAndroid(env, obj); 165 PasswordUIViewAndroid* controller = new PasswordUIViewAndroid(env, obj);
165 return reinterpret_cast<intptr_t>(controller); 166 return reinterpret_cast<intptr_t>(controller);
166 } 167 }
167 168
168 bool PasswordUIViewAndroid::RegisterPasswordUIViewAndroid(JNIEnv* env) { 169 bool PasswordUIViewAndroid::RegisterPasswordUIViewAndroid(JNIEnv* env) {
169 return RegisterNativesImpl(env); 170 return RegisterNativesImpl(env);
170 } 171 }
OLDNEW
« no previous file with comments | « chrome/browser/android/omnibox/omnibox_prerender.cc ('k') | chrome/browser/android/policy/policy_auditor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698