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

Side by Side Diff: components/sync/driver/generic_change_processor.cc

Issue 2424673002: Remove usage of FOR_EACH_OBSERVER macro in components/sync (Closed)
Patch Set: blank line before return Created 4 years, 2 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
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 "components/sync/driver/generic_change_processor.h" 5 #include "components/sync/driver/generic_change_processor.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <utility> 10 #include <utility>
(...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after
686 trans.GetAttachmentIdsToUpload(type_, &ids); 686 trans.GetAttachmentIdsToUpload(type_, &ids);
687 } 687 }
688 if (!ids.empty()) { 688 if (!ids.empty()) {
689 attachment_service_->UploadAttachments(ids); 689 attachment_service_->UploadAttachments(ids);
690 } 690 }
691 } 691 }
692 692
693 void GenericChangeProcessor::NotifyLocalChangeObservers( 693 void GenericChangeProcessor::NotifyLocalChangeObservers(
694 const syncable::Entry* current_entry, 694 const syncable::Entry* current_entry,
695 const SyncChange& change) { 695 const SyncChange& change) {
696 FOR_EACH_OBSERVER(LocalChangeObserver, local_change_observers_, 696 for (auto& observer : local_change_observers_)
697 OnLocalChange(current_entry, change)); 697 observer.OnLocalChange(current_entry, change);
698 } 698 }
699 699
700 std::unique_ptr<AttachmentService> 700 std::unique_ptr<AttachmentService>
701 GenericChangeProcessor::GetAttachmentService() const { 701 GenericChangeProcessor::GetAttachmentService() const {
702 return std::unique_ptr<AttachmentService>( 702 return std::unique_ptr<AttachmentService>(
703 new AttachmentServiceProxy(attachment_service_proxy_)); 703 new AttachmentServiceProxy(attachment_service_proxy_));
704 } 704 }
705 705
706 } // namespace syncer 706 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/driver/backend_migrator.cc ('k') | components/sync/driver/sync_error_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698