| 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 |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/prefs/public/pref_service_base.h" |
| 12 #include "base/string_number_conversions.h" | 13 #include "base/string_number_conversions.h" |
| 13 #include "base/utf_string_conversions.h" | 14 #include "base/utf_string_conversions.h" |
| 14 #include "chrome/browser/api/prefs/pref_service_base.h" | |
| 15 #include "chrome/browser/api/sync/profile_sync_service_base.h" | 15 #include "chrome/browser/api/sync/profile_sync_service_base.h" |
| 16 #include "chrome/browser/api/webdata/autofill_web_data_service.h" | 16 #include "chrome/browser/api/webdata/autofill_web_data_service.h" |
| 17 #include "chrome/browser/autofill/autofill-inl.h" | 17 #include "chrome/browser/autofill/autofill-inl.h" |
| 18 #include "chrome/browser/autofill/autofill_field.h" | 18 #include "chrome/browser/autofill/autofill_field.h" |
| 19 #include "chrome/browser/autofill/autofill_metrics.h" | 19 #include "chrome/browser/autofill/autofill_metrics.h" |
| 20 #include "chrome/browser/autofill/autofill_regexes.h" | 20 #include "chrome/browser/autofill/autofill_regexes.h" |
| 21 #include "chrome/browser/autofill/form_structure.h" | 21 #include "chrome/browser/autofill/form_structure.h" |
| 22 #include "chrome/browser/autofill/personal_data_manager_observer.h" | 22 #include "chrome/browser/autofill/personal_data_manager_observer.h" |
| 23 #include "chrome/browser/autofill/phone_number.h" | 23 #include "chrome/browser/autofill/phone_number.h" |
| 24 #include "chrome/browser/autofill/phone_number_i18n.h" | 24 #include "chrome/browser/autofill/phone_number_i18n.h" |
| (...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 933 } | 933 } |
| 934 | 934 |
| 935 const AutofillMetrics* PersonalDataManager::metric_logger() const { | 935 const AutofillMetrics* PersonalDataManager::metric_logger() const { |
| 936 return metric_logger_.get(); | 936 return metric_logger_.get(); |
| 937 } | 937 } |
| 938 | 938 |
| 939 void PersonalDataManager::set_metric_logger( | 939 void PersonalDataManager::set_metric_logger( |
| 940 const AutofillMetrics* metric_logger) { | 940 const AutofillMetrics* metric_logger) { |
| 941 metric_logger_.reset(metric_logger); | 941 metric_logger_.reset(metric_logger); |
| 942 } | 942 } |
| OLD | NEW |