OLD | NEW |
---|---|
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 851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
862 if (!autofill_data.get()) { | 862 if (!autofill_data.get()) { |
863 NOTREACHED(); | 863 NOTREACHED(); |
864 return; | 864 return; |
865 } | 865 } |
866 | 866 |
867 CancelPendingQuery(&pending_profiles_query_); | 867 CancelPendingQuery(&pending_profiles_query_); |
868 | 868 |
869 pending_profiles_query_ = autofill_data->GetAutofillProfiles(this); | 869 pending_profiles_query_ = autofill_data->GetAutofillProfiles(this); |
870 } | 870 } |
871 | 871 |
872 // Win and Linux implementations do nothing. Mac implementation fills in the | 872 // Win and Linux implementations do nothing. Mac |
aurimas (slooooooooow)
2013/02/15 19:08:35
Why break the line is such a weird place?
apiccion
2013/02/26 23:51:51
Done.
| |
873 // contents of |auxiliary_profiles_|. | 873 // and Android implementation fills in the contents of |auxiliary_profiles_|. |
Ilya Sherman
2013/02/16 04:14:37
nit: "implementation fills" -> "implementations fi
David Trainor- moved to gerrit
2013/02/19 19:03:13
implementations fill?
apiccion
2013/02/26 23:51:51
Done.
| |
874 #if !defined(OS_MACOSX) | 874 #if !defined(OS_MACOSX) && !defined(OS_ANDROID) |
875 void PersonalDataManager::LoadAuxiliaryProfiles() { | 875 void PersonalDataManager::LoadAuxiliaryProfiles() { |
876 } | 876 } |
877 #endif | 877 #endif |
878 | 878 |
879 void PersonalDataManager::LoadCreditCards() { | 879 void PersonalDataManager::LoadCreditCards() { |
880 scoped_ptr<AutofillWebDataService> autofill_data( | 880 scoped_ptr<AutofillWebDataService> autofill_data( |
881 AutofillWebDataService::FromBrowserContext(browser_context_)); | 881 AutofillWebDataService::FromBrowserContext(browser_context_)); |
882 if (!autofill_data.get()) { | 882 if (!autofill_data.get()) { |
883 NOTREACHED(); | 883 NOTREACHED(); |
884 return; | 884 return; |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1036 | 1036 |
1037 void PersonalDataManager::set_metric_logger( | 1037 void PersonalDataManager::set_metric_logger( |
1038 const AutofillMetrics* metric_logger) { | 1038 const AutofillMetrics* metric_logger) { |
1039 metric_logger_.reset(metric_logger); | 1039 metric_logger_.reset(metric_logger); |
1040 } | 1040 } |
1041 | 1041 |
1042 void PersonalDataManager::set_browser_context( | 1042 void PersonalDataManager::set_browser_context( |
1043 content::BrowserContext* context) { | 1043 content::BrowserContext* context) { |
1044 browser_context_ = context; | 1044 browser_context_ = context; |
1045 } | 1045 } |
OLD | NEW |