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/non_frontend_data_type_controller.h" | 5 #include "chrome/browser/sync/glue/non_frontend_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/logging.h" | 9 #include "base/logging.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
11 #include "chrome/browser/sync/api/sync_error.h" | 11 #include "chrome/browser/sync/api/sync_error.h" |
12 #include "chrome/browser/sync/glue/change_processor.h" | 12 #include "chrome/browser/sync/glue/change_processor.h" |
13 #include "chrome/browser/sync/glue/chrome_report_unrecoverable_error.h" | 13 #include "chrome/browser/sync/glue/chrome_report_unrecoverable_error.h" |
14 #include "chrome/browser/sync/glue/model_associator.h" | 14 #include "chrome/browser/sync/glue/model_associator.h" |
15 #include "chrome/browser/sync/profile_sync_components_factory.h" | 15 #include "chrome/browser/sync/profile_sync_components_factory.h" |
16 #include "chrome/browser/sync/profile_sync_service.h" | 16 #include "chrome/browser/sync/profile_sync_service.h" |
17 #include "chrome/browser/sync/syncable/model_type.h" | |
18 #include "chrome/browser/sync/util/data_type_histogram.h" | |
19 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
| 18 #include "sync/syncable/model_type.h" |
| 19 #include "sync/util/data_type_histogram.h" |
20 | 20 |
21 using content::BrowserThread; | 21 using content::BrowserThread; |
22 | 22 |
23 namespace browser_sync { | 23 namespace browser_sync { |
24 | 24 |
25 NonFrontendDataTypeController::NonFrontendDataTypeController() | 25 NonFrontendDataTypeController::NonFrontendDataTypeController() |
26 : profile_sync_factory_(NULL), | 26 : profile_sync_factory_(NULL), |
27 profile_(NULL), | 27 profile_(NULL), |
28 profile_sync_service_(NULL), | 28 profile_sync_service_(NULL), |
29 state_(NOT_RUNNING), | 29 state_(NOT_RUNNING), |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 ChangeProcessor* NonFrontendDataTypeController::change_processor() const { | 374 ChangeProcessor* NonFrontendDataTypeController::change_processor() const { |
375 return change_processor_.get(); | 375 return change_processor_.get(); |
376 } | 376 } |
377 | 377 |
378 void NonFrontendDataTypeController::set_change_processor( | 378 void NonFrontendDataTypeController::set_change_processor( |
379 ChangeProcessor* change_processor) { | 379 ChangeProcessor* change_processor) { |
380 change_processor_.reset(change_processor); | 380 change_processor_.reset(change_processor); |
381 } | 381 } |
382 | 382 |
383 } // namespace browser_sync | 383 } // namespace browser_sync |
OLD | NEW |