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

Unified Diff: src/com/dom_distiller/client/DomDistiller.java

Issue 661883003: add option for original domain (Closed) Base URL: https://code.google.com/p/dom-distiller/@master
Patch Set: rm empty line Created 6 years, 2 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
« no previous file with comments | « proto/dom_distiller.proto ('k') | src/com/dom_distiller/client/PagingLinksFinder.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/com/dom_distiller/client/DomDistiller.java
diff --git a/src/com/dom_distiller/client/DomDistiller.java b/src/com/dom_distiller/client/DomDistiller.java
index 05f8ec35f1b7707d621652be6784ae22f90df780..e19a8e7e7cd85cd5d7757438d11fbcf0f174c2e2 100644
--- a/src/com/dom_distiller/client/DomDistiller.java
+++ b/src/com/dom_distiller/client/DomDistiller.java
@@ -35,7 +35,8 @@ public class DomDistiller implements Exportable {
boolean textOnly = options.hasExtractTextOnly() && options.getExtractTextOnly();
content.setHtml(contentExtractor.extractContent(textOnly));
result.setDistilledContent(content);
- result.setPaginationInfo(PagingLinksFinder.getPaginationInfo());
+ String original_domain = options.hasOriginalDomain() ? options.getOriginalDomain() : "";
+ result.setPaginationInfo(PagingLinksFinder.getPaginationInfo(original_domain));
result.setMarkupInfo(contentExtractor.getMarkupParser().getMarkupInfo());
TimingInfo timingInfo = contentExtractor.getTimingInfo();
timingInfo.setTotalTime(DomUtil.getTime() - startTime);
« no previous file with comments | « proto/dom_distiller.proto ('k') | src/com/dom_distiller/client/PagingLinksFinder.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698