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 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/file_util.h" | 12 #include "base/file_util.h" |
13 #include "base/task.h" | 13 #include "base/task.h" |
14 #include "base/threading/thread_restrictions.h" | 14 #include "base/threading/thread_restrictions.h" |
15 #include "base/tracked.h" | 15 #include "base/tracked.h" |
16 #include "base/utf_string_conversions.h" | 16 #include "base/utf_string_conversions.h" |
17 #include "chrome/browser/net/gaia/token_service.h" | 17 #include "chrome/browser/net/gaia/token_service.h" |
18 #include "chrome/browser/prefs/pref_service.h" | 18 #include "chrome/browser/prefs/pref_service.h" |
19 #include "chrome/browser/profiles/profile.h" | 19 #include "chrome/browser/profiles/profile.h" |
20 #include "chrome/browser/sync/engine/nigori_util.h" | |
21 #include "chrome/browser/sync/engine/syncapi.h" | 20 #include "chrome/browser/sync/engine/syncapi.h" |
22 #include "chrome/browser/sync/glue/autofill_model_associator.h" | 21 #include "chrome/browser/sync/glue/autofill_model_associator.h" |
23 #include "chrome/browser/sync/glue/autofill_profile_model_associator.h" | 22 #include "chrome/browser/sync/glue/autofill_profile_model_associator.h" |
24 #include "chrome/browser/sync/glue/change_processor.h" | 23 #include "chrome/browser/sync/glue/change_processor.h" |
25 #include "chrome/browser/sync/glue/database_model_worker.h" | 24 #include "chrome/browser/sync/glue/database_model_worker.h" |
26 #include "chrome/browser/sync/glue/history_model_worker.h" | 25 #include "chrome/browser/sync/glue/history_model_worker.h" |
27 #include "chrome/browser/sync/glue/http_bridge.h" | 26 #include "chrome/browser/sync/glue/http_bridge.h" |
28 #include "chrome/browser/sync/glue/password_model_worker.h" | 27 #include "chrome/browser/sync/glue/password_model_worker.h" |
29 #include "chrome/browser/sync/glue/sync_backend_host.h" | 28 #include "chrome/browser/sync/glue/sync_backend_host.h" |
30 #include "chrome/browser/sync/js/js_arg_list.h" | 29 #include "chrome/browser/sync/js/js_arg_list.h" |
(...skipping 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1050 } | 1049 } |
1051 | 1050 |
1052 void SyncBackendHost::Core::DeleteSyncDataFolder() { | 1051 void SyncBackendHost::Core::DeleteSyncDataFolder() { |
1053 if (file_util::DirectoryExists(host_->sync_data_folder_path())) { | 1052 if (file_util::DirectoryExists(host_->sync_data_folder_path())) { |
1054 if (!file_util::Delete(host_->sync_data_folder_path(), true)) | 1053 if (!file_util::Delete(host_->sync_data_folder_path(), true)) |
1055 LOG(DFATAL) << "Could not delete the Sync Data folder."; | 1054 LOG(DFATAL) << "Could not delete the Sync Data folder."; |
1056 } | 1055 } |
1057 } | 1056 } |
1058 | 1057 |
1059 } // namespace browser_sync | 1058 } // namespace browser_sync |
OLD | NEW |