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

Side by Side Diff: components/sync_sessions/sessions_sync_manager.cc

Issue 2502253003: [Sync] Move GenerateSyncableHash to base. (Closed)
Patch Set: Keep full syncable/ DEP. Created 4 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
« no previous file with comments | « components/sync/test/fake_server/unique_client_entity.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include <utility> 8 #include <utility>
9 9
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
11 #include "base/metrics/field_trial.h" 11 #include "base/metrics/field_trial.h"
12 #include "base/metrics/histogram_macros.h" 12 #include "base/metrics/histogram_macros.h"
13 #include "build/build_config.h" 13 #include "build/build_config.h"
14 #include "components/sync/base/hash_util.h"
14 #include "components/sync/device_info/local_device_info_provider.h" 15 #include "components/sync/device_info/local_device_info_provider.h"
15 #include "components/sync/model/sync_error.h" 16 #include "components/sync/model/sync_error.h"
16 #include "components/sync/model/sync_error_factory.h" 17 #include "components/sync/model/sync_error_factory.h"
17 #include "components/sync/model/sync_merge_result.h" 18 #include "components/sync/model/sync_merge_result.h"
18 #include "components/sync/model/time.h" 19 #include "components/sync/model/time.h"
19 #include "components/sync/syncable/syncable_util.h"
20 #include "components/sync_sessions/sync_sessions_client.h" 20 #include "components/sync_sessions/sync_sessions_client.h"
21 #include "components/sync_sessions/synced_tab_delegate.h" 21 #include "components/sync_sessions/synced_tab_delegate.h"
22 #include "components/sync_sessions/synced_window_delegate.h" 22 #include "components/sync_sessions/synced_window_delegate.h"
23 #include "components/sync_sessions/synced_window_delegates_getter.h" 23 #include "components/sync_sessions/synced_window_delegates_getter.h"
24 #include "components/variations/variations_associated_data.h" 24 #include "components/variations/variations_associated_data.h"
25 25
26 using sessions::SerializedNavigationEntry; 26 using sessions::SerializedNavigationEntry;
27 using syncer::DeviceInfo; 27 using syncer::DeviceInfo;
28 using syncer::LocalDeviceInfoProvider; 28 using syncer::LocalDeviceInfoProvider;
29 using syncer::SyncChange; 29 using syncer::SyncChange;
(...skipping 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after
1127 } 1127 }
1128 } 1128 }
1129 1129
1130 if (!changes.empty()) 1130 if (!changes.empty())
1131 sync_processor_->ProcessSyncChanges(FROM_HERE, changes); 1131 sync_processor_->ProcessSyncChanges(FROM_HERE, changes);
1132 } 1132 }
1133 1133
1134 // static 1134 // static
1135 std::string SessionsSyncManager::TagHashFromSpecifics( 1135 std::string SessionsSyncManager::TagHashFromSpecifics(
1136 const sync_pb::SessionSpecifics& specifics) { 1136 const sync_pb::SessionSpecifics& specifics) {
1137 return syncer::syncable::GenerateSyncableHash(syncer::SESSIONS, 1137 return syncer::GenerateSyncableHash(syncer::SESSIONS,
1138 TagFromSpecifics(specifics)); 1138 TagFromSpecifics(specifics));
1139 } 1139 }
1140 1140
1141 }; // namespace sync_sessions 1141 }; // namespace sync_sessions
OLDNEW
« no previous file with comments | « components/sync/test/fake_server/unique_client_entity.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698