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

Side by Side Diff: components/sync_sessions/sessions_sync_manager.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/sync_sessions/sessions_sync_manager.h" 5 #include "components/sync_sessions/sessions_sync_manager.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/metrics/field_trial.h" 9 #include "base/metrics/field_trial.h"
10 #include "components/sync_driver/glue/synced_window_delegate.h"
11 #include "components/sync_driver/local_device_info_provider.h" 10 #include "components/sync_driver/local_device_info_provider.h"
12 #include "components/sync_driver/sessions/synced_window_delegates_getter.h"
13 #include "components/sync_sessions/sync_sessions_client.h" 11 #include "components/sync_sessions/sync_sessions_client.h"
14 #include "components/sync_sessions/synced_tab_delegate.h" 12 #include "components/sync_sessions/synced_tab_delegate.h"
13 #include "components/sync_sessions/synced_window_delegate.h"
14 #include "components/sync_sessions/synced_window_delegates_getter.h"
15 #include "components/variations/variations_associated_data.h" 15 #include "components/variations/variations_associated_data.h"
16 #include "sync/api/sync_error.h" 16 #include "sync/api/sync_error.h"
17 #include "sync/api/sync_error_factory.h" 17 #include "sync/api/sync_error_factory.h"
18 #include "sync/api/sync_merge_result.h" 18 #include "sync/api/sync_merge_result.h"
19 #include "sync/api/time.h" 19 #include "sync/api/time.h"
20 20
21 using sessions::SerializedNavigationEntry; 21 using sessions::SerializedNavigationEntry;
22 using sync_driver::DeviceInfo; 22 using sync_driver::DeviceInfo;
23 using sync_driver::LocalDeviceInfoProvider; 23 using sync_driver::LocalDeviceInfoProvider;
24 using syncer::SyncChange; 24 using syncer::SyncChange;
(...skipping 1025 matching lines...) Expand 10 before | Expand all | Expand 10 after
1050 << session_age_in_days << ", deleting."; 1050 << session_age_in_days << ", deleting.";
1051 DeleteForeignSessionInternal(session_tag, &changes); 1051 DeleteForeignSessionInternal(session_tag, &changes);
1052 } 1052 }
1053 } 1053 }
1054 1054
1055 if (!changes.empty()) 1055 if (!changes.empty())
1056 sync_processor_->ProcessSyncChanges(FROM_HERE, changes); 1056 sync_processor_->ProcessSyncChanges(FROM_HERE, changes);
1057 } 1057 }
1058 1058
1059 }; // namespace browser_sync 1059 }; // namespace browser_sync
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698