Index: chrome/browser/dom_distiller/tab_utils.cc |
diff --git a/chrome/browser/dom_distiller/tab_utils.cc b/chrome/browser/dom_distiller/tab_utils.cc |
index fda3c8d764bf4e5f65fb3c1ddb0921fc8097adfa..6a9bd4676b7c709870df619bedd8da2b18c7a083 100644 |
--- a/chrome/browser/dom_distiller/tab_utils.cc |
+++ b/chrome/browser/dom_distiller/tab_utils.cc |
@@ -18,6 +18,7 @@ |
#include "content/public/browser/navigation_controller.h" |
#include "content/public/browser/web_contents.h" |
#include "content/public/browser/web_contents_observer.h" |
+#include "content/public/browser/web_contents_source.h" |
namespace { |
@@ -143,6 +144,8 @@ void DistillCurrentPageAndView(content::WebContents* old_web_contents) { |
content::WebContents* new_web_contents = |
content::WebContents::Create(create_params); |
DCHECK(new_web_contents); |
+ WebContentsSource::CreateForWebContentsAndLocation(new_web_contents, |
+ FROM_HERE); |
// Copy all navigation state from the old WebContents to the new one. |
new_web_contents->GetController().CopyStateFrom( |