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

Side by Side Diff: ios/chrome/browser/sync/ios_chrome_synced_tab_delegate.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: Run formatter. 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "ios/chrome/browser/sync/ios_chrome_synced_tab_delegate.h" 5 #include "ios/chrome/browser/sync/ios_chrome_synced_tab_delegate.h"
6 6
7 #include "base/memory/ref_counted.h" 7 #include "base/memory/ref_counted.h"
8 #include "components/sessions/ios/ios_serialized_navigation_builder.h" 8 #include "components/sessions/ios/ios_serialized_navigation_builder.h"
9 #include "components/sync_driver/glue/synced_window_delegate.h"
10 #include "components/sync_driver/sessions/synced_window_delegates_getter.h"
11 #include "components/sync_sessions/sync_sessions_client.h" 9 #include "components/sync_sessions/sync_sessions_client.h"
10 #include "components/sync_sessions/synced_window_delegate.h"
11 #include "components/sync_sessions/synced_window_delegates_getter.h"
12 #include "ios/chrome/browser/sessions/ios_chrome_session_tab_helper.h" 12 #include "ios/chrome/browser/sessions/ios_chrome_session_tab_helper.h"
13 #include "ios/web/public/favicon_status.h" 13 #include "ios/web/public/favicon_status.h"
14 #include "ios/web/public/navigation_item.h" 14 #include "ios/web/public/navigation_item.h"
15 #include "ios/web/public/navigation_manager.h" 15 #include "ios/web/public/navigation_manager.h"
16 #include "ios/web/public/web_state/web_state.h" 16 #include "ios/web/public/web_state/web_state.h"
17 17
18 using web::NavigationItem; 18 using web::NavigationItem;
19 19
20 DEFINE_WEB_STATE_USER_DATA_KEY(IOSChromeSyncedTabDelegate); 20 DEFINE_WEB_STATE_USER_DATA_KEY(IOSChromeSyncedTabDelegate);
21 21
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 for (int i = 0; i < entry_count; ++i) { 123 for (int i = 0; i < entry_count; ++i) {
124 const GURL& virtual_url = GetVirtualURLAtIndex(i); 124 const GURL& virtual_url = GetVirtualURLAtIndex(i);
125 if (!virtual_url.is_valid()) 125 if (!virtual_url.is_valid())
126 continue; 126 continue;
127 127
128 if (sessions_client->ShouldSyncURL(virtual_url)) 128 if (sessions_client->ShouldSyncURL(virtual_url))
129 return true; 129 return true;
130 } 130 }
131 return false; 131 return false;
132 } 132 }
OLDNEW
« components/sync_driver.gypi ('K') | « components/sync_sessions/tab_node_pool_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698