| Index: chrome/browser/autofill/autocheckout_whitelist_manager_factory.cc
|
| diff --git a/chrome/browser/autofill/autocheckout_whitelist_manager_factory.cc b/chrome/browser/autofill/autocheckout_whitelist_manager_factory.cc
|
| index 3024606a10aab6de9060ad072a808d9ebe9f21e5..0d874bce45ed6a6f9c5efc10fe569b6f394de7c7 100644
|
| --- a/chrome/browser/autofill/autocheckout_whitelist_manager_factory.cc
|
| +++ b/chrome/browser/autofill/autocheckout_whitelist_manager_factory.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/memory/singleton.h"
|
| +#include "chrome/browser/profiles/incognito_helpers.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/profiles/profile_dependency_manager.h"
|
| #include "components/autofill/browser/autocheckout/whitelist_manager.h"
|
| @@ -77,8 +78,9 @@ WhitelistManagerFactory::BuildServiceInstanceFor(
|
| return service;
|
| }
|
|
|
| -bool WhitelistManagerFactory::ServiceRedirectedInIncognito() const {
|
| - return true;
|
| +content::BrowserContext* WhitelistManagerFactory::GetBrowserContextToUse(
|
| + content::BrowserContext* context) const {
|
| + return chrome::GetBrowserContextRedirectedInIncognito(context);
|
| }
|
|
|
| bool WhitelistManagerFactory::ServiceIsNULLWhileTesting() const {
|
|
|