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

Side by Side Diff: components/autofill/core/browser/personal_data_manager.cc

Issue 108013004: Build Autofill component on iOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_autofill_ipc
Patch Set: Response to review Created 7 years 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/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
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))
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698