Restore all doesn't get removed after restoring all deleted sites
Show all to see the full list of publishersRestore All from the publisher window. Removed site gets added but still shows 1 excluded site

Restore all should not show any value for excluded list. Defeats the purpose of restore all
Easy
Brave | 0.55.11 Chromium: 70.0.3538.35 (Official Build) beta (64-bit)
-- | --
Revision | 28dcb499844fa40c28d5f62e337876cb936f79f5-refs/branch-heads/3538@{#678}
OS | Linux
cc: @LaurenWags @kjozwiak @NejcZdovc
Did not reproduce on macOS. After clicking 'Restore All' link the entire line went away and all sites were restored to the list.
Brave | 0.55.11 Chromium: 70.0.3538.35聽(Official Build)聽beta(64-bit)
-- | --
Revision | 28dcb499844fa40c28d5f62e337876cb936f79f5-refs/branch-heads/3538@{#678}
OS | Mac OS X

@LaurenWags I think it happens when we have 11 or more sites.
It seems to restore enough to make current list 10.
@jasonrsadler hm, I tried with 12 sites on dev (I can't get more than 10 on Beta due to another issue) and I'm still not able to repro
Brave | 0.56.2 Chromium: 70.0.3538.35聽(Official Build)聽dev聽(64-bit)
-- | --
Revision | 28dcb499844fa40c28d5f62e337876cb936f79f5-refs/branch-heads/3538@{#678}
OS | Mac OS X

@LaurenWags disregard. I was reproducing on beta. Just tried again on dev macOS and seems to be working.
Found the actual steps which causes this issue
Either publisher should not be added back to the list until its removed from the excluded list or if its getting added back automatically it should not be counted in excluded list.
cc: @NejcZdovc @bbondy @rebron this needs to be prioritized for release build
@srirambv @NejcZdovc @rebron Reproduced with steps from https://github.com/brave/brave-browser/issues/1441#issuecomment-428593480
Brave | 0.55.12 Chromium: 70.0.3538.45聽(Official Build)聽beta(64-bit)
-- | --
Revision | cbdc32e4334458954e9def214d7e5fa1ca1960eb-refs/branch-heads/3538@{#830}
OS | Mac OS X
@srirambv @LaurenWags Can you verify if this could be related or the cause?
https://github.com/brave/brave-browser/issues/1873
When you are excluding sites are you clicking the 'X' more than once before the site has a chance to go away (It goes away really fast on a release build but this reproduces easily on a dev build)
@srirambv I notice in your graphic above it shows 10 listed with 1 excluded = 11 but as you're excluding, the total number of sites (excluded + non-excluded) goes up.
@jasonrsadler I definitely did not click x more than once, however I just tried the steps from https://github.com/brave/brave-browser/issues/1441#issuecomment-428593480 and was unable to reproduce the issue using
Brave | 0.56.7 Chromium: 70.0.3538.77聽(Official Build)聽beta(64-bit)
-- | --
Revision | 0f6ce0b0cd63a12cb4eccea3637b1bc9a29148d9-refs/branch-heads/3538@{#1039}
OS | Mac OS X
Will close this one and let's retest it in the latest master, where https://github.com/brave/brave-core/pull/797 will land as well
Verification passed on
Brave | 0.58.11 Chromium: 71.0.3578.80聽(Official Build)聽beta聽(64-bit)
-- | --
Revision | 2ac50e7249fbd55e6f517a28131605c9fb9fe897-refs/branch-heads/3578@{#860}
OS | Windows 7 x64
Used Test Plan from https://github.com/brave/brave-core/pull/797 and STR from OP and comments.
Verification passed on
Brave | 0.58.11 Chromium: 71.0.3578.80聽(Official Build)聽beta聽(64-bit)
-- | --
Revision | 2ac50e7249fbd55e6f517a28131605c9fb9fe897-refs/branch-heads/3578@{#860}
OS | Linux
Verified passed with
Brave | 0.58.12 Chromium: 71.0.3578.80聽(Official Build)聽(64-bit)
-- | --
Revision | 2ac50e7249fbd55e6f517a28131605c9fb9fe897-refs/branch-heads/3578@{#860}
OS | Mac OS X