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

Issue 2776633003: Add taskid for navigation, created in session sync (Closed)

Created:
3 years, 9 months ago by shenchao
Modified:
3 years, 8 months ago
CC:
chromium-reviews, sync-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add taskids for navigation, created in session sync. This is the first step to introduce task in Chrome, which links and groups navigations. Each navigation has a task id and a list of its ancestor's task ids. A navigation's task id is TabNavigation's global id when the navigation is first visited and then reused by going back/forward visits. The task ids are created and sent to backend in session sync. And for now we only track navigation relationship in a tab. BUG=707978 Review-Url: https://codereview.chromium.org/2776633003 Cr-Commit-Position: refs/heads/master@{#466188} Committed: https://chromium.googlesource.com/chromium/src/+/965fab94d2a8faef6f9ed4c6feaf99ef18e81049

Patch Set 1 #

Total comments: 18

Patch Set 2 : comments and refactoring #

Total comments: 34

Patch Set 3 : Fixing a bug where root of the task is not considered and addressing comments. #

Total comments: 12

Patch Set 4 : addressing comments and fixing a crash in test #

Patch Set 5 : initialize task id by global id #

Total comments: 9

Patch Set 6 : Limiting max number of tracked tasks per tab #

Total comments: 4

Patch Set 7 : Add taskids for navigation, created in session sync. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+619 lines, -6 lines) Patch
M components/sync/protocol/session_specifics.proto View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M components/sync_sessions/BUILD.gn View 2 chunks +3 lines, -0 lines 0 comments Download
M components/sync_sessions/sessions_sync_manager.h View 1 2 3 3 chunks +10 lines, -0 lines 0 comments Download
M components/sync_sessions/sessions_sync_manager.cc View 1 2 3 4 4 chunks +56 lines, -3 lines 0 comments Download
M components/sync_sessions/sessions_sync_manager_unittest.cc View 1 2 3 4 5 2 chunks +65 lines, -3 lines 0 comments Download
A components/sync_sessions/task_tracker.h View 1 2 3 4 5 1 chunk +102 lines, -0 lines 0 comments Download
A components/sync_sessions/task_tracker.cc View 1 2 3 4 5 6 1 chunk +173 lines, -0 lines 0 comments Download
A components/sync_sessions/task_tracker_unittest.cc View 1 2 3 4 5 1 chunk +198 lines, -0 lines 0 comments Download

Messages

