OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/ntp_snippets/sessions/tab_delegate_sync_adapter.h" | 5 #include "components/ntp_snippets/sessions/tab_delegate_sync_adapter.h" |
6 | 6 |
7 #include "components/sync/driver/sync_service.h" | 7 #include "components/sync/driver/sync_service.h" |
8 #include "components/sync_sessions/open_tabs_ui_delegate.h" | 8 #include "components/sync_sessions/open_tabs_ui_delegate.h" |
9 | 9 |
10 using syncer::SyncService; | 10 using syncer::SyncService; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 | 50 |
51 void TabDelegateSyncAdapter::OnSyncConfigurationCompleted() { | 51 void TabDelegateSyncAdapter::OnSyncConfigurationCompleted() { |
52 InvokeCallback(); | 52 InvokeCallback(); |
53 } | 53 } |
54 | 54 |
55 void TabDelegateSyncAdapter::OnForeignSessionUpdated() { | 55 void TabDelegateSyncAdapter::OnForeignSessionUpdated() { |
56 InvokeCallback(); | 56 InvokeCallback(); |
57 } | 57 } |
58 | 58 |
59 void TabDelegateSyncAdapter::InvokeCallback() { | 59 void TabDelegateSyncAdapter::InvokeCallback() { |
60 if (!change_callback_.is_null()) | 60 if (!change_callback_.is_null()) { |
61 change_callback_.Run(); | 61 change_callback_.Run(); |
| 62 } |
62 } | 63 } |
63 | 64 |
64 } // namespace ntp_snippets | 65 } // namespace ntp_snippets |
OLD | NEW |