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

Side by Side Diff: components/autofill/browser/autofill_manager.cc

Issue 15660018: [autofill] Add support for PSL domain matching for password autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed compile error for browsertests Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/browser/autofill_manager.h" 5 #include "components/autofill/browser/autofill_manager.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <limits> 9 #include <limits>
10 #include <map> 10 #include <map>
(...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 void AutofillManager::OnAddPasswordFormMapping( 737 void AutofillManager::OnAddPasswordFormMapping(
738 const FormFieldData& form, 738 const FormFieldData& form,
739 const PasswordFormFillData& fill_data) { 739 const PasswordFormFillData& fill_data) {
740 if (external_delegate_) 740 if (external_delegate_)
741 external_delegate_->AddPasswordFormMapping(form, fill_data); 741 external_delegate_->AddPasswordFormMapping(form, fill_data);
742 } 742 }
743 743
744 void AutofillManager::OnShowPasswordSuggestions( 744 void AutofillManager::OnShowPasswordSuggestions(
745 const FormFieldData& field, 745 const FormFieldData& field,
746 const gfx::RectF& bounds, 746 const gfx::RectF& bounds,
747 const std::vector<base::string16>& suggestions) { 747 const std::vector<base::string16>& suggestions,
748 const std::vector<base::string16>& origins) {
748 if (external_delegate_) 749 if (external_delegate_)
749 external_delegate_->OnShowPasswordSuggestions(suggestions, field, bounds); 750 external_delegate_->OnShowPasswordSuggestions(suggestions,
751 origins,
752 field,
753 bounds);
750 } 754 }
751 755
752 void AutofillManager::OnSetDataList(const std::vector<base::string16>& values, 756 void AutofillManager::OnSetDataList(const std::vector<base::string16>& values,
753 const std::vector<base::string16>& labels, 757 const std::vector<base::string16>& labels,
754 const std::vector<base::string16>& icons, 758 const std::vector<base::string16>& icons,
755 const std::vector<int>& unique_ids) { 759 const std::vector<int>& unique_ids) {
756 if (labels.size() != values.size() || 760 if (labels.size() != values.size() ||
757 icons.size() != values.size() || 761 icons.size() != values.size() ||
758 unique_ids.size() != values.size()) { 762 unique_ids.size() != values.size()) {
759 return; 763 return;
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
1296 1300
1297 void AutofillManager::UpdateInitialInteractionTimestamp( 1301 void AutofillManager::UpdateInitialInteractionTimestamp(
1298 const TimeTicks& interaction_timestamp) { 1302 const TimeTicks& interaction_timestamp) {
1299 if (initial_interaction_timestamp_.is_null() || 1303 if (initial_interaction_timestamp_.is_null() ||
1300 interaction_timestamp < initial_interaction_timestamp_) { 1304 interaction_timestamp < initial_interaction_timestamp_) {
1301 initial_interaction_timestamp_ = interaction_timestamp; 1305 initial_interaction_timestamp_ = interaction_timestamp;
1302 } 1306 }
1303 } 1307 }
1304 1308
1305 } // namespace autofill 1309 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698