Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(188)

Unified Diff: components/dom_distiller/content/distiller_page_web_contents.cc

Issue 1004223002: Pass more information by argument to the dom_distiller script. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/dom_distiller/content/distiller_page_web_contents.cc
diff --git a/components/dom_distiller/content/distiller_page_web_contents.cc b/components/dom_distiller/content/distiller_page_web_contents.cc
index 4c6ff1c6e07ca1eb93a07d35be8b7caa533f9afa..9bee2ecdb4641da0d1726c75f7a806645f0c838d 100644
--- a/components/dom_distiller/content/distiller_page_web_contents.cc
+++ b/components/dom_distiller/content/distiller_page_web_contents.cc
@@ -71,6 +71,14 @@ DistillerPageWebContents::~DistillerPageWebContents() {
web_contents_->SetDelegate(NULL);
}
+bool DistillerPageWebContents::StringifyOutput() {
+ return false;
+}
+
+bool DistillerPageWebContents::CreateNewContext() {
+ return true;
+}
+
void DistillerPageWebContents::DistillPageImpl(const GURL& url,
const std::string& script) {
DCHECK(browser_context_);

Powered by Google App Engine
This is Rietveld 408576698