OLD | NEW |
---|---|
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/core/browser/personal_data_manager.h" | 5 #include "components/autofill/core/browser/personal_data_manager.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <functional> | 8 #include <functional> |
9 #include <iterator> | 9 #include <iterator> |
10 | 10 |
(...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
919 if (!database_.get()) { | 919 if (!database_.get()) { |
920 NOTREACHED(); | 920 NOTREACHED(); |
921 return; | 921 return; |
922 } | 922 } |
923 | 923 |
924 CancelPendingQuery(&pending_profiles_query_); | 924 CancelPendingQuery(&pending_profiles_query_); |
925 | 925 |
926 pending_profiles_query_ = database_->GetAutofillProfiles(this); | 926 pending_profiles_query_ = database_->GetAutofillProfiles(this); |
927 } | 927 } |
928 | 928 |
929 // Win, Linux, and iOS implementations do nothing. Mac and Android | 929 // Win, Linux, Android and iOS implementations do nothing. Mac implementation |
930 // implementations fill in the contents of |auxiliary_profiles_|. | 930 // fill in the contents of |auxiliary_profiles_|. |
Ilya Sherman
2014/08/14 21:18:29
nit: "fill" -> "fills"
aurimas (slooooooooow)
2014/08/14 21:45:10
Done.
| |
931 #if defined(OS_IOS) || (!defined(OS_MACOSX) && !defined(OS_ANDROID)) | 931 #if defined(OS_IOS) || !defined(OS_MACOSX) |
932 void PersonalDataManager::LoadAuxiliaryProfiles(bool record_metrics) const { | 932 void PersonalDataManager::LoadAuxiliaryProfiles(bool record_metrics) const { |
933 } | 933 } |
934 #endif | 934 #endif |
935 | 935 |
936 void PersonalDataManager::LoadCreditCards() { | 936 void PersonalDataManager::LoadCreditCards() { |
937 if (!database_.get()) { | 937 if (!database_.get()) { |
938 NOTREACHED(); | 938 NOTREACHED(); |
939 return; | 939 return; |
940 } | 940 } |
941 | 941 |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1110 // Populates |auxiliary_profiles_|. | 1110 // Populates |auxiliary_profiles_|. |
1111 LoadAuxiliaryProfiles(record_metrics); | 1111 LoadAuxiliaryProfiles(record_metrics); |
1112 | 1112 |
1113 profiles_.insert(profiles_.end(), web_profiles_.begin(), web_profiles_.end()); | 1113 profiles_.insert(profiles_.end(), web_profiles_.begin(), web_profiles_.end()); |
1114 profiles_.insert( | 1114 profiles_.insert( |
1115 profiles_.end(), auxiliary_profiles_.begin(), auxiliary_profiles_.end()); | 1115 profiles_.end(), auxiliary_profiles_.begin(), auxiliary_profiles_.end()); |
1116 return profiles_; | 1116 return profiles_; |
1117 } | 1117 } |
1118 | 1118 |
1119 } // namespace autofill | 1119 } // namespace autofill |
OLD | NEW |