Revert of Cleanup dependencies in web_resource (patchset #3 id:220001 of https://codereview.chromium.org/
1288933002/ )
Reason for revert:
This is CL causes flaky failures on the bots:
PromoResourceServiceTest.AppLauncherPromoTest (run #1):
[ RUN ] PromoResourceServiceTest.AppLauncherPromoTest
../../chrome/browser/web_resource/promo_resource_service_unittest.cc:581: Failure
Value of: promo_test.promo().CanShow()
Actual: true
Expected: false
[ FAILED ] PromoResourceServiceTest.AppLauncherPromoTest (1 ms)
http://build.chromium.org/p/chromium.memory/builders/Linux%20ASan%20LSan%20Tests%20%281%29/builds/16949
http://build.chromium.org/p/chromium.linux/builders/Linux%20GN/builds/30843
Original issue's description:
> Cleanup dependencies in web_resource
>
> This CL removes the dependencies on channel_info,
> browser_process and content metrics.
> The goal of this work is to enable componentization of this code,
> so that it can be shared on iOS.
>
> notification_promo_helper is introduced so that code in //chrome
> does not have to explicitly pass all the arguments to the static
> methods in NotificationPromo.
> This will also avoid updating all the callsites when future CLs
> add even more arguments.
>
> BUG=371477
> TBR=sky
>
> Committed: https://crrev.com/
de37df07399b369ce22c332ac67fb2cce38f739e
> Cr-Commit-Position: refs/heads/master@{#344779}
TBR=rsesek@chromium.org,sky@chromium.org,droger@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=371477
Review URL: https://codereview.chromium.org/
1303383002
Cr-Commit-Position: refs/heads/master@{#344809}