| 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/theme_data_type_controller.h" | 5 #include "chrome/browser/sync/glue/theme_data_type_controller.h" |
| 6 | 6 |
| 7 #include "chrome/browser/profiles/profile.h" | 7 #include "chrome/browser/profiles/profile.h" |
| 8 #include "chrome/browser/sync/glue/chrome_report_unrecoverable_error.h" | 8 #include "chrome/browser/sync/glue/chrome_report_unrecoverable_error.h" |
| 9 #include "content/public/browser/browser_thread.h" | 9 #include "content/public/browser/browser_thread.h" |
| 10 #include "extensions/browser/extension_system.h" | 10 #include "extensions/browser/extension_system.h" |
| 11 | 11 |
| 12 using content::BrowserThread; | 12 using content::BrowserThread; |
| 13 | 13 |
| 14 namespace browser_sync { | 14 namespace browser_sync { |
| 15 | 15 |
| 16 ThemeDataTypeController::ThemeDataTypeController( | 16 ThemeDataTypeController::ThemeDataTypeController( |
| 17 SyncApiComponentFactory* sync_factory, | 17 sync_driver::SyncApiComponentFactory* sync_factory, |
| 18 Profile* profile, | 18 Profile* profile, |
| 19 const DisableTypeCallback& disable_callback) | 19 const DisableTypeCallback& disable_callback) |
| 20 : UIDataTypeController( | 20 : UIDataTypeController( |
| 21 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), | 21 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), |
| 22 base::Bind(&ChromeReportUnrecoverableError), | 22 base::Bind(&ChromeReportUnrecoverableError), |
| 23 disable_callback, | 23 disable_callback, |
| 24 syncer::THEMES, | 24 syncer::THEMES, |
| 25 sync_factory), | 25 sync_factory), |
| 26 profile_(profile) { | 26 profile_(profile) { |
| 27 } | 27 } |
| 28 | 28 |
| 29 ThemeDataTypeController::~ThemeDataTypeController() {} | 29 ThemeDataTypeController::~ThemeDataTypeController() {} |
| 30 | 30 |
| 31 bool ThemeDataTypeController::StartModels() { | 31 bool ThemeDataTypeController::StartModels() { |
| 32 extensions::ExtensionSystem::Get(profile_)->InitForRegularProfile(true); | 32 extensions::ExtensionSystem::Get(profile_)->InitForRegularProfile(true); |
| 33 return true; | 33 return true; |
| 34 } | 34 } |
| 35 | 35 |
| 36 } // namespace browser_sync | 36 } // namespace browser_sync |
| OLD | NEW |