OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "sync/internal_api/sync_rollback_manager_base.h" | 5 #include "sync/internal_api/sync_rollback_manager_base.h" |
6 | 6 |
7 #include "sync/internal_api/public/base/model_type.h" | 7 #include "sync/internal_api/public/base/model_type.h" |
8 #include "sync/internal_api/public/read_node.h" | 8 #include "sync/internal_api/public/read_node.h" |
9 #include "sync/internal_api/public/read_transaction.h" | 9 #include "sync/internal_api/public/read_transaction.h" |
10 #include "sync/internal_api/public/write_transaction.h" | 10 #include "sync/internal_api/public/write_transaction.h" |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 | 130 |
131 SyncStatus SyncRollbackManagerBase::GetDetailedStatus() const { | 131 SyncStatus SyncRollbackManagerBase::GetDetailedStatus() const { |
132 return SyncStatus(); | 132 return SyncStatus(); |
133 } | 133 } |
134 | 134 |
135 void SyncRollbackManagerBase::SaveChanges() { | 135 void SyncRollbackManagerBase::SaveChanges() { |
136 } | 136 } |
137 | 137 |
138 void SyncRollbackManagerBase::ShutdownOnSyncThread(ShutdownReason reason) { | 138 void SyncRollbackManagerBase::ShutdownOnSyncThread(ShutdownReason reason) { |
139 if (initialized_) { | 139 if (initialized_) { |
140 share_.directory->Close(); | |
141 share_.directory.reset(); | 140 share_.directory.reset(); |
142 initialized_ = false; | 141 initialized_ = false; |
143 } | 142 } |
144 } | 143 } |
145 | 144 |
146 UserShare* SyncRollbackManagerBase::GetUserShare() { | 145 UserShare* SyncRollbackManagerBase::GetUserShare() { |
147 return &share_; | 146 return &share_; |
148 } | 147 } |
149 | 148 |
150 const std::string SyncRollbackManagerBase::cache_guid() { | 149 const std::string SyncRollbackManagerBase::cache_guid() { |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 | 318 |
320 void SyncRollbackManagerBase::UnregisterDirectoryTypeDebugInfoObserver( | 319 void SyncRollbackManagerBase::UnregisterDirectoryTypeDebugInfoObserver( |
321 syncer::TypeDebugInfoObserver* observer) {} | 320 syncer::TypeDebugInfoObserver* observer) {} |
322 | 321 |
323 bool SyncRollbackManagerBase::HasDirectoryTypeDebugInfoObserver( | 322 bool SyncRollbackManagerBase::HasDirectoryTypeDebugInfoObserver( |
324 syncer::TypeDebugInfoObserver* observer) { return false; } | 323 syncer::TypeDebugInfoObserver* observer) { return false; } |
325 | 324 |
326 void SyncRollbackManagerBase::RequestEmitDebugInfo() {} | 325 void SyncRollbackManagerBase::RequestEmitDebugInfo() {} |
327 | 326 |
328 } // namespace syncer | 327 } // namespace syncer |
OLD | NEW |