OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "base/file_util.h" | 6 #include "base/file_util.h" |
7 #include "base/file_version_info.h" | 7 #include "base/file_version_info.h" |
8 #include "base/task.h" | 8 #include "base/task.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "chrome/app/chrome_version_info.h" | 10 #include "chrome/app/chrome_version_info.h" |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 // be in the routing_info map. We set them to group passive, meaning that | 96 // be in the routing_info map. We set them to group passive, meaning that |
97 // updates will be applied, but not dispatched to the UI thread yet. | 97 // updates will be applied, but not dispatched to the UI thread yet. |
98 for (syncable::ModelTypeSet::const_iterator it = types.begin(); | 98 for (syncable::ModelTypeSet::const_iterator it = types.begin(); |
99 it != types.end(); ++it) { | 99 it != types.end(); ++it) { |
100 registrar_.routing_info[(*it)] = GROUP_PASSIVE; | 100 registrar_.routing_info[(*it)] = GROUP_PASSIVE; |
101 } | 101 } |
102 | 102 |
103 core_thread_.message_loop()->PostTask(FROM_HERE, | 103 core_thread_.message_loop()->PostTask(FROM_HERE, |
104 NewRunnableMethod(core_.get(), &SyncBackendHost::Core::DoInitialize, | 104 NewRunnableMethod(core_.get(), &SyncBackendHost::Core::DoInitialize, |
105 Core::DoInitializeOptions( | 105 Core::DoInitializeOptions( |
106 sync_service_url, true, | 106 sync_service_url, lsid.empty(), |
107 new HttpBridgeFactory(baseline_context_getter), | 107 new HttpBridgeFactory(baseline_context_getter), |
108 new HttpBridgeFactory(baseline_context_getter), | 108 new HttpBridgeFactory(baseline_context_getter), |
109 lsid, | 109 lsid, |
110 delete_sync_data_folder, | 110 delete_sync_data_folder, |
111 invalidate_sync_login, | 111 invalidate_sync_login, |
112 invalidate_sync_xmpp_login, | 112 invalidate_sync_xmpp_login, |
113 notification_method))); | 113 notification_method))); |
114 } | 114 } |
115 | 115 |
116 void SyncBackendHost::Authenticate(const std::string& username, | 116 void SyncBackendHost::Authenticate(const std::string& username, |
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
626 } | 626 } |
627 | 627 |
628 void SyncBackendHost::Core::DeleteSyncDataFolder() { | 628 void SyncBackendHost::Core::DeleteSyncDataFolder() { |
629 if (file_util::DirectoryExists(host_->sync_data_folder_path())) { | 629 if (file_util::DirectoryExists(host_->sync_data_folder_path())) { |
630 if (!file_util::Delete(host_->sync_data_folder_path(), true)) | 630 if (!file_util::Delete(host_->sync_data_folder_path(), true)) |
631 LOG(DFATAL) << "Could not delete the Sync Data folder."; | 631 LOG(DFATAL) << "Could not delete the Sync Data folder."; |
632 } | 632 } |
633 } | 633 } |
634 | 634 |
635 } // namespace browser_sync | 635 } // namespace browser_sync |
OLD | NEW |