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

Side by Side Diff: chrome/browser/autofill/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: Fixed assortment of nits 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 "chrome/browser/autofill/personal_data_manager.h" 5 #include "chrome/browser/autofill/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 832 matching lines...) Expand 10 before | Expand all | Expand 10 after
843 if (!autofill_data.get()) { 843 if (!autofill_data.get()) {
844 NOTREACHED(); 844 NOTREACHED();
845 return; 845 return;
846 } 846 }
847 847
848 CancelPendingQuery(&pending_profiles_query_); 848 CancelPendingQuery(&pending_profiles_query_);
849 849
850 pending_profiles_query_ = autofill_data->GetAutofillProfiles(this); 850 pending_profiles_query_ = autofill_data->GetAutofillProfiles(this);
851 } 851 }
852 852
853 // Win and Linux implementations do nothing. Mac implementation fills in the 853 // Win and Linux implementations do nothing. Mac and Android implementations
854 // contents of |auxiliary_profiles_|. 854 // fill in the contents of |auxiliary_profiles_|.
855 #if !defined(OS_MACOSX) 855 #if !defined(OS_MACOSX) && !defined(OS_ANDROID)
856 void PersonalDataManager::LoadAuxiliaryProfiles() { 856 void PersonalDataManager::LoadAuxiliaryProfiles() {
857 } 857 }
858 #endif 858 #endif
859 859
860 void PersonalDataManager::LoadCreditCards() { 860 void PersonalDataManager::LoadCreditCards() {
861 scoped_ptr<AutofillWebDataService> autofill_data( 861 scoped_ptr<AutofillWebDataService> autofill_data(
862 AutofillWebDataService::FromBrowserContext(browser_context_)); 862 AutofillWebDataService::FromBrowserContext(browser_context_));
863 if (!autofill_data.get()) { 863 if (!autofill_data.get()) {
864 NOTREACHED(); 864 NOTREACHED();
865 return; 865 return;
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
1017 1017
1018 void PersonalDataManager::set_metric_logger( 1018 void PersonalDataManager::set_metric_logger(
1019 const AutofillMetrics* metric_logger) { 1019 const AutofillMetrics* metric_logger) {
1020 metric_logger_.reset(metric_logger); 1020 metric_logger_.reset(metric_logger);
1021 } 1021 }
1022 1022
1023 void PersonalDataManager::set_browser_context( 1023 void PersonalDataManager::set_browser_context(
1024 content::BrowserContext* context) { 1024 content::BrowserContext* context) {
1025 browser_context_ = context; 1025 browser_context_ = context;
1026 } 1026 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698