Total messages: 51 (29 generated)
shenchao
Hi Nicolas and Patrick, Sorry for delay of this CL. Although some auto tests still ...
3 years, 9 months ago (2017-03-24 20:29:21 UTC) #5
Patrick Noland
Comments from my first impressions https://codereview.chromium.org/2776633003/diff/1/components/sessions/core/serialized_navigation_entry.h File components/sessions/core/serialized_navigation_entry.h (right): https://codereview.chromium.org/2776633003/diff/1/components/sessions/core/serialized_navigation_entry.h#newcode82 components/sessions/core/serialized_navigation_entry.h:82: sync_pb::TabNavigation ToSyncData() const; I ...
3 years, 9 months ago (2017-03-24 20:51:57 UTC) #6
shenchao
Thanks for the review. PTAL https://codereview.chromium.org/2776633003/diff/1/components/sessions/core/serialized_navigation_entry.h File components/sessions/core/serialized_navigation_entry.h (right): https://codereview.chromium.org/2776633003/diff/1/components/sessions/core/serialized_navigation_entry.h#newcode82 components/sessions/core/serialized_navigation_entry.h:82: sync_pb::TabNavigation ToSyncData() const; On ...
3 years, 9 months ago (2017-03-25 23:53:13 UTC) #11
Nicolas Zea
https://codereview.chromium.org/2776633003/diff/60001/components/sessions/core/serialized_navigation_entry.h File components/sessions/core/serialized_navigation_entry.h (right): https://codereview.chromium.org/2776633003/diff/60001/components/sessions/core/serialized_navigation_entry.h#newcode166 components/sessions/core/serialized_navigation_entry.h:166: std::vector<int64_t> task_id_; This class is exclusively meant to wrap ...
3 years, 8 months ago (2017-03-27 20:43:53 UTC) #12
Nicolas Zea
Also, it would be good to go ahead and file a bug.
3 years, 8 months ago (2017-03-27 20:44:13 UTC) #13
shenchao
Hi Nicolas, Please check the comment below. I should have found this issue early. Any ...
3 years, 8 months ago (2017-04-04 18:37:50 UTC) #14
Nicolas Zea
On 2017/04/04 18:37:50, shenchao wrote: > Hi Nicolas, > Please check the comment below. I ...
3 years, 8 months ago (2017-04-05 19:44:23 UTC) #15
shenchao
On 2017/04/05 19:44:23, Nicolas Zea wrote: > On 2017/04/04 18:37:50, shenchao wrote: > > Hi ...
3 years, 8 months ago (2017-04-05 21:01:03 UTC) #16
Nicolas Zea
On 2017/04/05 21:01:03, shenchao wrote: > On 2017/04/05 19:44:23, Nicolas Zea wrote: > > On ...
3 years, 8 months ago (2017-04-05 22:50:36 UTC) #17
shenchao
On 2017/04/05 22:50:36, Nicolas Zea wrote: > On 2017/04/05 21:01:03, shenchao wrote: > > On ...
3 years, 8 months ago (2017-04-06 00:48:11 UTC) #20
shenchao
PTAL, while I am adding unit tests for sessions_sync_manager. Thanks https://codereview.chromium.org/2776633003/diff/60001/components/sessions/core/serialized_navigation_entry.h File components/sessions/core/serialized_navigation_entry.h (right): https://codereview.chromium.org/2776633003/diff/60001/components/sessions/core/serialized_navigation_entry.h#newcode166 ...
3 years, 8 months ago (2017-04-06 00:54:56 UTC) #21
Nicolas Zea
Getting close! https://codereview.chromium.org/2776633003/diff/100001/components/sync_sessions/sessions_sync_manager.cc File components/sync_sessions/sessions_sync_manager.cc (right): https://codereview.chromium.org/2776633003/diff/100001/components/sync_sessions/sessions_sync_manager.cc#newcode426 components/sync_sessions/sessions_sync_manager.cc:426: SessionID::id_type tab_id, given tab_id comes from tab_delegate, ...
3 years, 8 months ago (2017-04-10 17:09:01 UTC) #22
shenchao
Made suggested changes, and leaving global id usage open for further discussion. https://codereview.chromium.org/2776633003/diff/100001/components/sync_sessions/sessions_sync_manager.cc File components/sync_sessions/sessions_sync_manager.cc ...
3 years, 8 months ago (2017-04-11 18:53:45 UTC) #23
shenchao
PTAL https://codereview.chromium.org/2776633003/diff/100001/components/sync_sessions/task_tracker.cc File components/sync_sessions/task_tracker.cc (right): https://codereview.chromium.org/2776633003/diff/100001/components/sync_sessions/task_tracker.cc#newcode77 components/sync_sessions/task_tracker.cc:77: clock_->Now().ToInternalValue()}; On 2017/04/10 17:09:00, Nicolas Zea wrote: > ...
3 years, 8 months ago (2017-04-17 21:47:33 UTC) #26
Nicolas Zea
Mostly LG with one change related to handling task id limiting. https://codereview.chromium.org/2776633003/diff/180001/components/sync_sessions/sessions_sync_manager_unittest.cc File components/sync_sessions/sessions_sync_manager_unittest.cc (right): ...
3 years, 8 months ago (2017-04-17 23:18:46 UTC) #27
shenchao
https://codereview.chromium.org/2776633003/diff/180001/components/sync_sessions/task_tracker.cc File components/sync_sessions/task_tracker.cc (right): https://codereview.chromium.org/2776633003/diff/180001/components/sync_sessions/task_tracker.cc#newcode48 components/sync_sessions/task_tracker.cc:48: return; On 2017/04/17 23:18:46, Nicolas Zea wrote: > I ...
3 years, 8 months ago (2017-04-18 16:59:36 UTC) #28
Nicolas Zea
On 2017/04/18 16:59:36, shenchao wrote: > https://codereview.chromium.org/2776633003/diff/180001/components/sync_sessions/task_tracker.cc > File components/sync_sessions/task_tracker.cc (right): > > https://codereview.chromium.org/2776633003/diff/180001/components/sync_sessions/task_tracker.cc#newcode48 > ...
3 years, 8 months ago (2017-04-18 17:06:09 UTC) #29
shenchao
PTAL. Thanks. https://codereview.chromium.org/2776633003/diff/180001/components/sync_sessions/sessions_sync_manager_unittest.cc File components/sync_sessions/sessions_sync_manager_unittest.cc (right): https://codereview.chromium.org/2776633003/diff/180001/components/sync_sessions/sessions_sync_manager_unittest.cc#newcode2433 components/sync_sessions/sessions_sync_manager_unittest.cc:2433: // We only test changes for tab ...
3 years, 8 months ago (2017-04-19 22:10:01 UTC) #31
Nicolas Zea
LGTM with some nits. Nice! https://codereview.chromium.org/2776633003/diff/220001/components/sync_sessions/task_tracker.cc File components/sync_sessions/task_tracker.cc (right): https://codereview.chromium.org/2776633003/diff/220001/components/sync_sessions/task_tracker.cc#newcode125 components/sync_sessions/task_tracker.cc:125: task_ids_.push_back({-1, -1}); nit: typically ...
3 years, 8 months ago (2017-04-19 22:25:44 UTC) #32
shenchao
https://codereview.chromium.org/2776633003/diff/220001/components/sync_sessions/task_tracker.cc File components/sync_sessions/task_tracker.cc (right): https://codereview.chromium.org/2776633003/diff/220001/components/sync_sessions/task_tracker.cc#newcode125 components/sync_sessions/task_tracker.cc:125: task_ids_.push_back({-1, -1}); On 2017/04/19 22:25:44, Nicolas Zea wrote: > ...
3 years, 8 months ago (2017-04-20 21:38:31 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2776633003/260001
3 years, 8 months ago (2017-04-20 21:41:40 UTC) #48
commit-bot: I haz the power
3 years, 8 months ago (2017-04-20 23:29:58 UTC) #51
Message was sent while issue was closed.
Committed patchset #7 (id:260001) as
https://chromium.googlesource.com/chromium/src/+/965fab94d2a8faef6f9ed4c6feaf...

Powered by Google App Engine
This is Rietveld 408576698