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

Issue 10990012: [Sync] Refactor handling of session tabs (Closed)

Created:
8 years, 2 months ago by akalin
Modified:
8 years, 2 months ago
Reviewers:
Nicolas Zea, sky
CC:
chromium-reviews, marja+watch_chromium.org, haitaol1, akalin, tim (not reviewing), Raghu Simha
Visibility:
Public.

Description

[Sync] Refactor handling of session tabs Add SessionTab <-> sync_pb::SessionTab conversion functions. Add IsPinned() method to SyncedTabDelegate and fix latent NULL-dereference bug in the process. Remove HasExtensionAppId() also. Rework tab contents association to: - update a SessionTab from the tab delegate (UpdateSessionTabFromDelegate); - get the current virtual URL for the tab (GetCurrentVirtualURL); - and convert to sync_pb::SessionTab in separate phases. Rework the SessionModelAssociator tests. BUG=128449 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=158777

Patch Set 1 #

Patch Set 2 : Fix typo #

Patch Set 3 : More fixes #

Patch Set 4 : Few more fixes #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+440 lines, -351 lines) Patch
M chrome/browser/sessions/session_types.h View 4 chunks +17 lines, -2 lines 0 comments Download
M chrome/browser/sessions/session_types.cc View 4 chunks +50 lines, -17 lines 0 comments Download
M chrome/browser/sessions/session_types_test_helper.h View 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/sessions/session_types_test_helper.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/sessions/session_types_unittest.cc View 2 chunks +91 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/session_model_associator.h View 5 chunks +16 lines, -17 lines 0 comments Download
M chrome/browser/sync/glue/session_model_associator.cc View 1 2 3 8 chunks +78 lines, -101 lines 3 comments Download
M chrome/browser/sync/glue/session_model_associator_unittest.cc View 1 2 3 16 chunks +159 lines, -200 lines 0 comments Download
M chrome/browser/sync/glue/synced_tab_delegate.h View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/sync/tab_contents_synced_tab_delegate.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/sync/tab_contents_synced_tab_delegate.cc View 1 2 3 chunks +15 lines, -10 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
akalin
+zea for sync stuff +sky for everything else (sessions, ui)
8 years, 2 months ago (2012-09-25 00:58:16 UTC) #1
sky
LGTM
8 years, 2 months ago (2012-09-25 15:48:38 UTC) #2
Nicolas Zea
http://codereview.chromium.org/10990012/diff/14001/chrome/browser/sync/glue/session_model_associator.cc File chrome/browser/sync/glue/session_model_associator.cc (right): http://codereview.chromium.org/10990012/diff/14001/chrome/browser/sync/glue/session_model_associator.cc#newcode490 chrome/browser/sync/glue/session_model_associator.cc:490: previous_navigations.swap(session_tab->navigations); is there any reason you modify previous_navigations instead ...
8 years, 2 months ago (2012-09-26 00:26:46 UTC) #3
akalin
http://codereview.chromium.org/10990012/diff/14001/chrome/browser/sync/glue/session_model_associator.cc File chrome/browser/sync/glue/session_model_associator.cc (right): http://codereview.chromium.org/10990012/diff/14001/chrome/browser/sync/glue/session_model_associator.cc#newcode490 chrome/browser/sync/glue/session_model_associator.cc:490: previous_navigations.swap(session_tab->navigations); On 2012/09/26 00:26:47, nzea wrote: > is there ...
8 years, 2 months ago (2012-09-26 00:32:12 UTC) #4
Nicolas Zea
LGTM http://codereview.chromium.org/10990012/diff/14001/chrome/browser/sync/glue/session_model_associator.cc File chrome/browser/sync/glue/session_model_associator.cc (right): http://codereview.chromium.org/10990012/diff/14001/chrome/browser/sync/glue/session_model_associator.cc#newcode490 chrome/browser/sync/glue/session_model_associator.cc:490: previous_navigations.swap(session_tab->navigations); On 2012/09/26 00:32:12, akalin wrote: > On ...
8 years, 2 months ago (2012-09-26 00:35:16 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akalin@chromium.org/10990012/14001
8 years, 2 months ago (2012-09-26 07:28:41 UTC) #6
commit-bot: I haz the power
8 years, 2 months ago (2012-09-26 09:57:52 UTC) #7
Change committed as 158777

Powered by Google App Engine
This is Rietveld 408576698