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

Issue 2683263002: Reland v4 of Session refactor (Closed)

Created:
3 years, 10 months ago by Nicolas Zea
Modified:
3 years, 10 months ago
Reviewers:
skym, Patrick Noland
CC:
chromium-reviews, sync-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland v4 of Session refactor Previous review: https://codereview.chromium.org/2651583006/ Changes from previous review: - Deletes sync tab nodes with invalid tab ids - Adds support for gracefully ignoring tabs with the same tab id. It's unclear how this might happen, but we now log an error and silently ignore the tab, instead of crashing. - Adds some more checks to tests TEST=SessionsSyncManagerTest.DuplicateTabIdFromNative, SessionsSyncManagerTest.MergeDeletesCorruptTabNodeId BUG=639009 Review-Url: https://codereview.chromium.org/2683263002 Cr-Commit-Position: refs/heads/master@{#449677} Committed: https://chromium.googlesource.com/chromium/src/+/9e83363531256aad94ed2bec676bbca8d715fbe1

Patch Set 1 #

Patch Set 2 : Changes from previous CL #

Patch Set 3 : Better handle possible corruption in sync node and add some testing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1413 lines, -1061 lines) Patch
M chrome/browser/sync/sessions/sessions_sync_manager_unittest.cc View 1 2 38 chunks +453 lines, -217 lines 0 comments Download
M components/sync_sessions/sessions_sync_manager.h View 7 chunks +6 lines, -61 lines 0 comments Download
M components/sync_sessions/sessions_sync_manager.cc View 1 2 28 chunks +235 lines, -218 lines 0 comments Download
M components/sync_sessions/synced_session_tracker.h View 1 2 7 chunks +84 lines, -38 lines 0 comments Download
M components/sync_sessions/synced_session_tracker.cc View 1 2 11 chunks +128 lines, -52 lines 0 comments Download
M components/sync_sessions/synced_session_tracker_unittest.cc View 1 2 11 chunks +279 lines, -144 lines 0 comments Download
M components/sync_sessions/tab_node_pool.h View 4 chunks +34 lines, -78 lines 0 comments Download
M components/sync_sessions/tab_node_pool.cc View 4 chunks +77 lines, -100 lines 0 comments Download
M components/sync_sessions/tab_node_pool_unittest.cc View 4 chunks +117 lines, -153 lines 0 comments Download

Messages

Total messages: 24 (14 generated)
Nicolas Zea
+Sky and Patrick. The first patchset is just a reland of the previous patch. The ...
3 years, 10 months ago (2017-02-09 21:18:46 UTC) #6
Nicolas Zea
Actually, hold off on this for the moment. I think I may have identified another ...
3 years, 10 months ago (2017-02-09 23:16:04 UTC) #7
Nicolas Zea
Okay, PTAL. I added logic to gracefully handle and delete tab nodes that may have ...
3 years, 10 months ago (2017-02-10 01:11:17 UTC) #11
skym
lgtm
3 years, 10 months ago (2017-02-10 16:49:32 UTC) #14
Patrick Noland
What were the scenarios where tab nodes with invalid ids were created? Does deleting them ...
3 years, 10 months ago (2017-02-10 17:40:26 UTC) #15
Nicolas Zea
In general, as long as you're only deleting your local data at startup, there's no ...
3 years, 10 months ago (2017-02-10 18:44:58 UTC) #17
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/2683263002/40001
3 years, 10 months ago (2017-02-10 18:46:00 UTC) #19
Patrick Noland
lgtm
3 years, 10 months ago (2017-02-10 18:46:16 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/9e83363531256aad94ed2bec676bbca8d715fbe1
3 years, 10 months ago (2017-02-10 18:59:56 UTC) #23
Nicolas Zea
3 years, 10 months ago (2017-02-14 02:13:47 UTC) #24
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/2694963002/ by zea@chromium.org.

The reason for reverting is: Still crashing. Likely due to sync nodes being
reused across windows not being handled gracefully..

Powered by Google App Engine
This is Rietveld 408576698