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

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

Issue 291823005: Restore Title identification. (Closed) Base URL: https://code.google.com/p/dom-distiller/@master
Patch Set: cleanup Created 6 years, 7 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: src/com/dom_distiller/client/ContentExtractor.java
diff --git a/src/com/dom_distiller/client/ContentExtractor.java b/src/com/dom_distiller/client/ContentExtractor.java
index 4f73d6163af61f6be5f3257ced864e3beaa6962a..3ea2c09abd47de79bd25c0b34a5f81f9477e7690 100644
--- a/src/com/dom_distiller/client/ContentExtractor.java
+++ b/src/com/dom_distiller/client/ContentExtractor.java
@@ -50,6 +50,7 @@ public class ContentExtractor implements Exportable {
}
TextDocument document = htmlParser.toTextDocument();
+ document.setTitle(Document.get().getTitle());
try {
CommonExtractors.ARTICLE_EXTRACTOR.process(document);
} catch (BoilerpipeProcessingException e) {

Powered by Google App Engine
This is Rietveld 408576698