Index: chrome/browser/profiles/off_the_record_profile_impl.cc |
diff --git a/chrome/browser/profiles/off_the_record_profile_impl.cc b/chrome/browser/profiles/off_the_record_profile_impl.cc |
index ef044dffaf316c53e9cb128fe3da6e5f26402f30..4df068db2e8ab59c96abf0b040accd2cc8430a1c 100644 |
--- a/chrome/browser/profiles/off_the_record_profile_impl.cc |
+++ b/chrome/browser/profiles/off_the_record_profile_impl.cc |
@@ -17,6 +17,7 @@ |
#include "chrome/browser/background/background_contents_service_factory.h" |
#include "chrome/browser/browser_process.h" |
#include "chrome/browser/content_settings/host_content_settings_map.h" |
+#include "chrome/browser/dom_distiller/profile_utils.h" |
#include "chrome/browser/download/chrome_download_manager_delegate.h" |
#include "chrome/browser/download/download_service.h" |
#include "chrome/browser/download/download_service_factory.h" |
@@ -160,6 +161,10 @@ void OffTheRecordProfileImpl::Init() { |
BrowserThread::IO, FROM_HERE, |
base::Bind(&NotifyOTRProfileCreatedOnIOThread, profile_, this)); |
#endif |
+ |
+ // The DomDistillerViewerSource is not a normal WebUI so it must be registered |
+ // as a URLDataSource early. |
+ RegisterDomDistillerViewerSource(this); |
} |
OffTheRecordProfileImpl::~OffTheRecordProfileImpl() { |