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_profile_data_type_controller.h" | 5 #include "chrome/browser/sync/glue/autofill_profile_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/api/syncable_service.h" | 13 #include "chrome/browser/sync/api/syncable_service.h" |
14 #include "chrome/browser/sync/profile_sync_factory.h" | 14 #include "chrome/browser/sync/profile_sync_factory.h" |
15 #include "chrome/browser/sync/profile_sync_service.h" | 15 #include "chrome/browser/sync/profile_sync_service.h" |
16 #include "chrome/browser/webdata/web_data_service.h" | 16 #include "chrome/browser/webdata/web_data_service.h" |
17 #include "chrome/common/chrome_notification_types.h" | 17 #include "chrome/common/chrome_notification_types.h" |
18 #include "content/public/browser/browser_thread.h" | 18 #include "content/public/browser/browser_thread.h" |
19 #include "content/public/browser/notification_service.h" | 19 #include "content/public/browser/notification_service.h" |
20 #include "content/public/browser/notification_source.h" | 20 #include "content/public/browser/notification_source.h" |
21 | 21 |
| 22 using content::BrowserThread; |
| 23 |
22 namespace browser_sync { | 24 namespace browser_sync { |
23 | 25 |
24 AutofillProfileDataTypeController::AutofillProfileDataTypeController( | 26 AutofillProfileDataTypeController::AutofillProfileDataTypeController( |
25 ProfileSyncFactory* profile_sync_factory, | 27 ProfileSyncFactory* profile_sync_factory, |
26 Profile* profile) | 28 Profile* profile) |
27 : NewNonFrontendDataTypeController(profile_sync_factory, profile), | 29 : NewNonFrontendDataTypeController(profile_sync_factory, profile), |
28 personal_data_(NULL) { | 30 personal_data_(NULL) { |
29 } | 31 } |
30 | 32 |
31 AutofillProfileDataTypeController::~AutofillProfileDataTypeController() {} | 33 AutofillProfileDataTypeController::~AutofillProfileDataTypeController() {} |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 } | 137 } |
136 | 138 |
137 void AutofillProfileDataTypeController::RecordStartFailure(StartResult result) { | 139 void AutofillProfileDataTypeController::RecordStartFailure(StartResult result) { |
138 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 140 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
139 UMA_HISTOGRAM_ENUMERATION("Sync.AutofillProfileStartFailures", | 141 UMA_HISTOGRAM_ENUMERATION("Sync.AutofillProfileStartFailures", |
140 result, | 142 result, |
141 MAX_START_RESULT); | 143 MAX_START_RESULT); |
142 } | 144 } |
143 | 145 |
144 } // namepsace browser_sync | 146 } // namepsace browser_sync |
OLD | NEW |