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

Unified Diff: components/dom_distiller/core/page_distiller.cc

Issue 167963003: Support for distilling prior pages in an article. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 10 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 | « components/dom_distiller/core/page_distiller.h ('k') | third_party/readability/js/readability.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/dom_distiller/core/page_distiller.cc
diff --git a/components/dom_distiller/core/page_distiller.cc b/components/dom_distiller/core/page_distiller.cc
index d0af644b3a2208df0a8282d6469a13fc4c6e53f6..7912b0fd2df91449f82a95e4ae93cb7711715257 100644
--- a/components/dom_distiller/core/page_distiller.cc
+++ b/components/dom_distiller/core/page_distiller.cc
@@ -74,10 +74,12 @@ void PageDistiller::OnExecuteJavaScriptDone(const GURL& page_url,
case 1:
page_info->html = item;
break;
- case 2: {
+ case 2:
page_info->next_page_url = item;
break;
- }
+ case 3:
+ page_info->prev_page_url = item;
+ break;
default:
page_info->image_urls.push_back(item);
}
« no previous file with comments | « components/dom_distiller/core/page_distiller.h ('k') | third_party/readability/js/readability.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698