Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(221)

Side by Side Diff: sync/internal_api/sync_rollback_manager_base.cc

Issue 1057663002: [Sync] Eliminate friends from Directory by exposing kernel via accessor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes from review. Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | sync/syncable/directory.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | sync/syncable/directory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698