| 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/typed_url_data_type_controller.h" | 5 #include "chrome/browser/sync/glue/typed_url_data_type_controller.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
| 10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 DCHECK(!BrowserThread::CurrentlyOn(BrowserThread::UI)); | 153 DCHECK(!BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 154 DCHECK_EQ(state(), ASSOCIATING); | 154 DCHECK_EQ(state(), ASSOCIATING); |
| 155 DCHECK(backend_); | 155 DCHECK(backend_); |
| 156 return profile_sync_factory()->CreateTypedUrlSyncComponents( | 156 return profile_sync_factory()->CreateTypedUrlSyncComponents( |
| 157 profile_sync_service(), | 157 profile_sync_service(), |
| 158 backend_, | 158 backend_, |
| 159 this); | 159 this); |
| 160 } | 160 } |
| 161 | 161 |
| 162 void TypedUrlDataTypeController::DisconnectProcessor( | 162 void TypedUrlDataTypeController::DisconnectProcessor( |
| 163 ChangeProcessor* processor) { | 163 sync_driver::ChangeProcessor* processor) { |
| 164 static_cast<TypedUrlChangeProcessor*>(processor)->Disconnect(); | 164 static_cast<TypedUrlChangeProcessor*>(processor)->Disconnect(); |
| 165 } | 165 } |
| 166 | 166 |
| 167 TypedUrlDataTypeController::~TypedUrlDataTypeController() {} | 167 TypedUrlDataTypeController::~TypedUrlDataTypeController() {} |
| 168 | 168 |
| 169 } // namespace browser_sync | 169 } // namespace browser_sync |
| OLD | NEW |