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

Side by Side Diff: chrome/browser/sync/glue/synced_tab_delegate_android.cc

Issue 1443453002: [Sync] Move sessions files from sync_driver to sync_sessions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove ui/gfx deps. Created 5 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chrome/browser/sync/glue/synced_tab_delegate_android.h" 5 #include "chrome/browser/sync/glue/synced_tab_delegate_android.h"
6 6
7 #include "base/memory/ref_counted.h" 7 #include "base/memory/ref_counted.h"
8 #include "chrome/browser/android/tab_android.h" 8 #include "chrome/browser/android/tab_android.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/sync/glue/synced_window_delegates_getter_android.h" 10 #include "chrome/browser/sync/glue/synced_window_delegates_getter_android.h"
11 #include "chrome/browser/ui/sync/tab_contents_synced_tab_delegate.h" 11 #include "chrome/browser/ui/sync/tab_contents_synced_tab_delegate.h"
12 #include "components/sync_driver/glue/synced_window_delegate.h" 12 #include "components/sync_sessions/synced_window_delegate.h"
13 #include "content/public/browser/navigation_entry.h" 13 #include "content/public/browser/navigation_entry.h"
14 #include "content/public/browser/web_contents.h" 14 #include "content/public/browser/web_contents.h"
15 15
16 using content::NavigationEntry; 16 using content::NavigationEntry;
17 17
18 namespace browser_sync { 18 namespace browser_sync {
19 SyncedTabDelegateAndroid::SyncedTabDelegateAndroid(TabAndroid* tab_android) 19 SyncedTabDelegateAndroid::SyncedTabDelegateAndroid(TabAndroid* tab_android)
20 : web_contents_(nullptr), 20 : web_contents_(nullptr),
21 tab_android_(tab_android), 21 tab_android_(tab_android),
22 tab_contents_delegate_(nullptr) { 22 tab_contents_delegate_(nullptr) {
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 void SyncedTabDelegateAndroid::SetSyncId(int sync_id) { 103 void SyncedTabDelegateAndroid::SetSyncId(int sync_id) {
104 tab_android_->SetSyncId(sync_id); 104 tab_android_->SetSyncId(sync_id);
105 } 105 }
106 106
107 bool SyncedTabDelegateAndroid::ShouldSync( 107 bool SyncedTabDelegateAndroid::ShouldSync(
108 sync_sessions::SyncSessionsClient* sessions_client) { 108 sync_sessions::SyncSessionsClient* sessions_client) {
109 return tab_contents_delegate_->ShouldSync(sessions_client); 109 return tab_contents_delegate_->ShouldSync(sessions_client);
110 } 110 }
111 111
112 } // namespace browser_sync 112 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/session_sync_test_helper.cc ('k') | chrome/browser/sync/glue/synced_window_delegate_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698