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

Side by Side Diff: components/ntp_snippets/sessions/tab_delegate_sync_adapter.cc

Issue 2520853002: [NTP] Cleanup: add brackets in components/ntp_snippets. [2/2] (Closed)
Patch Set: "else if". Created 4 years, 1 month 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 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698