Commit 4852a5e2 authored by Maks Orlovich's avatar Maks Orlovich Committed by Commit Bot

Remove no longer used URLRequestContext argument to GCMProfileService ctor.

Cq-Include-Trybots: luci.chromium.try:ios-simulator-full-configs;master.tryserver.chromium.mac:ios-simulator-cronet
Change-Id: I719e604e78dcbd9e20e9569e99f3255684f368e9
Reviewed-on: https://chromium-review.googlesource.com/1172924
Commit-Queue: Maks Orlovich <morlovich@chromium.org>
Reviewed-by: default avatarPeter Beverloo <peter@chromium.org>
Reviewed-by: default avatarRohit Rao <rohitrao@chromium.org>
Cr-Commit-Position: refs/heads/master@{#584525}
parent 26cd0cc9
......@@ -228,7 +228,7 @@ class ExtensionGCMAppHandlerTest : public testing::Test {
base::CreateSequencedTaskRunnerWithTraits(
{base::MayBlock(), base::TaskShutdownBehavior::SKIP_ON_SHUTDOWN}));
return std::make_unique<gcm::GCMProfileService>(
profile->GetPrefs(), profile->GetPath(), profile->GetRequestContext(),
profile->GetPrefs(), profile->GetPath(),
base::BindRepeating(&RequestProxyResolvingSocketFactory, profile),
content::BrowserContext::GetDefaultStoragePartition(profile)
->GetURLLoaderFactoryForBrowserProcess(),
......
......@@ -111,7 +111,7 @@ KeyedService* GCMProfileServiceFactory::BuildServiceInstanceFor(
new GCMProfileService(profile->GetPath(), blocking_task_runner));
#else
service = std::make_unique<GCMProfileService>(
profile->GetPrefs(), profile->GetPath(), profile->GetRequestContext(),
profile->GetPrefs(), profile->GetPath(),
base::BindRepeating(&RequestProxyResolvingSocketFactory, profile),
content::BrowserContext::GetDefaultStoragePartition(profile)
->GetURLLoaderFactoryForBrowserProcess(),
......
......@@ -71,7 +71,7 @@ std::unique_ptr<KeyedService> BuildGCMProfileService(
base::CreateSequencedTaskRunnerWithTraits(
{base::MayBlock(), base::TaskShutdownBehavior::SKIP_ON_SHUTDOWN}));
return std::make_unique<gcm::GCMProfileService>(
profile->GetPrefs(), profile->GetPath(), profile->GetRequestContext(),
profile->GetPrefs(), profile->GetPath(),
base::BindRepeating(&RequestProxyResolvingSocketFactory, profile),
content::BrowserContext::GetDefaultStoragePartition(profile)
->GetURLLoaderFactoryForBrowserProcess(),
......
......@@ -142,7 +142,6 @@ GCMProfileService::GCMProfileService(
GCMProfileService::GCMProfileService(
PrefService* prefs,
base::FilePath path,
net::URLRequestContextGetter* request_context,
base::RepeatingCallback<
void(base::WeakPtr<GCMProfileService>,
network::mojom::ProxyResolvingSocketFactoryRequest)>
......
......@@ -30,10 +30,6 @@ namespace identity {
class IdentityManager;
}
namespace net {
class URLRequestContextGetter;
}
namespace network {
class SharedURLLoaderFactory;
}
......@@ -57,7 +53,6 @@ class GCMProfileService : public KeyedService {
GCMProfileService(
PrefService* prefs,
base::FilePath path,
net::URLRequestContextGetter* request_context,
base::RepeatingCallback<
void(base::WeakPtr<GCMProfileService>,
network::mojom::ProxyResolvingSocketFactoryRequest)>
......
......@@ -92,7 +92,6 @@ IOSChromeGCMProfileServiceFactory::BuildServiceInstanceFor(
ios::ChromeBrowserState::FromBrowserState(context);
return std::make_unique<gcm::GCMProfileService>(
browser_state->GetPrefs(), browser_state->GetStatePath(),
browser_state->GetRequestContext(),
base::BindRepeating(&RequestProxyResolvingSocketFactory, context),
browser_state->GetSharedURLLoaderFactory(), ::GetChannel(),
GetProductCategoryForSubtypes(),
......
......@@ -92,7 +92,6 @@ WebViewGCMProfileServiceFactory::BuildServiceInstanceFor(
WebViewBrowserState::FromBrowserState(context);
return std::make_unique<gcm::GCMProfileService>(
browser_state->GetPrefs(), browser_state->GetStatePath(),
browser_state->GetRequestContext(),
base::BindRepeating(&RequestProxyResolvingSocketFactory, context),
browser_state->GetSharedURLLoaderFactory(),
version_info::Channel::UNKNOWN, GetProductCategoryForSubtypes(),
......
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