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/sync/glue/autofill_data_type_controller.h" | 5 #include "chrome/browser/sync/glue/autofill_data_type_controller.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
10 #include "chrome/browser/sync/profile_sync_components_factory.h" | 10 #include "chrome/browser/sync/profile_sync_components_factory.h" |
11 #include "chrome/browser/sync/profile_sync_service.h" | 11 #include "chrome/browser/sync/profile_sync_service.h" |
12 #include "chrome/browser/sync/profile_sync_service_factory.h" | 12 #include "chrome/browser/sync/profile_sync_service_factory.h" |
13 #include "chrome/browser/webdata/autocomplete_syncable_service.h" | 13 #include "chrome/browser/webdata/autocomplete_syncable_service.h" |
14 #include "components/autofill/browser/webdata/autofill_webdata_service.h" | 14 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" |
15 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
16 #include "sync/api/sync_error.h" | 16 #include "sync/api/sync_error.h" |
17 #include "sync/internal_api/public/util/experiments.h" | 17 #include "sync/internal_api/public/util/experiments.h" |
18 | 18 |
19 using content::BrowserThread; | 19 using content::BrowserThread; |
20 | 20 |
21 namespace browser_sync { | 21 namespace browser_sync { |
22 | 22 |
23 AutofillDataTypeController::AutofillDataTypeController( | 23 AutofillDataTypeController::AutofillDataTypeController( |
24 ProfileSyncComponentsFactory* profile_sync_factory, | 24 ProfileSyncComponentsFactory* profile_sync_factory, |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 AutocompleteSyncableService::FromWebDataService(web_data_service.get()); | 110 AutocompleteSyncableService::FromWebDataService(web_data_service.get()); |
111 if (!service) { | 111 if (!service) { |
112 DVLOG(1) << "Can't update culling, no AutocompleteSyncableService."; | 112 DVLOG(1) << "Can't update culling, no AutocompleteSyncableService."; |
113 return; | 113 return; |
114 } | 114 } |
115 | 115 |
116 service->UpdateCullSetting(cull_expired_entries); | 116 service->UpdateCullSetting(cull_expired_entries); |
117 } | 117 } |
118 | 118 |
119 } // namespace browser_sync | 119 } // namespace browser_sync |
OLD | NEW |