| 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 "build/build_config.h" | 5 #include "build/build_config.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <map> |
| 8 | 9 |
| 9 #include "base/bind.h" | 10 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 11 #include "base/command_line.h" |
| 11 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 12 #include "base/file_util.h" | 13 #include "base/file_util.h" |
| 13 #include "base/task.h" | 14 #include "base/task.h" |
| 14 #include "base/threading/thread_restrictions.h" | 15 #include "base/threading/thread_restrictions.h" |
| 15 #include "base/tracked.h" | 16 #include "base/tracked.h" |
| 16 #include "base/utf_string_conversions.h" | 17 #include "base/utf_string_conversions.h" |
| 17 #include "chrome/browser/net/gaia/token_service.h" | 18 #include "chrome/browser/net/gaia/token_service.h" |
| 18 #include "chrome/browser/prefs/pref_service.h" | 19 #include "chrome/browser/prefs/pref_service.h" |
| 19 #include "chrome/browser/profiles/profile.h" | 20 #include "chrome/browser/profiles/profile.h" |
| 20 #include "chrome/browser/sync/engine/syncapi.h" | |
| 21 #include "chrome/browser/sync/glue/autofill_model_associator.h" | 21 #include "chrome/browser/sync/glue/autofill_model_associator.h" |
| 22 #include "chrome/browser/sync/glue/autofill_profile_model_associator.h" | 22 #include "chrome/browser/sync/glue/autofill_profile_model_associator.h" |
| 23 #include "chrome/browser/sync/glue/change_processor.h" | 23 #include "chrome/browser/sync/glue/change_processor.h" |
| 24 #include "chrome/browser/sync/glue/database_model_worker.h" | 24 #include "chrome/browser/sync/glue/database_model_worker.h" |
| 25 #include "chrome/browser/sync/glue/history_model_worker.h" | 25 #include "chrome/browser/sync/glue/history_model_worker.h" |
| 26 #include "chrome/browser/sync/glue/http_bridge.h" | 26 #include "chrome/browser/sync/glue/http_bridge.h" |
| 27 #include "chrome/browser/sync/glue/password_model_worker.h" | 27 #include "chrome/browser/sync/glue/password_model_worker.h" |
| 28 #include "chrome/browser/sync/glue/sync_backend_host.h" | 28 #include "chrome/browser/sync/glue/sync_backend_host.h" |
| 29 #include "chrome/browser/sync/internal_api/base_transaction.h" |
| 30 #include "chrome/browser/sync/internal_api/sync_manager.h" |
| 29 #include "chrome/browser/sync/js/js_arg_list.h" | 31 #include "chrome/browser/sync/js/js_arg_list.h" |
| 30 #include "chrome/browser/sync/js/js_event_details.h" | 32 #include "chrome/browser/sync/js/js_event_details.h" |
| 31 #include "chrome/browser/sync/js/js_event_handler.h" | 33 #include "chrome/browser/sync/js/js_event_handler.h" |
| 32 #include "chrome/browser/sync/notifier/sync_notifier.h" | 34 #include "chrome/browser/sync/notifier/sync_notifier.h" |
| 33 #include "chrome/browser/sync/sessions/session_state.h" | 35 #include "chrome/browser/sync/sessions/session_state.h" |
| 34 // TODO(tim): Remove this! We should have a syncapi pass-thru instead. | 36 // TODO(tim): Remove this! We should have a syncapi pass-thru instead. |
| 35 #include "chrome/browser/sync/syncable/directory_manager.h" // Cryptographer. | 37 #include "chrome/browser/sync/syncable/directory_manager.h" // Cryptographer. |
| 36 #include "chrome/browser/sync/syncable/model_type.h" | 38 #include "chrome/browser/sync/syncable/model_type.h" |
| 37 #include "chrome/common/chrome_notification_types.h" | 39 #include "chrome/common/chrome_notification_types.h" |
| 38 #include "chrome/common/chrome_switches.h" | 40 #include "chrome/common/chrome_switches.h" |
| (...skipping 1010 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1049 } | 1051 } |
| 1050 | 1052 |
| 1051 void SyncBackendHost::Core::DeleteSyncDataFolder() { | 1053 void SyncBackendHost::Core::DeleteSyncDataFolder() { |
| 1052 if (file_util::DirectoryExists(host_->sync_data_folder_path())) { | 1054 if (file_util::DirectoryExists(host_->sync_data_folder_path())) { |
| 1053 if (!file_util::Delete(host_->sync_data_folder_path(), true)) | 1055 if (!file_util::Delete(host_->sync_data_folder_path(), true)) |
| 1054 LOG(DFATAL) << "Could not delete the Sync Data folder."; | 1056 LOG(DFATAL) << "Could not delete the Sync Data folder."; |
| 1055 } | 1057 } |
| 1056 } | 1058 } |
| 1057 | 1059 |
| 1058 } // namespace browser_sync | 1060 } // namespace browser_sync |
| OLD | NEW |