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

Unified Diff: components/dom_distiller/core/javascript/dom_distiller_viewer.js

Issue 2108833002: Remove Simplify Page option from Print Preview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mark histogram entries as unused Created 4 years, 6 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/css/distilledpage.css ('k') | printing/print_job_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/dom_distiller/core/javascript/dom_distiller_viewer.js
diff --git a/components/dom_distiller/core/javascript/dom_distiller_viewer.js b/components/dom_distiller/core/javascript/dom_distiller_viewer.js
index 641c2958e09ac5b1bc212cd366b1f28ba3cb147b..e325f3c02166e03c1bc21f2625fd51582a8769bd 100644
--- a/components/dom_distiller/core/javascript/dom_distiller_viewer.js
+++ b/components/dom_distiller/core/javascript/dom_distiller_viewer.js
@@ -40,15 +40,6 @@ function fillYouTubePlaceholders() {
function showLoadingIndicator(isLastPage) {
document.getElementById('loadingIndicator').className =
isLastPage ? 'hidden' : 'visible';
- // This function will be one of the last things to occur when a page is
- // loaded. This is temporarily used to signal print preview to generate
- // a PDF.
- if (isLastPage && typeof isPrintPreviewDistiller !== 'undefined'
- && isPrintPreviewDistiller) {
- setTimeout(function() {
- window.location = window.location + "#loaded";
- }, 0);
- }
}
// Sets the title.
« no previous file with comments | « components/dom_distiller/core/css/distilledpage.css ('k') | printing/print_job_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698