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

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

Issue 2388673002: Revert of [Sync] Move //components/sync to the syncer namespace. (patchset #5 id:40001 of https://co (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
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 sync_driver::SyncService;
11 using sync_sessions::OpenTabsUIDelegate; 11 using sync_sessions::OpenTabsUIDelegate;
12 12
13 namespace ntp_snippets { 13 namespace ntp_snippets {
14 14
15 TabDelegateSyncAdapter::TabDelegateSyncAdapter(SyncService* sync_service) 15 TabDelegateSyncAdapter::TabDelegateSyncAdapter(SyncService* sync_service)
16 : sync_service_(sync_service) { 16 : sync_service_(sync_service) {
17 sync_service_->AddObserver(this); 17 sync_service_->AddObserver(this);
18 } 18 }
19 19
20 TabDelegateSyncAdapter::~TabDelegateSyncAdapter() { 20 TabDelegateSyncAdapter::~TabDelegateSyncAdapter() {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 } // namespace ntp_snippets 64 } // namespace ntp_snippets
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698