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

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

Issue 133893004: Allow deleting autofill password suggestions on Shift+Delete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
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/autofill_agent.h" 5 #include "components/autofill/content/renderer/autofill_agent.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/strings/string_split.h" 10 #include "base/strings/string_split.h"
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 TrimStringVectorForIPC(&data_list_labels); 563 TrimStringVectorForIPC(&data_list_labels);
564 564
565 Send(new AutofillHostMsg_SetDataList(routing_id(), 565 Send(new AutofillHostMsg_SetDataList(routing_id(),
566 data_list_values, 566 data_list_values,
567 data_list_labels)); 567 data_list_labels));
568 568
569 Send(new AutofillHostMsg_QueryFormFieldAutofill(routing_id(), 569 Send(new AutofillHostMsg_QueryFormFieldAutofill(routing_id(),
570 autofill_query_id_, 570 autofill_query_id_,
571 form, 571 form,
572 field, 572 field,
573 element.form(),
573 bounding_box_scaled, 574 bounding_box_scaled,
574 display_warning_if_disabled)); 575 display_warning_if_disabled));
575 } 576 }
576 577
577 void AutofillAgent::FillAutofillFormData(const WebNode& node, 578 void AutofillAgent::FillAutofillFormData(const WebNode& node,
578 int unique_id, 579 int unique_id,
579 AutofillAction action) { 580 AutofillAction action) {
580 DCHECK_GT(unique_id, 0); 581 DCHECK_GT(unique_id, 0);
581 582
582 static int query_counter = 0; 583 static int query_counter = 0;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 // Only monitors dynamic forms created in the top frame. Dynamic forms 616 // Only monitors dynamic forms created in the top frame. Dynamic forms
616 // inserted in iframes are not captured yet. 617 // inserted in iframes are not captured yet.
617 if (!frame->parent()) { 618 if (!frame->parent()) {
618 password_autofill_agent_->OnDynamicFormsSeen(frame); 619 password_autofill_agent_->OnDynamicFormsSeen(frame);
619 return; 620 return;
620 } 621 }
621 } 622 }
622 } 623 }
623 624
624 } // namespace autofill 625 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698