| OLD | NEW |
| 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 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
| 11 #include "base/metrics/histogram_macros.h" | 11 #include "base/metrics/histogram_macros.h" |
| 12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
| 13 #include "components/sync/api/sync_error.h" | 13 #include "components/sync/api/sync_error.h" |
| 14 #include "components/sync/api/sync_error_factory.h" | 14 #include "components/sync/api/sync_error_factory.h" |
| 15 #include "components/sync/api/sync_merge_result.h" | 15 #include "components/sync/api/sync_merge_result.h" |
| 16 #include "components/sync/api/time.h" | 16 #include "components/sync/api/time.h" |
| 17 #include "components/sync/driver/local_device_info_provider.h" |
| 17 #include "components/sync/syncable/syncable_util.h" | 18 #include "components/sync/syncable/syncable_util.h" |
| 18 #include "components/sync_driver/local_device_info_provider.h" | |
| 19 #include "components/sync_sessions/sync_sessions_client.h" | 19 #include "components/sync_sessions/sync_sessions_client.h" |
| 20 #include "components/sync_sessions/synced_tab_delegate.h" | 20 #include "components/sync_sessions/synced_tab_delegate.h" |
| 21 #include "components/sync_sessions/synced_window_delegate.h" | 21 #include "components/sync_sessions/synced_window_delegate.h" |
| 22 #include "components/sync_sessions/synced_window_delegates_getter.h" | 22 #include "components/sync_sessions/synced_window_delegates_getter.h" |
| 23 #include "components/variations/variations_associated_data.h" | 23 #include "components/variations/variations_associated_data.h" |
| 24 | 24 |
| 25 using sessions::SerializedNavigationEntry; | 25 using sessions::SerializedNavigationEntry; |
| 26 using sync_driver::DeviceInfo; | 26 using sync_driver::DeviceInfo; |
| 27 using sync_driver::LocalDeviceInfoProvider; | 27 using sync_driver::LocalDeviceInfoProvider; |
| 28 using syncer::SyncChange; | 28 using syncer::SyncChange; |
| (...skipping 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1101 } | 1101 } |
| 1102 | 1102 |
| 1103 // static | 1103 // static |
| 1104 std::string SessionsSyncManager::TagHashFromSpecifics( | 1104 std::string SessionsSyncManager::TagHashFromSpecifics( |
| 1105 const sync_pb::SessionSpecifics& specifics) { | 1105 const sync_pb::SessionSpecifics& specifics) { |
| 1106 return syncer::syncable::GenerateSyncableHash(syncer::SESSIONS, | 1106 return syncer::syncable::GenerateSyncableHash(syncer::SESSIONS, |
| 1107 TagFromSpecifics(specifics)); | 1107 TagFromSpecifics(specifics)); |
| 1108 } | 1108 } |
| 1109 | 1109 |
| 1110 }; // namespace browser_sync | 1110 }; // namespace browser_sync |
| OLD | NEW |