New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 662601 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Nov 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug



Sign in to add a comment

ForeignSessionsSuggestionsProvider shows data when "Open tabs" is disabled

Project Member Reported by s...@chromium.org, Nov 5 2016

Issue description

Similar to  crbug.com/651972 , when "History" is enabled but "Open tabs" id disabled, we are syncing the SESSIONS data type, but display the data to the user when we should be hiding it.
 
Project Member

Comment 1 by bugdroid1@chromium.org, Nov 15 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/a816bfc268006458526fb07e84ac1e03cd1ac03f

commit a816bfc268006458526fb07e84ac1e03cd1ac03f
Author: skym <skym@chromium.org>
Date: Tue Nov 15 18:57:05 2016

[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 

Review-Url: https://codereview.chromium.org/2504433002
Cr-Commit-Position: refs/heads/master@{#432227}

[modify] https://crrev.com/a816bfc268006458526fb07e84ac1e03cd1ac03f/chrome/browser/extensions/api/sessions/sessions_apitest.cc
[modify] https://crrev.com/a816bfc268006458526fb07e84ac1e03cd1ac03f/components/browser_sync/profile_sync_service.cc
[modify] https://crrev.com/a816bfc268006458526fb07e84ac1e03cd1ac03f/components/browser_sync/profile_sync_service_unittest.cc
[modify] https://crrev.com/a816bfc268006458526fb07e84ac1e03cd1ac03f/components/sync/driver/sync_service.h

Comment 2 by s...@chromium.org, Nov 15 2016

Status: Fixed (was: Assigned)

Sign in to add a comment