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

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: Autofill 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 838 matching lines...) Expand 10 before | Expand all | Expand 10 after
849 if (!autofill_data.get()) { 849 if (!autofill_data.get()) {
850 NOTREACHED(); 850 NOTREACHED();
851 return; 851 return;
852 } 852 }
853 853
854 CancelPendingQuery(&pending_profiles_query_); 854 CancelPendingQuery(&pending_profiles_query_);
855 855
856 pending_profiles_query_ = autofill_data->GetAutofillProfiles(this); 856 pending_profiles_query_ = autofill_data->GetAutofillProfiles(this);
857 } 857 }
858 858
859 // Win and Linux implementations do nothing. Mac implementation fills in the 859 // Win and Linux implementations do nothing. Mac and Android implementations
860 // contents of |auxiliary_profiles_|. 860 // fill in the contents of |auxiliary_profiles_|.
861 #if !defined(OS_MACOSX) 861 #if !defined(OS_MACOSX) && !defined(OS_ANDROID)
Yaron 2013/02/28 20:40:43 The comment in the header would need an update too
apiccion 2013/03/01 01:04:34 Done.
862 void PersonalDataManager::LoadAuxiliaryProfiles() { 862 void PersonalDataManager::LoadAuxiliaryProfiles() {
863 } 863 }
864 #endif 864 #endif
865 865
866 void PersonalDataManager::LoadCreditCards() { 866 void PersonalDataManager::LoadCreditCards() {
867 scoped_ptr<AutofillWebDataService> autofill_data( 867 scoped_ptr<AutofillWebDataService> autofill_data(
868 AutofillWebDataService::FromBrowserContext(browser_context_)); 868 AutofillWebDataService::FromBrowserContext(browser_context_));
869 if (!autofill_data.get()) { 869 if (!autofill_data.get()) {
870 NOTREACHED(); 870 NOTREACHED();
871 return; 871 return;
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
1023 1023
1024 void PersonalDataManager::set_metric_logger( 1024 void PersonalDataManager::set_metric_logger(
1025 const AutofillMetrics* metric_logger) { 1025 const AutofillMetrics* metric_logger) {
1026 metric_logger_.reset(metric_logger); 1026 metric_logger_.reset(metric_logger);
1027 } 1027 }
1028 1028
1029 void PersonalDataManager::set_browser_context( 1029 void PersonalDataManager::set_browser_context(
1030 content::BrowserContext* context) { 1030 content::BrowserContext* context) {
1031 browser_context_ = context; 1031 browser_context_ = context;
1032 } 1032 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698