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 7bc75c3e578eb930fe7717559ee30ce382d4dcc2..c7b3fb9ce2646f3b3ce640ac104475021e37085b 100644 |
--- a/chrome/browser/dom_distiller/dom_distiller_service_factory.cc |
+++ b/chrome/browser/dom_distiller/dom_distiller_service_factory.cc |
@@ -7,10 +7,12 @@ |
#include "base/threading/sequenced_worker_pool.h" |
#include "components/browser_context_keyed_service/browser_context_dependency_manager.h" |
#include "components/dom_distiller/content/distiller_page_web_contents.h" |
+#include "components/dom_distiller/content/dom_distiller_viewer_source.h" |
#include "components/dom_distiller/core/distiller.h" |
#include "components/dom_distiller/core/dom_distiller_store.h" |
#include "content/public/browser/browser_context.h" |
#include "content/public/browser/browser_thread.h" |
+#include "content/public/browser/url_data_source.h" |
namespace dom_distiller { |
@@ -41,6 +43,7 @@ DomDistillerServiceFactory::~DomDistillerServiceFactory() {} |
BrowserContextKeyedService* DomDistillerServiceFactory::BuildServiceInstanceFor( |
content::BrowserContext* profile) const { |
+ content::URLDataSource::Add(profile, new DomDistillerViewerSource()); |
scoped_refptr<base::SequencedTaskRunner> background_task_runner = |
content::BrowserThread::GetBlockingPool()->GetSequencedTaskRunner( |