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

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

Issue 12282004: Added personal_data_manager android implementation for auto-populating auto-fill on android builds … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Autofill populator components refactor Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/browser/personal_data_manager.h" 5 #include "components/autofill/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 806 matching lines...) Expand 10 before | Expand all | Expand 10 after
817 if (!autofill_data.get()) { 817 if (!autofill_data.get()) {
818 NOTREACHED(); 818 NOTREACHED();
819 return; 819 return;
820 } 820 }
821 821
822 CancelPendingQuery(&pending_profiles_query_); 822 CancelPendingQuery(&pending_profiles_query_);
823 823
824 pending_profiles_query_ = autofill_data->GetAutofillProfiles(this); 824 pending_profiles_query_ = autofill_data->GetAutofillProfiles(this);
825 } 825 }
826 826
827 // Win and Linux implementations do nothing. Mac implementation fills in the 827 // Win and Linux implementations do nothing. Mac and Android implementations
828 // contents of |auxiliary_profiles_|. 828 // fill in the contents of |auxiliary_profiles_|.
829 #if !defined(OS_MACOSX) 829 #if !defined(OS_MACOSX) && !defined(OS_ANDROID)
830 void PersonalDataManager::LoadAuxiliaryProfiles() { 830 void PersonalDataManager::LoadAuxiliaryProfiles() {
831 } 831 }
832 #endif 832 #endif
833 833
834 void PersonalDataManager::LoadCreditCards() { 834 void PersonalDataManager::LoadCreditCards() {
835 scoped_ptr<AutofillWebDataService> autofill_data( 835 scoped_ptr<AutofillWebDataService> autofill_data(
836 AutofillWebDataService::FromBrowserContext(browser_context_)); 836 AutofillWebDataService::FromBrowserContext(browser_context_));
837 if (!autofill_data.get()) { 837 if (!autofill_data.get()) {
838 NOTREACHED(); 838 NOTREACHED();
839 return; 839 return;
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
963 963
964 void PersonalDataManager::set_metric_logger( 964 void PersonalDataManager::set_metric_logger(
965 const AutofillMetrics* metric_logger) { 965 const AutofillMetrics* metric_logger) {
966 metric_logger_.reset(metric_logger); 966 metric_logger_.reset(metric_logger);
967 } 967 }
968 968
969 void PersonalDataManager::set_browser_context( 969 void PersonalDataManager::set_browser_context(
970 content::BrowserContext* context) { 970 content::BrowserContext* context) {
971 browser_context_ = context; 971 browser_context_ = context;
972 } 972 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698