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

Issue 2712743006: Reland v5 of Sessions Refactor (Closed)

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

Description

Reland v5 of Sessions Refactor Changes from last review: Added support for mapping a tab that had already been mapped to a different window. This can happen in Android when a placeholder tab is created from a previous window that hasn't yet closed. In addition, for testing/repro purposes this patch makes the iteration order of windows deterministic ( by going through them in SessionID order). Previous review: https://codereview.chromium.org/2683263002/ TEST=SessionsSyncMagerTest.PlaceholderConflictAcrossWindows BUG=639009 Review-Url: https://codereview.chromium.org/2712743006 Cr-Commit-Position: refs/heads/master@{#453992} Committed: https://chromium.googlesource.com/chromium/src/+/9b42f431d47b0e3a00b9435c719ce42f7c53c2c9

Patch Set 1 #

Patch Set 2 : Reland with rebase, but no other changes #

Patch Set 3 : Apply fix for conflicting sync ids between windows and add test + format #

Patch Set 4 : Self review and fix compile #

Total comments: 26

Patch Set 5 : Address comments and fix ios compile #

Patch Set 6 : Actually fix compile #

Patch Set 7 : Fix typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1250 lines, -1010 lines) Patch
M chrome/browser/sync/glue/synced_window_delegates_getter_android.h View 2 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/sync/glue/synced_window_delegates_getter_android.cc View 2 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/sync/browser_synced_window_delegates_getter.h View 2 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/sync/browser_synced_window_delegates_getter.cc View 2 1 chunk +4 lines, -3 lines 0 comments Download
M components/sync/protocol/session_specifics.proto View 1 chunk +1 line, -1 line 0 comments Download
M components/sync_sessions/session_data_type_controller.cc View 1 2 3 4 1 chunk +3 lines, -4 lines 0 comments Download
M components/sync_sessions/session_data_type_controller_unittest.cc View 2 2 chunks +5 lines, -3 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 3 4 30 chunks +229 lines, -219 lines 0 comments Download
M components/sync_sessions/sessions_sync_manager_unittest.cc View 1 2 3 34 chunks +180 lines, -137 lines 0 comments Download
M components/sync_sessions/synced_session_tracker.h View 7 chunks +84 lines, -38 lines 0 comments Download
M components/sync_sessions/synced_session_tracker.cc View 1 2 3 4 11 chunks +150 lines, -52 lines 0 comments Download
M components/sync_sessions/synced_session_tracker_unittest.cc View 1 2 3 4 11 chunks +339 lines, -144 lines 0 comments Download
M components/sync_sessions/synced_window_delegates_getter.h View 2 2 chunks +5 lines, -2 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
M ios/chrome/browser/tabs/tab_model_synced_window_delegate_getter.h View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M ios/chrome/browser/tabs/tab_model_synced_window_delegate_getter.mm View 1 2 3 4 5 6 3 chunks +9 lines, -6 lines 0 comments Download

Messages

Total messages: 32 (22 generated)
Nicolas Zea
+Sky for review, +Patrick FYI The last two patchsets show the changes I've made from ...
3 years, 10 months ago (2017-02-25 01:22:39 UTC) #8
skym
lgtm. Really only looked at difference between PS#2 and PS#4. https://codereview.chromium.org/2712743006/diff/60001/components/sync_sessions/session_data_type_controller.cc File components/sync_sessions/session_data_type_controller.cc (right): https://codereview.chromium.org/2712743006/diff/60001/components/sync_sessions/session_data_type_controller.cc#newcode49 ...
3 years, 9 months ago (2017-02-27 18:22:38 UTC) #11
Nicolas Zea
+Rohit for ios/ changes https://codereview.chromium.org/2712743006/diff/60001/components/sync_sessions/session_data_type_controller.cc File components/sync_sessions/session_data_type_controller.cc (right): https://codereview.chromium.org/2712743006/diff/60001/components/sync_sessions/session_data_type_controller.cc#newcode49 components/sync_sessions/session_data_type_controller.cc:49: for (auto window_iter_pair : windows) ...
3 years, 9 months ago (2017-02-28 00:09:02 UTC) #14
Nicolas Zea
Friendly ping?
3 years, 9 months ago (2017-03-01 00:55:51 UTC) #22
rohitrao (ping after 24h)
ios lgtm
3 years, 9 months ago (2017-03-01 17:57:56 UTC) #23
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/2712743006/120001
3 years, 9 months ago (2017-03-01 18:16:50 UTC) #26
skym
I thought this relied on the test changes that were reverted recently https://codereview.chromium.org/2722953002/
3 years, 9 months ago (2017-03-01 18:18:24 UTC) #27
Nicolas Zea
On 2017/03/01 18:18:24, skym wrote: > I thought this relied on the test changes that ...
3 years, 9 months ago (2017-03-01 18:20:04 UTC) #28
skym
On 2017/03/01 18:18:24, skym wrote: > I thought this relied on the test changes that ...
3 years, 9 months ago (2017-03-01 18:20:27 UTC) #29
commit-bot: I haz the power
3 years, 9 months ago (2017-03-01 19:16:35 UTC) #32
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/9b42f431d47b0e3a00b9435c719c...

Powered by Google App Engine
This is Rietveld 408576698