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

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

Issue 263273002: Add a ClientAction used by SyncRollbackManager to notify PSS that rollback is (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 entry.PutUniqueServerTag(folder); 325 entry.PutUniqueServerTag(folder);
326 entry.PutNonUniqueName(folder); 326 entry.PutNonUniqueName(folder);
327 entry.PutIsDel(false); 327 entry.PutIsDel(false);
328 entry.PutIsDir(true); 328 entry.PutIsDir(true);
329 329
330 sync_pb::EntitySpecifics specifics; 330 sync_pb::EntitySpecifics specifics;
331 AddDefaultFieldValue(BOOKMARKS, &specifics); 331 AddDefaultFieldValue(BOOKMARKS, &specifics);
332 entry.PutSpecifics(specifics); 332 entry.PutSpecifics(specifics);
333 } 333 }
334 334
335 ObserverList<SyncManager::Observer>* SyncRollbackManagerBase::GetObservers() {
336 return &observers_;
337 }
338
335 void SyncRollbackManagerBase::RegisterDirectoryTypeDebugInfoObserver( 339 void SyncRollbackManagerBase::RegisterDirectoryTypeDebugInfoObserver(
336 syncer::TypeDebugInfoObserver* observer) {} 340 syncer::TypeDebugInfoObserver* observer) {}
337 341
338 void SyncRollbackManagerBase::UnregisterDirectoryTypeDebugInfoObserver( 342 void SyncRollbackManagerBase::UnregisterDirectoryTypeDebugInfoObserver(
339 syncer::TypeDebugInfoObserver* observer) {} 343 syncer::TypeDebugInfoObserver* observer) {}
340 344
341 bool SyncRollbackManagerBase::HasDirectoryTypeDebugInfoObserver( 345 bool SyncRollbackManagerBase::HasDirectoryTypeDebugInfoObserver(
342 syncer::TypeDebugInfoObserver* observer) { return false; } 346 syncer::TypeDebugInfoObserver* observer) { return false; }
343 347
344 void SyncRollbackManagerBase::RequestEmitDebugInfo() {} 348 void SyncRollbackManagerBase::RequestEmitDebugInfo() {}
345 349
346 } // namespace syncer 350 } // 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