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

Unified Diff: chrome/browser/sessions/session_types.cc

Issue 11098002: [Sync] Add a new global_id field to sync_pb::TabNavigation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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/sessions/session_types.cc
diff --git a/chrome/browser/sessions/session_types.cc b/chrome/browser/sessions/session_types.cc
index 183b3a90d54ad386be8772babc83af166e5080c3..f0d116211f3a3ce7982c4279a357f14877229724 100644
--- a/chrome/browser/sessions/session_types.cc
+++ b/chrome/browser/sessions/session_types.cc
@@ -414,9 +414,8 @@ sync_pb::TabNavigation TabNavigation::ToSyncData() const {
(transition_type_ & content::PAGE_TRANSITION_CHAIN_END) != 0);
sync_data.set_unique_id(unique_id_);
- // TODO(akalin): Don't lose resolution, i.e. define a new timestamp
- // field with microsecond resolution and use that.
- sync_data.set_timestamp(syncer::TimeToProtoTime(timestamp_));
+ sync_data.set_timestamp_deprecated(syncer::TimeToProtoTime(timestamp_));
+ sync_data.set_local_timestamp(timestamp_.ToInternalValue());
return sync_data;
}
« no previous file with comments | « no previous file | chrome/browser/sessions/session_types_unittest.cc » ('j') | sync/protocol/session_specifics.proto » ('J')

Powered by Google App Engine
This is Rietveld 408576698