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

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

Issue 845173003: Autofill - don't show server cards in android preferences (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: typo Created 5 years, 11 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
« no previous file with comments | « components/autofill/core/browser/personal_data_manager.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 637 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 } 648 }
649 649
650 const std::vector<AutofillProfile*>& PersonalDataManager::GetProfiles() const { 650 const std::vector<AutofillProfile*>& PersonalDataManager::GetProfiles() const {
651 return GetProfiles(false); 651 return GetProfiles(false);
652 } 652 }
653 653
654 const std::vector<AutofillProfile*>& PersonalDataManager::web_profiles() const { 654 const std::vector<AutofillProfile*>& PersonalDataManager::web_profiles() const {
655 return web_profiles_.get(); 655 return web_profiles_.get();
656 } 656 }
657 657
658 const std::vector<CreditCard*>& PersonalDataManager::GetLocalCreditCards()
659 const {
660 return local_credit_cards_.get();
661 }
662
658 const std::vector<CreditCard*>& PersonalDataManager::GetCreditCards() const { 663 const std::vector<CreditCard*>& PersonalDataManager::GetCreditCards() const {
659 credit_cards_.clear(); 664 credit_cards_.clear();
660 credit_cards_.insert(credit_cards_.end(), local_credit_cards_.begin(), 665 credit_cards_.insert(credit_cards_.end(), local_credit_cards_.begin(),
661 local_credit_cards_.end()); 666 local_credit_cards_.end());
662 if (base::CommandLine::ForCurrentProcess()->HasSwitch( 667 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
663 switches::kEnableWalletCardImport)) { 668 switches::kEnableWalletCardImport)) {
664 credit_cards_.insert(credit_cards_.end(), server_credit_cards_.begin(), 669 credit_cards_.insert(credit_cards_.end(), server_credit_cards_.begin(),
665 server_credit_cards_.end()); 670 server_credit_cards_.end());
666 } 671 }
667 return credit_cards_; 672 return credit_cards_;
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
1194 1199
1195 profiles_.insert(profiles_.end(), web_profiles_.begin(), web_profiles_.end()); 1200 profiles_.insert(profiles_.end(), web_profiles_.begin(), web_profiles_.end());
1196 profiles_.insert( 1201 profiles_.insert(
1197 profiles_.end(), auxiliary_profiles_.begin(), auxiliary_profiles_.end()); 1202 profiles_.end(), auxiliary_profiles_.begin(), auxiliary_profiles_.end());
1198 profiles_.insert( 1203 profiles_.insert(
1199 profiles_.end(), server_profiles_.begin(), server_profiles_.end()); 1204 profiles_.end(), server_profiles_.begin(), server_profiles_.end());
1200 return profiles_; 1205 return profiles_;
1201 } 1206 }
1202 1207
1203 } // namespace autofill 1208 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/core/browser/personal_data_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698