| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |