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

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

Issue 254483003: Start requiring DistillerPage for calls to DomDistillerService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Indent fixes (full git cl format) Created 6 years, 8 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/core/viewer.cc
diff --git a/components/dom_distiller/core/viewer.cc b/components/dom_distiller/core/viewer.cc
index 7f44a95d0d5bd0a025b387f13bf96aec618974f1..365a536e421001b0f0283b87a252c647dd204891 100644
--- a/components/dom_distiller/core/viewer.cc
+++ b/components/dom_distiller/core/viewer.cc
@@ -111,11 +111,15 @@ scoped_ptr<ViewerHandle> CreateViewRequest(
}
if (has_valid_entry_id) {
- return dom_distiller_service->ViewEntry(view_request_delegate, entry_id)
- .Pass();
+ return dom_distiller_service->ViewEntry(view_request_delegate,
+ dom_distiller_service
+ ->CreateDefaultDistillerPage(),
+ entry_id).Pass();
} else if (has_valid_url) {
- return dom_distiller_service->ViewUrl(view_request_delegate, requested_url)
- .Pass();
+ return dom_distiller_service->ViewUrl(view_request_delegate,
+ dom_distiller_service
+ ->CreateDefaultDistillerPage(),
+ requested_url).Pass();
}
// It is invalid to not specify a query param for |kEntryIdKey| or |kUrlKey|.
« no previous file with comments | « components/dom_distiller/core/task_tracker_unittest.cc ('k') | components/dom_distiller/core/viewer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698