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

Issue 74653002: sync: Add --enable-sync-sessions-v2 and necessary plumbing to use SessionsSyncManager. (Closed)

Created:
7 years, 1 month ago by tim (not reviewing)
Modified:
7 years, 1 month ago
CC:
chromium-reviews, davidben+watch_chromium.org, extensions-reviews_chromium.org, cbentzel+watch_chromium.org, estade+watch_chromium.org, tburkard+watch_chromium.org, dbeam+watch-ntp_chromium.org, haitaol+watch_chromium.org, gavinp+prer_chromium.org, dominich+watch_chromium.org, tim+watch_chromium.org, chromium-apps-reviews_chromium.org, rsimha+watch_chromium.org, pedrosimonetti+watch_chromium.org
Visibility:
Public.

Description

sync: Add --enable-sync-sessions-v2 and necessary plumbing to use SessionsSyncManager. Not a fully working solution as SSM doesn't listen to session changes after the initial association, but does work across restarts. Adds OpenTabsUIDelegate to a) reduce SessionModelAssociator proliferation and b) allow swapping in a SessionsSyncManager if the command line flag is passed. The changes in non sync/ files are basically s/SessionModelAssociator/OpenTabsUIDelegate. There are a few places I didn't make that change yet (such as OnSyncCycleComplete in ProfileSyncService), which I'll have to do in a follow up as SSM supports more of the bells-and-whistles in session sync. BUG=98892 R=pkasting@chromium.org, rlarocque@chromium.org, yfriedman@chromium.org TBR=tburkard@chromium.org, asargent@chromium.org, yfriedman@chromium.org, dbeam@chromium.org, pkasting@chromium.org for chrome/browser/prerender for chrome/browser/extensions/api for chrome/browser/android and chrome/browser/ui/webui/ntp/android for chrome/browser/ui/webui/ntp for remainder of chrome/browser/ui Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=236572

Patch Set 1 : #

Patch Set 2 : cleanup components factory #

Total comments: 6

Patch Set 3 : review #

Total comments: 9

Patch Set 4 : pkasting's review #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+431 lines, -234 lines) Patch
M chrome/browser/android/favicon_helper.cc View 1 2 3 4 2 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/android/foreign_session_helper.cc View 1 2 3 4 5 chunks +17 lines, -17 lines 0 comments Download
M chrome/browser/extensions/api/sessions/sessions_api.cc View 4 chunks +11 lines, -11 lines 0 comments Download
M chrome/browser/extensions/api/sessions/sessions_apitest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/signed_in_devices/signed_in_devices_api.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/prerender/prerender_field_trial.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/session_model_associator.h View 5 chunks +14 lines, -25 lines 0 comments Download
A chrome/browser/sync/open_tabs_ui_delegate.h View 1 chunk +56 lines, -0 lines 0 comments Download
A + chrome/browser/sync/open_tabs_ui_delegate.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl.cc View 1 5 chunks +19 lines, -10 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 1 2 3 4 8 chunks +46 lines, -20 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 4 8 chunks +49 lines, -4 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_mock.h View 1 chunk +2 lines, -2 lines 0 comments Download
A chrome/browser/sync/sessions2/session_data_type_controller2.h View 1 chunk +40 lines, -0 lines 0 comments Download
A + chrome/browser/sync/sessions2/session_data_type_controller2.cc View 4 chunks +10 lines, -31 lines 0 comments Download
M chrome/browser/sync/sessions2/sessions_sync_manager.h View 1 2 7 chunks +23 lines, -17 lines 0 comments Download
M chrome/browser/sync/sessions2/sessions_sync_manager.cc View 1 2 8 chunks +50 lines, -10 lines 0 comments Download
M chrome/browser/sync/sessions2/sessions_sync_manager_unittest.cc View 1 2 6 chunks +7 lines, -16 lines 0 comments Download
M chrome/browser/sync/test/integration/sessions_helper.cc View 4 chunks +10 lines, -6 lines 0 comments Download
M chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.h View 1 2 3 4 chunks +12 lines, -6 lines 0 comments Download
M chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc View 1 2 3 7 chunks +18 lines, -18 lines 0 comments Download
M chrome/browser/ui/webui/favicon_source.cc View 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/ui/webui/ntp/android/promo_handler.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/ntp/foreign_session_handler.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/ntp/foreign_session_handler.cc View 5 chunks +15 lines, -15 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
tim (not reviewing)
7 years, 1 month ago (2013-11-18 21:54:13 UTC) #1
rlarocque
https://codereview.chromium.org/74653002/diff/530001/chrome/browser/sync/open_tabs_ui_delegate.h File chrome/browser/sync/open_tabs_ui_delegate.h (right): https://codereview.chromium.org/74653002/diff/530001/chrome/browser/sync/open_tabs_ui_delegate.h#newcode20 chrome/browser/sync/open_tabs_ui_delegate.h:20: class OpenTabsUIDelegate { I think this name is a ...
7 years, 1 month ago (2013-11-18 23:20:08 UTC) #2
tim (not reviewing)
https://codereview.chromium.org/74653002/diff/530001/chrome/browser/sync/open_tabs_ui_delegate.h File chrome/browser/sync/open_tabs_ui_delegate.h (right): https://codereview.chromium.org/74653002/diff/530001/chrome/browser/sync/open_tabs_ui_delegate.h#newcode20 chrome/browser/sync/open_tabs_ui_delegate.h:20: class OpenTabsUIDelegate { On 2013/11/18 23:20:08, rlarocque wrote: > ...
7 years, 1 month ago (2013-11-20 18:38:56 UTC) #3
rlarocque
lgtm
7 years, 1 month ago (2013-11-20 18:41:54 UTC) #4
tim (not reviewing)
TBR=tburkard@chromium.org for chrome/browser/prerender TBR=asargent@chromium.org for chrome/browser/extensions/api TBR=yfriedman@chromium.org for chrome/browser/android TBR=dbeam@chromium.org for chrome/browser/ui/webui TBR=pkasting@chromium.org for remainder ...
7 years, 1 month ago (2013-11-20 20:51:57 UTC) #5
Peter Kasting
The non-nit here should probably be addressed in a separate change, so LGTM, but do ...
7 years, 1 month ago (2013-11-20 21:07:45 UTC) #6
Yaron
lgtm
7 years, 1 month ago (2013-11-20 22:18:01 UTC) #7
tim (not reviewing)
Addressed Peter's comments. https://codereview.chromium.org/74653002/diff/740001/chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.h File chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.h (right): https://codereview.chromium.org/74653002/diff/740001/chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.h#newcode50 chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.h:50: // If |delegate| is NULL, default ...
7 years, 1 month ago (2013-11-21 02:00:06 UTC) #8
Peter Kasting
https://codereview.chromium.org/74653002/diff/740001/chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.h File chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.h (right): https://codereview.chromium.org/74653002/diff/740001/chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.h#newcode120 chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.h:120: browser_sync::OpenTabsUIDelegate* GetOpenTabsUIDelegate(); On 2013/11/21 02:00:06, timsteele wrote: > As ...
7 years, 1 month ago (2013-11-21 02:15:43 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tim@chromium.org/74653002/1070001
7 years, 1 month ago (2013-11-21 02:40:00 UTC) #10
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=193075
7 years, 1 month ago (2013-11-21 04:21:45 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tim@chromium.org/74653002/1300001
7 years, 1 month ago (2013-11-21 18:45:13 UTC) #12
tim (not reviewing)
7 years, 1 month ago (2013-11-21 19:37:23 UTC) #13
Message was sent while issue was closed.
Committed patchset #5 manually as r236572 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698