| Index: chrome/browser/subresource_filter/subresource_filter_profile_context_factory.cc
|
| diff --git a/chrome/browser/subresource_filter/subresource_filter_profile_context_factory.cc b/chrome/browser/subresource_filter/subresource_filter_profile_context_factory.cc
|
| index 1d0878d84a0be2f97b5b786dd11256f3963dd432..3faa39748b8c72aa5d0fd6918802fcb6e12c2eb2 100644
|
| --- a/chrome/browser/subresource_filter/subresource_filter_profile_context_factory.cc
|
| +++ b/chrome/browser/subresource_filter/subresource_filter_profile_context_factory.cc
|
| @@ -11,9 +11,10 @@
|
| #include "components/keyed_service/core/keyed_service.h"
|
|
|
| // static
|
| -void SubresourceFilterProfileContextFactory::EnsureForProfile(
|
| - Profile* profile) {
|
| - GetInstance()->GetServiceForBrowserContext(profile, true /* create */);
|
| +SubresourceFilterProfileContext*
|
| +SubresourceFilterProfileContextFactory::GetForProfile(Profile* profile) {
|
| + return static_cast<SubresourceFilterProfileContext*>(
|
| + GetInstance()->GetServiceForBrowserContext(profile, true /* create */));
|
| }
|
|
|
| // static
|
| @@ -31,3 +32,9 @@ KeyedService* SubresourceFilterProfileContextFactory::BuildServiceInstanceFor(
|
| content::BrowserContext* profile) const {
|
| return new SubresourceFilterProfileContext(static_cast<Profile*>(profile));
|
| }
|
| +
|
| +content::BrowserContext*
|
| +SubresourceFilterProfileContextFactory::GetBrowserContextToUse(
|
| + content::BrowserContext* context) const {
|
| + return context;
|
| +}
|
|
|