OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/metrics/histogram.h" | 7 #include "base/metrics/histogram.h" |
8 #include "base/task.h" | 8 #include "base/task.h" |
9 #include "chrome/browser/autofill/personal_data_manager.h" | 9 #include "chrome/browser/autofill/personal_data_manager.h" |
10 #include "chrome/browser/autofill/personal_data_manager_factory.h" | 10 #include "chrome/browser/autofill/personal_data_manager_factory.h" |
11 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
12 #include "chrome/browser/sync/api/sync_error.h" | 12 #include "chrome/browser/sync/api/sync_error.h" |
13 #include "chrome/browser/sync/profile_sync_factory.h" | 13 #include "chrome/browser/sync/profile_sync_factory.h" |
14 #include "chrome/browser/sync/profile_sync_service.h" | 14 #include "chrome/browser/sync/profile_sync_service.h" |
15 #include "chrome/browser/webdata/web_data_service.h" | 15 #include "chrome/browser/webdata/web_data_service.h" |
16 #include "chrome/common/chrome_notification_types.h" | 16 #include "chrome/common/chrome_notification_types.h" |
17 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
18 #include "content/public/browser/notification_source.h" | 18 #include "content/public/browser/notification_source.h" |
19 | 19 |
| 20 using content::BrowserThread; |
| 21 |
20 namespace browser_sync { | 22 namespace browser_sync { |
21 | 23 |
22 AutofillDataTypeController::AutofillDataTypeController( | 24 AutofillDataTypeController::AutofillDataTypeController( |
23 ProfileSyncFactory* profile_sync_factory, | 25 ProfileSyncFactory* profile_sync_factory, |
24 Profile* profile) | 26 Profile* profile) |
25 : NonFrontendDataTypeController(profile_sync_factory, profile), | 27 : NonFrontendDataTypeController(profile_sync_factory, profile), |
26 personal_data_(NULL) { | 28 personal_data_(NULL) { |
27 } | 29 } |
28 | 30 |
29 AutofillDataTypeController::~AutofillDataTypeController() { | 31 AutofillDataTypeController::~AutofillDataTypeController() { |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 | 155 |
154 PersonalDataManager* AutofillDataTypeController::personal_data() const { | 156 PersonalDataManager* AutofillDataTypeController::personal_data() const { |
155 return personal_data_; | 157 return personal_data_; |
156 } | 158 } |
157 | 159 |
158 WebDataService* AutofillDataTypeController::web_data_service() const { | 160 WebDataService* AutofillDataTypeController::web_data_service() const { |
159 return web_data_service_; | 161 return web_data_service_; |
160 } | 162 } |
161 | 163 |
162 } // namespace browser_sync | 164 } // namespace browser_sync |
OLD | NEW |