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

Issue 10125002: [Sync] Add per-navigation timestamps/unique ids to tab sync. (Closed)

Created:
8 years, 8 months ago by Nicolas Zea
Modified:
8 years, 8 months ago
CC:
chromium-reviews, marja+watch_chromium.org, ncarter (slow), akalin, tim (not reviewing), Raghu Simha, Raz Mathias
Visibility:
Public.

Description

[Sync] Add per-navigation timestamps/unique ids to tab sync. A navigation's timestamps are updated only if the navigation is new or if the user recently moved back/foward to the navigation entry. Otherwise, we preserve old timestamps. To do this, we switch to using SyncedTabNavigations, which also contains the unique id of the navigation (pulled from NavigationEntry) and the timestamp of the navgation, and SyncedSessionTab (which we have to use in order to support SyncedTabNavigations). Lastly, the protos have been updated to include unique_id/timestamp per navigation, remove some obsolete fields that were unimportant, and add comments about what transitions mean and when they're set. BUG=98892 TEST=unit_tests, manually inspecting timestamps in sync node browser. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=133942

Patch Set 1 #

Patch Set 2 : Self review #

Patch Set 3 : nit #

Total comments: 2

Patch Set 4 : Rebase #

Total comments: 6

Patch Set 5 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+605 lines, -120 lines) Patch
M chrome/browser/sessions/session_types.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/session_model_associator.h View 1 2 3 4 4 chunks +20 lines, -4 lines 0 comments Download
M chrome/browser/sync/glue/session_model_associator.cc View 1 2 3 4 13 chunks +157 lines, -71 lines 0 comments Download
M chrome/browser/sync/glue/session_model_associator_unittest.cc View 1 2 3 15 chunks +308 lines, -13 lines 0 comments Download
M chrome/browser/sync/glue/synced_session.h View 1 2 3 4 1 chunk +43 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/synced_session.cc View 1 2 3 4 1 chunk +44 lines, -1 line 0 comments Download
M chrome/browser/sync/glue/synced_session_tracker.h View 5 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/sync/glue/synced_session_tracker.cc View 5 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/sync/glue/synced_session_tracker_unittest.cc View 6 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_session_unittest.cc View 1 2 3 4 2 chunks +0 lines, -2 lines 0 comments Download
M sync/protocol/proto_value_conversions.cc View 1 chunk +2 lines, -1 line 0 comments Download
M sync/protocol/session_specifics.proto View 2 chunks +6 lines, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
Nicolas Zea
PTAL Drew +CC raz
8 years, 8 months ago (2012-04-19 23:47:29 UTC) #1
Nicolas Zea
now with less deja vú!
8 years, 8 months ago (2012-04-21 00:51:07 UTC) #2
Andrew T Wilson (Slow)
Mostly LG, just a couple of questions. http://codereview.chromium.org/10125002/diff/7001/chrome/browser/sync/glue/session_model_associator.h File chrome/browser/sync/glue/session_model_associator.h (right): http://codereview.chromium.org/10125002/diff/7001/chrome/browser/sync/glue/session_model_associator.h#newcode299 chrome/browser/sync/glue/session_model_associator.h:299: // TODO(zea): ...
8 years, 8 months ago (2012-04-23 23:43:11 UTC) #3
Nicolas Zea
PTAL http://codereview.chromium.org/10125002/diff/7001/chrome/browser/sync/glue/session_model_associator.h File chrome/browser/sync/glue/session_model_associator.h (right): http://codereview.chromium.org/10125002/diff/7001/chrome/browser/sync/glue/session_model_associator.h#newcode299 chrome/browser/sync/glue/session_model_associator.h:299: // TODO(zea): pull this into it's own file. ...
8 years, 8 months ago (2012-04-24 22:09:49 UTC) #4
Andrew T Wilson (Slow)
LGTM
8 years, 8 months ago (2012-04-24 22:28:22 UTC) #5
Nicolas Zea
+marja for sessions ownership
8 years, 8 months ago (2012-04-24 22:33:24 UTC) #6
marja
chrome/browser/sessions LGTM.
8 years, 8 months ago (2012-04-25 07:07:37 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zea@chromium.org/10125002/20001
8 years, 8 months ago (2012-04-25 16:59:45 UTC) #8
commit-bot: I haz the power
8 years, 8 months ago (2012-04-25 18:28:46 UTC) #9
Change committed as 133942

Powered by Google App Engine
This is Rietveld 408576698