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

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

Issue 437683002: Wire sync shutdown reason from PSS all the way down to sync manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
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/internal_components_factory.h" 8 #include "sync/internal_api/public/internal_components_factory.h"
9 #include "sync/internal_api/public/read_node.h" 9 #include "sync/internal_api/public/read_node.h"
10 #include "sync/internal_api/public/read_transaction.h" 10 #include "sync/internal_api/public/read_transaction.h"
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 observers_.RemoveObserver(observer); 131 observers_.RemoveObserver(observer);
132 } 132 }
133 133
134 SyncStatus SyncRollbackManagerBase::GetDetailedStatus() const { 134 SyncStatus SyncRollbackManagerBase::GetDetailedStatus() const {
135 return SyncStatus(); 135 return SyncStatus();
136 } 136 }
137 137
138 void SyncRollbackManagerBase::SaveChanges() { 138 void SyncRollbackManagerBase::SaveChanges() {
139 } 139 }
140 140
141 void SyncRollbackManagerBase::ShutdownOnSyncThread() { 141 void SyncRollbackManagerBase::ShutdownOnSyncThread(ShutdownReason reason) {
142 if (initialized_) { 142 if (initialized_) {
143 SaveChanges(); 143 SaveChanges();
144 share_.directory->Close(); 144 share_.directory->Close();
145 share_.directory.reset(); 145 share_.directory.reset();
146 initialized_ = false; 146 initialized_ = false;
147 } 147 }
148 } 148 }
149 149
150 UserShare* SyncRollbackManagerBase::GetUserShare() { 150 UserShare* SyncRollbackManagerBase::GetUserShare() {
151 return &share_; 151 return &share_;
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 322
323 void SyncRollbackManagerBase::UnregisterDirectoryTypeDebugInfoObserver( 323 void SyncRollbackManagerBase::UnregisterDirectoryTypeDebugInfoObserver(
324 syncer::TypeDebugInfoObserver* observer) {} 324 syncer::TypeDebugInfoObserver* observer) {}
325 325
326 bool SyncRollbackManagerBase::HasDirectoryTypeDebugInfoObserver( 326 bool SyncRollbackManagerBase::HasDirectoryTypeDebugInfoObserver(
327 syncer::TypeDebugInfoObserver* observer) { return false; } 327 syncer::TypeDebugInfoObserver* observer) { return false; }
328 328
329 void SyncRollbackManagerBase::RequestEmitDebugInfo() {} 329 void SyncRollbackManagerBase::RequestEmitDebugInfo() {}
330 330
331 } // namespace syncer 331 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/internal_api/sync_rollback_manager_base.h ('k') | sync/internal_api/sync_rollback_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698