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

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

Issue 2026353002: [Autofill] Credit Card Assist Infobar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleaning 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
« no previous file with comments | « components/autofill.gypi ('k') | components/autofill/core/browser/BUILD.gn » ('j') | 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/autofill_agent.h" 5 #include "components/autofill/content/renderer/autofill_agent.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <tuple> 9 #include <tuple>
10 10
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 } 461 }
462 DoFillFieldWithValue(new_value, input_element); 462 DoFillFieldWithValue(new_value, input_element);
463 } 463 }
464 464
465 // mojom::AutofillAgent: 465 // mojom::AutofillAgent:
466 void AutofillAgent::FirstUserGestureObservedInTab() { 466 void AutofillAgent::FirstUserGestureObservedInTab() {
467 password_autofill_agent_->FirstUserGestureObserved(); 467 password_autofill_agent_->FirstUserGestureObserved();
468 } 468 }
469 469
470 void AutofillAgent::FillForm(int32_t id, const FormData& form) { 470 void AutofillAgent::FillForm(int32_t id, const FormData& form) {
471 if (id != autofill_query_id_) 471 if (id != autofill_query_id_ && id != kNoQueryId)
472 return; 472 return;
473 473
474 was_query_node_autofilled_ = element_.isAutofilled(); 474 was_query_node_autofilled_ = element_.isAutofilled();
475 form_util::FillForm(form, element_); 475 form_util::FillForm(form, element_);
476 if (!element_.form().isNull()) 476 if (!element_.form().isNull())
477 last_interacted_form_ = element_.form(); 477 last_interacted_form_ = element_.form();
478 478
479 GetAutofillDriver()->DidFillAutofillFormData(form, base::TimeTicks::Now()); 479 GetAutofillDriver()->DidFillAutofillFormData(form, base::TimeTicks::Now());
480 } 480 }
481 481
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
808 void AutofillAgent::LegacyAutofillAgent::OnDestruct() { 808 void AutofillAgent::LegacyAutofillAgent::OnDestruct() {
809 // No-op. Don't delete |this|. 809 // No-op. Don't delete |this|.
810 } 810 }
811 811
812 void AutofillAgent::LegacyAutofillAgent::FocusChangeComplete() { 812 void AutofillAgent::LegacyAutofillAgent::FocusChangeComplete() {
813 if (agent_) 813 if (agent_)
814 agent_->FocusChangeComplete(); 814 agent_->FocusChangeComplete();
815 } 815 }
816 816
817 } // namespace autofill 817 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill.gypi ('k') | components/autofill/core/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698