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/sync_error_controller.h" | 5 #include "components/sync/driver/sync_error_controller.h" |
6 | 6 |
7 #include "components/sync/driver/sync_service.h" | 7 #include "components/sync/driver/sync_service.h" |
8 | 8 |
9 namespace syncer { | 9 namespace syncer { |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 } | 21 } |
22 | 22 |
23 void SyncErrorController::AddObserver(Observer* observer) { | 23 void SyncErrorController::AddObserver(Observer* observer) { |
24 observer_list_.AddObserver(observer); | 24 observer_list_.AddObserver(observer); |
25 } | 25 } |
26 | 26 |
27 void SyncErrorController::RemoveObserver(Observer* observer) { | 27 void SyncErrorController::RemoveObserver(Observer* observer) { |
28 observer_list_.RemoveObserver(observer); | 28 observer_list_.RemoveObserver(observer); |
29 } | 29 } |
30 | 30 |
31 void SyncErrorController::OnStateChanged() { | 31 void SyncErrorController::OnStateChanged(syncer::SyncService* sync) { |
32 for (auto& observer : observer_list_) | 32 for (auto& observer : observer_list_) |
33 observer.OnErrorChanged(); | 33 observer.OnErrorChanged(); |
34 } | 34 } |
35 | 35 |
36 } // namespace syncer | 36 } // namespace syncer |
OLD | NEW |