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

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

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 6 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 | « sync/internal_api/sync_rollback_manager_base.h ('k') | sync/js/sync_js_controller.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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 entry.PutUniqueServerTag(folder); 302 entry.PutUniqueServerTag(folder);
303 entry.PutNonUniqueName(folder); 303 entry.PutNonUniqueName(folder);
304 entry.PutIsDel(false); 304 entry.PutIsDel(false);
305 entry.PutIsDir(true); 305 entry.PutIsDir(true);
306 306
307 sync_pb::EntitySpecifics specifics; 307 sync_pb::EntitySpecifics specifics;
308 AddDefaultFieldValue(BOOKMARKS, &specifics); 308 AddDefaultFieldValue(BOOKMARKS, &specifics);
309 entry.PutSpecifics(specifics); 309 entry.PutSpecifics(specifics);
310 } 310 }
311 311
312 ObserverList<SyncManager::Observer>* SyncRollbackManagerBase::GetObservers() { 312 base::ObserverList<SyncManager::Observer>*
313 SyncRollbackManagerBase::GetObservers() {
313 return &observers_; 314 return &observers_;
314 } 315 }
315 316
316 void SyncRollbackManagerBase::RegisterDirectoryTypeDebugInfoObserver( 317 void SyncRollbackManagerBase::RegisterDirectoryTypeDebugInfoObserver(
317 syncer::TypeDebugInfoObserver* observer) {} 318 syncer::TypeDebugInfoObserver* observer) {}
318 319
319 void SyncRollbackManagerBase::UnregisterDirectoryTypeDebugInfoObserver( 320 void SyncRollbackManagerBase::UnregisterDirectoryTypeDebugInfoObserver(
320 syncer::TypeDebugInfoObserver* observer) {} 321 syncer::TypeDebugInfoObserver* observer) {}
321 322
322 bool SyncRollbackManagerBase::HasDirectoryTypeDebugInfoObserver( 323 bool SyncRollbackManagerBase::HasDirectoryTypeDebugInfoObserver(
323 syncer::TypeDebugInfoObserver* observer) { return false; } 324 syncer::TypeDebugInfoObserver* observer) { return false; }
324 325
325 void SyncRollbackManagerBase::RequestEmitDebugInfo() {} 326 void SyncRollbackManagerBase::RequestEmitDebugInfo() {}
326 327
327 } // namespace syncer 328 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/internal_api/sync_rollback_manager_base.h ('k') | sync/js/sync_js_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698