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

Unified Diff: java/org/chromium/distiller/DocumentTitleGetter.java

Issue 2203563002: Extract image URLs in srcset as well (Closed) Base URL: git@github.com:chromium/dom-distiller.git@master
Patch Set: format Created 4 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
« no previous file with comments | « java/org/chromium/distiller/ContentExtractor.java ('k') | java/org/chromium/distiller/DomUtil.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: java/org/chromium/distiller/DocumentTitleGetter.java
diff --git a/java/org/chromium/distiller/DocumentTitleGetter.java b/java/org/chromium/distiller/DocumentTitleGetter.java
index edf59f55a5535c94a904289685747c78e2d3afa5..cda8d0c9ac7fb0ddbb403e21dd3bac60724cf60d 100644
--- a/java/org/chromium/distiller/DocumentTitleGetter.java
+++ b/java/org/chromium/distiller/DocumentTitleGetter.java
@@ -46,7 +46,7 @@ public class DocumentTitleGetter {
currTitle = origTitle = DomUtil.javascriptTextContent(titles.getItem(0));
}
}
- if (currTitle == "") return "";
+ if (currTitle.isEmpty()) return "";
if (StringUtil.match(currTitle, " [\\|\\-] ")) { // Title has '|' and/or '-'.
// Get part before last '|' or '-'.
« no previous file with comments | « java/org/chromium/distiller/ContentExtractor.java ('k') | java/org/chromium/distiller/DomUtil.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698