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

Side by Side Diff: components/autofill/content/renderer/password_autofill_agent.cc

Issue 2612893003: Use correct element for Form Not Secure warning (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « components/autofill/content/renderer/form_autofill_util.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "components/autofill/content/renderer/password_autofill_agent.h" 5 #include "components/autofill/content/renderer/password_autofill_agent.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 1248 matching lines...) Expand 10 before | Expand all | Expand 10 after
1259 element.isPasswordField() 1259 element.isPasswordField()
1260 ? element 1260 ? element
1261 : web_input_to_password_info_[element].password_field; 1261 : web_input_to_password_info_[element].password_field;
1262 if (FillFormOnPasswordReceived( 1262 if (FillFormOnPasswordReceived(
1263 form_data, username_element, password_element, 1263 form_data, username_element, password_element,
1264 &field_value_and_properties_map_, 1264 &field_value_and_properties_map_,
1265 base::Bind(&PasswordValueGatekeeper::RegisterElement, 1265 base::Bind(&PasswordValueGatekeeper::RegisterElement,
1266 base::Unretained(&gatekeeper_)), 1266 base::Unretained(&gatekeeper_)),
1267 logger.get())) { 1267 logger.get())) {
1268 if (form_data.show_form_not_secure_warning_on_autofill) 1268 if (form_data.show_form_not_secure_warning_on_autofill)
1269 autofill_agent_->ShowNotSecureWarning(username_element); 1269 autofill_agent_->ShowNotSecureWarning(element);
1270 } 1270 }
1271 } 1271 }
1272 } 1272 }
1273 1273
1274 void PasswordAutofillAgent::GetFillableElementFromFormData( 1274 void PasswordAutofillAgent::GetFillableElementFromFormData(
1275 int key, 1275 int key,
1276 const PasswordFormFillData& form_data, 1276 const PasswordFormFillData& form_data,
1277 RendererSavePasswordProgressLogger* logger, 1277 RendererSavePasswordProgressLogger* logger,
1278 std::vector<blink::WebInputElement>* elements) { 1278 std::vector<blink::WebInputElement>* elements) {
1279 DCHECK(elements); 1279 DCHECK(elements);
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
1502 PasswordAutofillAgent::GetPasswordManagerDriver() { 1502 PasswordAutofillAgent::GetPasswordManagerDriver() {
1503 if (!password_manager_driver_) { 1503 if (!password_manager_driver_) {
1504 render_frame()->GetRemoteInterfaces()->GetInterface( 1504 render_frame()->GetRemoteInterfaces()->GetInterface(
1505 mojo::MakeRequest(&password_manager_driver_)); 1505 mojo::MakeRequest(&password_manager_driver_));
1506 } 1506 }
1507 1507
1508 return password_manager_driver_; 1508 return password_manager_driver_;
1509 } 1509 }
1510 1510
1511 } // namespace autofill 1511 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/content/renderer/form_autofill_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698