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

Issue 2499023004: [Sync] Introduce SyncedSessionWindow type. (Closed)

Created:
4 years, 1 month ago by Nicolas Zea
Modified:
3 years, 8 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, ntp-dev+reviews_chromium.org, sync-reviews_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Introduce SyncedSessionWindow type. Because we now need to maintain state outside of the normal SessionWindow struct, this patch introduces a SyncedSessionWindow type. It wraps a normal SessionWindow, while allowing tab sync to track additional window information. As part of this patch, I've also cleaned up the unused variation ids. Moving forward, nothing sync specific should need to be in SessionWindow. We'll probably need to add a wrapper for SessionTab in the future as well. The patch itself does not have any behavioral impact, but paves the way for consuming sync window type information. BUG=639009 TBR=bauerb, skuhne, thestig Review-Url: https://codereview.chromium.org/2499023004 Cr-Commit-Position: refs/heads/master@{#460510} Committed: https://chromium.googlesource.com/chromium/src/+/325508e90dc01afb4d6332510fc83d39c74c96f0

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Rebase #

Patch Set 4 : Rebase #

Patch Set 5 : Fix android #

Patch Set 6 : Fix compile #

Patch Set 7 : Rebase #

Patch Set 8 : Fix compile #

Patch Set 9 : Fix compile #

Total comments: 13

Patch Set 10 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, -207 lines) Patch
M chrome/browser/android/foreign_session_helper.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/sessions/sessions_api.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test/integration/performance/sessions_sync_perf_test.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test/integration/sessions_helper.h View 1 2 3 4 5 6 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/sync/test/integration/sessions_helper.cc View 1 2 3 4 5 6 4 chunks +16 lines, -16 lines 0 comments Download
M chrome/browser/sync/test/integration/single_client_sessions_sync_test.cc View 1 2 3 4 5 6 7 3 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/ui/webui/foreign_session_handler.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M components/ntp_snippets/sessions/foreign_sessions_suggestions_provider.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -4 lines 0 comments Download
M components/ntp_snippets/sessions/foreign_sessions_suggestions_provider_unittest.cc View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M components/sessions/core/session_types.h View 1 2 2 chunks +0 lines, -8 lines 0 comments Download
M components/sessions/core/session_types.cc View 1 3 chunks +0 lines, -29 lines 0 comments Download
M components/sessions/core/session_types_unittest.cc View 4 chunks +0 lines, -11 lines 0 comments Download
M components/sync/protocol/session_specifics.proto View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -5 lines 0 comments Download
M components/sync_sessions/revisit/sessions_page_revisit_observer.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/sync_sessions/revisit/sessions_page_revisit_observer_unittest.cc View 1 2 3 4 5 6 7 8 9 4 chunks +27 lines, -27 lines 0 comments Download
M components/sync_sessions/session_sync_test_helper.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/sync_sessions/sessions_sync_manager.h View 1 2 3 4 5 6 3 chunks +5 lines, -9 lines 0 comments Download
M components/sync_sessions/sessions_sync_manager.cc View 1 2 3 4 5 6 7 8 9 5 chunks +6 lines, -19 lines 0 comments Download
M components/sync_sessions/sessions_sync_manager_unittest.cc View 1 2 3 4 5 6 6 chunks +23 lines, -10 lines 0 comments Download
M components/sync_sessions/sync_sessions_metrics.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/sync_sessions/sync_sessions_metrics_unittest.cc View 2 chunks +15 lines, -9 lines 0 comments Download
M components/sync_sessions/synced_session.h View 1 2 3 4 5 6 7 8 9 3 chunks +20 lines, -7 lines 0 comments Download
M components/sync_sessions/synced_session.cc View 1 2 3 4 5 6 7 8 9 1 chunk +18 lines, -2 lines 0 comments Download
M components/sync_sessions/synced_session_tracker.h View 1 2 3 2 chunks +3 lines, -4 lines 0 comments Download
M components/sync_sessions/synced_session_tracker.cc View 1 2 3 4 5 6 7 chunks +16 lines, -14 lines 0 comments Download
M components/sync_sessions/synced_session_tracker_unittest.cc View 1 2 3 4 5 6 9 chunks +14 lines, -14 lines 0 comments Download
M ios/chrome/browser/ui/ntp/recent_tabs/synced_sessions.mm View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 66 (58 generated)
Nicolas Zea
+Sky for review, +Patrick FYI
3 years, 9 months ago (2017-03-28 01:47:19 UTC) #47
skym
https://codereview.chromium.org/2499023004/diff/200001/chrome/browser/sync/test/integration/single_client_sessions_sync_test.cc File chrome/browser/sync/test/integration/single_client_sessions_sync_test.cc (right): https://codereview.chromium.org/2499023004/diff/200001/chrome/browser/sync/test/integration/single_client_sessions_sync_test.cc#newcode195 chrome/browser/sync/test/integration/single_client_sessions_sync_test.cc:195: for (auto it2 = it->second->wrapped_window.tabs.begin(); Such creative iterator names! ...
3 years, 9 months ago (2017-03-28 04:48:55 UTC) #50
skym
Discussed offline that even if we ultimately remove wrapper classes, this is a necessary intermediate ...
3 years, 8 months ago (2017-03-28 20:09:54 UTC) #51
Patrick Noland
lgtm https://codereview.chromium.org/2499023004/diff/200001/components/ntp_snippets/sessions/foreign_sessions_suggestions_provider.cc File components/ntp_snippets/sessions/foreign_sessions_suggestions_provider.cc (right): https://codereview.chromium.org/2499023004/diff/200001/components/ntp_snippets/sessions/foreign_sessions_suggestions_provider.cc#newcode369 components/ntp_snippets/sessions/foreign_sessions_suggestions_provider.cc:369: for (const std::pair<const SessionID::id_type, [nit] This would be ...
3 years, 8 months ago (2017-03-28 20:42:01 UTC) #52
Nicolas Zea
Comments addressed. TBRing owners as this is just changing how sync's SessionWindows are accessed (trivial ...
3 years, 8 months ago (2017-03-29 19:01:33 UTC) #56
Lei Zhang
chrome/ lgtm
3 years, 8 months ago (2017-03-29 19:17:50 UTC) #58
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/2499023004/220001
3 years, 8 months ago (2017-03-29 19:58:52 UTC) #63
commit-bot: I haz the power
3 years, 8 months ago (2017-03-29 20:12:19 UTC) #66
Message was sent while issue was closed.
Committed patchset #10 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/325508e90dc01afb4d6332510fc8...

Powered by Google App Engine
This is Rietveld 408576698