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

Unified Diff: chrome/browser/sync/sessions2/sessions_sync_manager.cc

Issue 217063005: Separate SyncData methods into three groups, local, remote, and common. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@syncapi
Patch Set: Remove AsLocal and AsRemote methods from SyncData. Created 6 years, 9 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/sessions2/sessions_sync_manager.cc
diff --git a/chrome/browser/sync/sessions2/sessions_sync_manager.cc b/chrome/browser/sync/sessions2/sessions_sync_manager.cc
index 58be18634e106606c67f5347d09279471f31d3b4..dcb5fd3c55895c4e335dc4ce662fd61acfb485e5 100644
--- a/chrome/browser/sync/sessions2/sessions_sync_manager.cc
+++ b/chrome/browser/sync/sessions2/sessions_sync_manager.cc
@@ -488,7 +488,7 @@ syncer::SyncError SessionsSyncManager::ProcessSyncChanges(
return syncer::SyncError();
}
UpdateTrackerWithForeignSession(
- session, it->sync_data().GetRemoteModifiedTime());
+ session, syncer::SyncDataRemote(it->sync_data()).GetModifiedTime());
break;
default:
NOTREACHED() << "Processing sync changes failed, unknown change type.";
@@ -541,7 +541,8 @@ bool SessionsSyncManager::InitFromSyncModel(
if (tombstone.IsValid())
new_changes->push_back(tombstone);
} else if (specifics.session_tag() != current_machine_tag()) {
- UpdateTrackerWithForeignSession(specifics, data.GetRemoteModifiedTime());
+ UpdateTrackerWithForeignSession(
+ specifics, syncer::SyncDataRemote(data).GetModifiedTime());
} else {
// This is previously stored local session information.
if (specifics.has_header() && !found_current_header) {

Powered by Google App Engine
This is Rietveld 408576698