| Index: chrome/browser/search/instant_service_factory.cc
|
| diff --git a/chrome/browser/search/instant_service_factory.cc b/chrome/browser/search/instant_service_factory.cc
|
| index 513fbc945eb5df73559d7f488be9704cad20d464..0b1b4fbe76708b4b8cbfcf97d6c961b8dd590c7e 100644
|
| --- a/chrome/browser/search/instant_service_factory.cc
|
| +++ b/chrome/browser/search/instant_service_factory.cc
|
| @@ -4,6 +4,7 @@
|
|
|
| #include "chrome/browser/search/instant_service_factory.h"
|
|
|
| +#include "chrome/browser/profiles/incognito_helpers.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/profiles/profile_dependency_manager.h"
|
| #include "chrome/browser/search/instant_service.h"
|
| @@ -28,8 +29,9 @@ InstantServiceFactory::InstantServiceFactory()
|
| InstantServiceFactory::~InstantServiceFactory() {
|
| }
|
|
|
| -bool InstantServiceFactory::ServiceHasOwnInstanceInIncognito() const {
|
| - return true;
|
| +content::BrowserContext* InstantServiceFactory::GetBrowserContextToUse(
|
| + content::BrowserContext* context) const {
|
| + return chrome::GetBrowserContextOwnInstanceInIncognito(context);
|
| }
|
|
|
| ProfileKeyedService* InstantServiceFactory::BuildServiceInstanceFor(
|
|
|