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

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

Issue 1231083007: Expose distiller functions to JavaScript (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor-content
Patch Set: Function rename and remove unnecessary code Created 5 years, 5 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/browser/distiller_page_web_contents.cc
diff --git a/components/dom_distiller/content/browser/distiller_page_web_contents.cc b/components/dom_distiller/content/browser/distiller_page_web_contents.cc
index 0173212f3dfc7e14d8cfb820ea3d6a4d901fd60c..f6255926c5a54c83678f2259c0ef8e83b5bf3050 100644
--- a/components/dom_distiller/content/browser/distiller_page_web_contents.cc
+++ b/components/dom_distiller/content/browser/distiller_page_web_contents.cc
@@ -39,9 +39,9 @@ SourcePageHandleWebContents::~SourcePageHandleWebContents() {
scoped_ptr<DistillerPage> DistillerPageWebContentsFactory::CreateDistillerPage(
const gfx::Size& render_view_size) const {
DCHECK(browser_context_);
- return scoped_ptr<DistillerPage>(new DistillerPageWebContents(
- browser_context_, render_view_size,
- scoped_ptr<SourcePageHandleWebContents>()));
+ return scoped_ptr<DistillerPage>(
+ new DistillerPageWebContents(browser_context_, render_view_size,
+ scoped_ptr<SourcePageHandleWebContents>()));
}
scoped_ptr<DistillerPage>
@@ -76,11 +76,11 @@ DistillerPageWebContents::~DistillerPageWebContents() {
}
bool DistillerPageWebContents::StringifyOutput() {
- return false;
+ return false;
}
bool DistillerPageWebContents::CreateNewContext() {
- return true;
+ return true;
}
void DistillerPageWebContents::DistillPageImpl(const GURL& url,

Powered by Google App Engine
This is Rietveld 408576698