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 848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
859 if (!database_.get()) { | 859 if (!database_.get()) { |
860 NOTREACHED(); | 860 NOTREACHED(); |
861 return; | 861 return; |
862 } | 862 } |
863 | 863 |
864 CancelPendingQuery(&pending_profiles_query_); | 864 CancelPendingQuery(&pending_profiles_query_); |
865 | 865 |
866 pending_profiles_query_ = database_->GetAutofillProfiles(this); | 866 pending_profiles_query_ = database_->GetAutofillProfiles(this); |
867 } | 867 } |
868 | 868 |
869 // Win and Linux implementations do nothing. Mac and Android implementations | 869 // Win, Linux, and iOS implementations do nothing. Mac and Android |
870 // fill in the contents of |auxiliary_profiles_|. | 870 // implementations fill in the contents of |auxiliary_profiles_|. |
871 #if !defined(OS_MACOSX) && !defined(OS_ANDROID) | 871 #if defined(OS_IOS) || (!defined(OS_MACOSX) && !defined(OS_ANDROID)) |
Ilya Sherman
2013/12/11 22:50:38
Why are changes to this line needed? Does OS_IOS
blundell
2013/12/12 20:53:54
OS_IOS does indeed cause OS_MACOSX to be defined (
Ilya Sherman
2013/12/12 22:34:52
Ok, good to know! Might be worth adding a comment
blundell
2013/12/12 22:41:29
I don't think that we comment this in general.
On
| |
872 void PersonalDataManager::LoadAuxiliaryProfiles() const { | 872 void PersonalDataManager::LoadAuxiliaryProfiles() const { |
873 } | 873 } |
874 #endif | 874 #endif |
875 | 875 |
876 void PersonalDataManager::LoadCreditCards() { | 876 void PersonalDataManager::LoadCreditCards() { |
877 if (!database_.get()) { | 877 if (!database_.get()) { |
878 NOTREACHED(); | 878 NOTREACHED(); |
879 return; | 879 return; |
880 } | 880 } |
881 | 881 |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1017 if (!votes.empty()) { | 1017 if (!votes.empty()) { |
1018 std::map<std::string, int>::iterator iter = | 1018 std::map<std::string, int>::iterator iter = |
1019 std::max_element(votes.begin(), votes.end(), CompareVotes); | 1019 std::max_element(votes.begin(), votes.end(), CompareVotes); |
1020 return iter->first; | 1020 return iter->first; |
1021 } | 1021 } |
1022 | 1022 |
1023 return std::string(); | 1023 return std::string(); |
1024 } | 1024 } |
1025 | 1025 |
1026 } // namespace autofill | 1026 } // namespace autofill |
OLD | NEW |