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

Unified Diff: chrome/browser/resources/pdf/pdf_scripting_api.js

Issue 1085483002: Revert of Use custom scrollbars for print preview on non-retina mac displays. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « chrome/browser/resources/pdf/main.js ('k') | chrome/browser/resources/pdf/scrollbars_mac.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/pdf/pdf_scripting_api.js
diff --git a/chrome/browser/resources/pdf/pdf_scripting_api.js b/chrome/browser/resources/pdf/pdf_scripting_api.js
index fa570aeeb989b0d5f62c29660ceaf7cadb3d92a5..84b94b12450f611cde0e95e394438f6b15a4b465 100644
--- a/chrome/browser/resources/pdf/pdf_scripting_api.js
+++ b/chrome/browser/resources/pdf/pdf_scripting_api.js
@@ -250,8 +250,6 @@
},
};
-var IS_MAC_PARAM = 'isMac&';
-
/**
* Creates a PDF viewer with a scripting interface. This is basically 1) an
* iframe which is navigated to the PDF viewer extension and 2) a scripting
@@ -262,11 +260,9 @@
*/
function PDFCreateOutOfProcessPlugin(src) {
var iframe = window.document.createElement('iframe');
- var isMac = cr.isMac ? IS_MAC_PARAM : '';
iframe.setAttribute(
'src',
- 'chrome-extension://mhjfbmdgcfjbbpaeojofohoefgiehjai/index.html?' +
- isMac + src);
+ 'chrome-extension://mhjfbmdgcfjbbpaeojofohoefgiehjai/index.html?' + src);
// Prevent the frame from being tab-focusable.
iframe.setAttribute('tabindex', '-1');
var client = new PDFScriptingAPI(window);
« no previous file with comments | « chrome/browser/resources/pdf/main.js ('k') | chrome/browser/resources/pdf/scrollbars_mac.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698