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

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

Issue 286243002: Mac: Autofill should not immediately request access to address book. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More cleanup. Created 6 years, 7 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
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 896 matching lines...) Expand 10 before | Expand all | Expand 10 after
907 CancelPendingQuery(&pending_profiles_query_); 907 CancelPendingQuery(&pending_profiles_query_);
908 908
909 pending_profiles_query_ = database_->GetAutofillProfiles(this); 909 pending_profiles_query_ = database_->GetAutofillProfiles(this);
910 } 910 }
911 911
912 // Win, Linux, and iOS implementations do nothing. Mac and Android 912 // Win, Linux, and iOS implementations do nothing. Mac and Android
913 // implementations fill in the contents of |auxiliary_profiles_|. 913 // implementations fill in the contents of |auxiliary_profiles_|.
914 #if defined(OS_IOS) || (!defined(OS_MACOSX) && !defined(OS_ANDROID)) 914 #if defined(OS_IOS) || (!defined(OS_MACOSX) && !defined(OS_ANDROID))
915 void PersonalDataManager::LoadAuxiliaryProfiles() const { 915 void PersonalDataManager::LoadAuxiliaryProfiles() const {
916 } 916 }
917
918 bool PersonalDataManager::HasAccessMacContacts() {
919 return false;
920 }
921
922 void PersonalDataManager::AccessMacContacts() {
Ilya Sherman 2014/05/16 22:54:02 Either these methods should not have "Mac" in the
erikchen 2014/05/19 20:58:32 I've removed these methods from personal_data_mana
923 }
924
917 #endif 925 #endif
918 926
919 void PersonalDataManager::LoadCreditCards() { 927 void PersonalDataManager::LoadCreditCards() {
920 if (!database_.get()) { 928 if (!database_.get()) {
921 NOTREACHED(); 929 NOTREACHED();
922 return; 930 return;
923 } 931 }
924 932
925 CancelPendingQuery(&pending_creditcards_query_); 933 CancelPendingQuery(&pending_creditcards_query_);
926 934
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
1072 1080
1073 return std::string(); 1081 return std::string();
1074 } 1082 }
1075 1083
1076 void PersonalDataManager::EnabledPrefChanged() { 1084 void PersonalDataManager::EnabledPrefChanged() {
1077 default_country_code_.clear(); 1085 default_country_code_.clear();
1078 NotifyPersonalDataChanged(); 1086 NotifyPersonalDataChanged();
1079 } 1087 }
1080 1088
1081 } // namespace autofill 1089 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698