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

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: 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..9576952a71052c67d0eb5fe194d3cd61584a110d 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, it->sync_data().remote().GetRemoteModifiedTime());
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,
+ data.remote().GetRemoteModifiedTime());
} else {
// This is previously stored local session information.
if (specifics.has_header() && !found_current_header) {

Powered by Google App Engine
This is Rietveld 408576698