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

Issue 2504433002: [Sync] Return nullptr for OpenTabsUIDelegate when PROXY_TABS is disabled. (Closed)

Created:
4 years, 1 month ago by skym
Modified:
4 years, 1 month ago
CC:
chromium-reviews, sync-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Return nullptr for OpenTabsUIDelegate when PROXY_TABS is disabled. Previously each UI component that relied on this would have its separate checks to see if PROXY_TABS was enabled or not, and only display the tabs data from the OpenTabsUIDelegate if it was. As more UI was created that relied on foreign tabs data, we saw the mistake of not making this check occur multiple times. This change will result in a null OpenTabsUIDelegate being provided when proxy tabs is disabled, and it will be impossible to make the mentioned mistake. Going forward, there are a handful of places with logic that checks and/or passes around if proxy tabs is enabled or not. As a follow up to this CL, we should go through and remove/simplify all that logic as foreign tabs data will no longer be accessible when proxy tabs becomes disabled. BUG=662601 Committed: https://crrev.com/a816bfc268006458526fb07e84ac1e03cd1ac03f Cr-Commit-Position: refs/heads/master@{#432227}

Patch Set 1 #

Patch Set 2 : Fixed sessions extensions test, added a pss unittest. #

Total comments: 2

Patch Set 3 : Gave test case an appropriate name. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -7 lines) Patch
M chrome/browser/extensions/api/sessions/sessions_apitest.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M components/browser_sync/profile_sync_service.cc View 1 1 chunk +5 lines, -3 lines 0 comments Download
M components/browser_sync/profile_sync_service_unittest.cc View 1 2 3 chunks +22 lines, -0 lines 0 comments Download
M components/sync/driver/sync_service.h View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 28 (21 generated)
skym
PTAL
4 years, 1 month ago (2016-11-14 22:44:46 UTC) #9
Nicolas Zea
lgtm https://codereview.chromium.org/2504433002/diff/20001/components/browser_sync/profile_sync_service_unittest.cc File components/browser_sync/profile_sync_service_unittest.cc (right): https://codereview.chromium.org/2504433002/diff/20001/components/browser_sync/profile_sync_service_unittest.cc#newcode962 components/browser_sync/profile_sync_service_unittest.cc:962: TEST_F(ProfileSyncServiceTest, Skym) { Update test name?
4 years, 1 month ago (2016-11-14 22:53:48 UTC) #10
skym
Adding reillyg@ for chrome/browser/extensions/api/sessions/sessions_apitest.cc https://codereview.chromium.org/2504433002/diff/20001/components/browser_sync/profile_sync_service_unittest.cc File components/browser_sync/profile_sync_service_unittest.cc (right): https://codereview.chromium.org/2504433002/diff/20001/components/browser_sync/profile_sync_service_unittest.cc#newcode962 components/browser_sync/profile_sync_service_unittest.cc:962: TEST_F(ProfileSyncServiceTest, Skym) { On 2016/11/14 ...
4 years, 1 month ago (2016-11-15 16:54:26 UTC) #16
Reilly Grant (use Gerrit)
lgtm
4 years, 1 month ago (2016-11-15 17:36:19 UTC) #18
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/2504433002/40001
4 years, 1 month ago (2016-11-15 18:50:33 UTC) #24
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-15 18:57:40 UTC) #26
commit-bot: I haz the power
4 years, 1 month ago (2016-11-15 19:05:58 UTC) #28
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/a816bfc268006458526fb07e84ac1e03cd1ac03f
Cr-Commit-Position: refs/heads/master@{#432227}

Powered by Google App Engine
This is Rietveld 408576698