Commit 60854de1 authored by Daniel Bratell's avatar Daniel Bratell Committed by Commit Bot

Rename GetRestrictedCookieManager for more uniqueness

There are two overloaded GetRestrictedCookieManager functions in
different files which in certain non-standard jumbo configurations
end up in the same translation unit. When that happens,
base::Bind doesn't know which one to use and there is a compilation
error.

This patch renames one of them
GetRestrictedCookieManagerForWorker so that there will never be
any confusion.

Bug: 746953
Change-Id: I7b3e6ba32aed44e575ee108111871e45b5e2689c
Reviewed-on: https://chromium-review.googlesource.com/847010
Commit-Queue: Daniel Bratell <bratell@opera.com>
Reviewed-by: default avatarSam McNally <sammc@chromium.org>
Reviewed-by: default avatarAvi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#526754}
parent 88982246
......@@ -87,7 +87,7 @@ void ForwardServiceRequest(const char* service_name,
connector->BindInterface(service_name, std::move(request));
}
void GetRestrictedCookieManager(
void GetRestrictedCookieManagerForWorker(
network::mojom::RestrictedCookieManagerRequest request,
RenderProcessHost* render_process_host,
const url::Origin& origin) {
......@@ -163,7 +163,7 @@ void RendererInterfaceBinders::InitializeParameterizedBinderRegistry() {
parameterized_binder_registry_.AddInterface(
base::BindRepeating(&BackgroundFetchServiceImpl::Create));
parameterized_binder_registry_.AddInterface(
base::BindRepeating(GetRestrictedCookieManager));
base::BindRepeating(GetRestrictedCookieManagerForWorker));
}
RendererInterfaceBinders& GetRendererInterfaceBinders() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment