Index: chrome/browser/dom_distiller/dom_distiller_service_factory.cc |
diff --git a/chrome/browser/dom_distiller/dom_distiller_service_factory.cc b/chrome/browser/dom_distiller/dom_distiller_service_factory.cc |
index f249672f421c7eaba34eebc9f8bf74b95048e115..4de2b1755b579f70622e5687e305167b072d5673 100644 |
--- a/chrome/browser/dom_distiller/dom_distiller_service_factory.cc |
+++ b/chrome/browser/dom_distiller/dom_distiller_service_factory.cc |
@@ -5,6 +5,7 @@ |
#include "chrome/browser/dom_distiller/dom_distiller_service_factory.h" |
#include "base/threading/sequenced_worker_pool.h" |
+#include "chrome/browser/profiles/incognito_helpers.h" |
#include "chrome/browser/profiles/profile.h" |
#include "components/dom_distiller/content/distiller_page_web_contents.h" |
#include "components/dom_distiller/core/article_entry.h" |
@@ -92,9 +93,8 @@ KeyedService* DomDistillerServiceFactory::BuildServiceInstanceFor( |
content::BrowserContext* DomDistillerServiceFactory::GetBrowserContextToUse( |
content::BrowserContext* context) const { |
- // TODO(cjhopman): Do we want this to be |
- // GetBrowserContextRedirectedInIncognito? |
- return context; |
+ // Makes normal profile and off-the-record profile use same service instance. |
+ return chrome::GetBrowserContextRedirectedInIncognito(context); |
} |
} // namespace dom_distiller |