| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "components/autofill/core/browser/webdata/autofill_profile_data_type_co
ntroller.h" | 5 #include "components/autofill/core/browser/webdata/autofill_profile_data_type_co
ntroller.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 "components/autofill/core/browser/personal_data_manager.h" | 9 #include "components/autofill/core/browser/personal_data_manager.h" |
| 10 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" | 10 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" |
| 11 #include "components/sync/api/sync_error.h" |
| 12 #include "components/sync/api/syncable_service.h" |
| 11 #include "components/sync_driver/sync_client.h" | 13 #include "components/sync_driver/sync_client.h" |
| 12 #include "sync/api/sync_error.h" | |
| 13 #include "sync/api/syncable_service.h" | |
| 14 | 14 |
| 15 using autofill::AutofillWebDataService; | 15 using autofill::AutofillWebDataService; |
| 16 | 16 |
| 17 namespace browser_sync { | 17 namespace browser_sync { |
| 18 | 18 |
| 19 AutofillProfileDataTypeController::AutofillProfileDataTypeController( | 19 AutofillProfileDataTypeController::AutofillProfileDataTypeController( |
| 20 const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread, | 20 const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread, |
| 21 const scoped_refptr<base::SingleThreadTaskRunner>& db_thread, | 21 const scoped_refptr<base::SingleThreadTaskRunner>& db_thread, |
| 22 const base::Closure& error_callback, | 22 const base::Closure& error_callback, |
| 23 sync_driver::SyncClient* sync_client, | 23 sync_driver::SyncClient* sync_client, |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 | 97 |
| 98 return false; | 98 return false; |
| 99 } | 99 } |
| 100 | 100 |
| 101 void AutofillProfileDataTypeController::StopModels() { | 101 void AutofillProfileDataTypeController::StopModels() { |
| 102 DCHECK(ui_thread_->BelongsToCurrentThread()); | 102 DCHECK(ui_thread_->BelongsToCurrentThread()); |
| 103 sync_client_->GetPersonalDataManager()->RemoveObserver(this); | 103 sync_client_->GetPersonalDataManager()->RemoveObserver(this); |
| 104 } | 104 } |
| 105 | 105 |
| 106 } // namespace browser_sync | 106 } // namespace browser_sync |
| OLD | NEW |