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

Side by Side Diff: android_webview/native/aw_autofill_manager_delegate.cc

Issue 23432002: Generate passwords only for forms that autofill server marks as account creation forms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix password generation manager browser test. Created 7 years, 3 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 "android_webview/native/aw_autofill_manager_delegate.h" 5 #include "android_webview/native/aw_autofill_manager_delegate.h"
6 6
7 #include "android_webview/browser/aw_browser_context.h" 7 #include "android_webview/browser/aw_browser_context.h"
8 #include "android_webview/browser/aw_content_browser_client.h" 8 #include "android_webview/browser/aw_content_browser_client.h"
9 #include "android_webview/browser/aw_pref_store.h" 9 #include "android_webview/browser/aw_pref_store.h"
10 #include "android_webview/native/aw_contents.h" 10 #include "android_webview/native/aw_contents.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 if (obj.is_null()) 144 if (obj.is_null())
145 return; 145 return;
146 delegate_.reset(); 146 delegate_.reset();
147 Java_AwAutofillManagerDelegate_hideAutofillPopup(env, obj.obj()); 147 Java_AwAutofillManagerDelegate_hideAutofillPopup(env, obj.obj());
148 } 148 }
149 149
150 bool AwAutofillManagerDelegate::IsAutocompleteEnabled() { 150 bool AwAutofillManagerDelegate::IsAutocompleteEnabled() {
151 return GetSaveFormData(); 151 return GetSaveFormData();
152 } 152 }
153 153
154 void AwAutofillManagerDelegate::DetectAccountCreationForms(
155 const std::vector<autofill::FormStructure*>& forms) {}
156
154 void AwAutofillManagerDelegate::SuggestionSelected(JNIEnv* env, 157 void AwAutofillManagerDelegate::SuggestionSelected(JNIEnv* env,
155 jobject object, 158 jobject object,
156 jint position) { 159 jint position) {
157 if (delegate_) 160 if (delegate_)
158 delegate_->DidAcceptSuggestion(values_[position], identifiers_[position]); 161 delegate_->DidAcceptSuggestion(values_[position], identifiers_[position]);
159 } 162 }
160 163
161 void AwAutofillManagerDelegate::HideRequestAutocompleteDialog() { 164 void AwAutofillManagerDelegate::HideRequestAutocompleteDialog() {
162 NOTIMPLEMENTED(); 165 NOTIMPLEMENTED();
163 } 166 }
(...skipping 15 matching lines...) Expand all
179 const base::Callback<void(const autofill::FormStructure*, 182 const base::Callback<void(const autofill::FormStructure*,
180 const std::string&)>& callback) { 183 const std::string&)>& callback) {
181 NOTIMPLEMENTED(); 184 NOTIMPLEMENTED();
182 } 185 }
183 186
184 bool RegisterAwAutofillManagerDelegate(JNIEnv* env) { 187 bool RegisterAwAutofillManagerDelegate(JNIEnv* env) {
185 return RegisterNativesImpl(env) >= 0; 188 return RegisterNativesImpl(env) >= 0;
186 } 189 }
187 190
188 } // namespace android_webview 191 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/native/aw_autofill_manager_delegate.h ('k') | chrome/browser/password_manager/password_generation_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698