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

Side by Side Diff: components/drive/service/fake_drive_service.cc

Issue 2421083002: Replace FOR_EACH_OBSERVER in components/drive with range-based for (Closed)
Patch Set: 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
« no previous file with comments | « components/drive/service/drive_api_service.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/drive/service/fake_drive_service.h" 5 #include "components/drive/service/fake_drive_service.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 1775 matching lines...) Expand 10 before | Expand all | Expand 10 after
1786 1786
1787 std::unique_ptr<BatchRequestConfiguratorInterface> 1787 std::unique_ptr<BatchRequestConfiguratorInterface>
1788 FakeDriveService::StartBatchRequest() { 1788 FakeDriveService::StartBatchRequest() {
1789 DCHECK(thread_checker_.CalledOnValidThread()); 1789 DCHECK(thread_checker_.CalledOnValidThread());
1790 1790
1791 NOTREACHED(); 1791 NOTREACHED();
1792 return std::unique_ptr<BatchRequestConfiguratorInterface>(); 1792 return std::unique_ptr<BatchRequestConfiguratorInterface>();
1793 } 1793 }
1794 1794
1795 void FakeDriveService::NotifyObservers() { 1795 void FakeDriveService::NotifyObservers() {
1796 FOR_EACH_OBSERVER(ChangeObserver, change_observers_, OnNewChangeAvailable()); 1796 for (auto& observer : change_observers_)
1797 observer.OnNewChangeAvailable();
1797 } 1798 }
1798 1799
1799 } // namespace drive 1800 } // namespace drive
OLDNEW
« no previous file with comments | « components/drive/service/drive_api_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698