Index: chrome/browser/resources/print_preview/native_layer.js |
diff --git a/chrome/browser/resources/print_preview/native_layer.js b/chrome/browser/resources/print_preview/native_layer.js |
index 2cf0eaf6ea1985bab321b1cae6adc48290cdbcf3..127e993c3d9d092d580a63826165fb431b2d1081 100644 |
--- a/chrome/browser/resources/print_preview/native_layer.js |
+++ b/chrome/browser/resources/print_preview/native_layer.js |
@@ -67,8 +67,6 @@ cr.define('print_preview', function() { |
this.onEnableManipulateSettingsForTest_.bind(this); |
global.printPresetOptionsFromDocument = |
this.onPrintPresetOptionsFromDocument_.bind(this); |
- global.allowDistillPage = |
- this.allowDistillPage_.bind(this); |
global.onProvisionalPrinterResolved = |
this.onProvisionalDestinationResolved_.bind(this); |
global.failedToResolveProvisionalPrinter = |
@@ -82,7 +80,6 @@ cr.define('print_preview', function() { |
*/ |
NativeLayer.EventType = { |
ACCESS_TOKEN_READY: 'print_preview.NativeLayer.ACCESS_TOKEN_READY', |
- ALLOW_DISTILL_PAGE: 'print_preview.NativeLayer.ALLOW_DISTILL_PAGE', |
CAPABILITIES_SET: 'print_preview.NativeLayer.CAPABILITIES_SET', |
CLOUD_PRINT_ENABLE: 'print_preview.NativeLayer.CLOUD_PRINT_ENABLE', |
DESTINATIONS_RELOAD: 'print_preview.NativeLayer.DESTINATIONS_RELOAD', |
@@ -276,7 +273,6 @@ cr.define('print_preview', function() { |
'landscape': printTicketStore.landscape.getValue(), |
'color': this.getNativeColorModel_(destination, printTicketStore.color), |
'headerFooterEnabled': printTicketStore.headerFooter.getValue(), |
- 'distillPage': printTicketStore.distillPage.getValue(), |
'marginsType': printTicketStore.marginsType.getValue(), |
'isFirstRequest': requestId == 0, |
'requestID': requestId, |
@@ -357,7 +353,6 @@ cr.define('print_preview', function() { |
'landscape': printTicketStore.landscape.getValue(), |
'color': this.getNativeColorModel_(destination, printTicketStore.color), |
'headerFooterEnabled': printTicketStore.headerFooter.getValue(), |
- 'distillPage': printTicketStore.distillPage.getValue(), |
'marginsType': printTicketStore.marginsType.getValue(), |
'generateDraftData': true, // TODO(rltoscano): What should this be? |
'duplex': printTicketStore.duplex.getValue() ? |
@@ -741,16 +736,6 @@ cr.define('print_preview', function() { |
}, |
/** |
- * Updates the interface to show the "Simplify Page" option. |
- * @private |
- */ |
- allowDistillPage_: function() { |
- var allowDistillPageEvent = new Event( |
- NativeLayer.EventType.ALLOW_DISTILL_PAGE); |
- this.dispatchEvent(allowDistillPageEvent); |
- }, |
- |
- /** |
* Simulates a user click on the print preview dialog cancel button. Used |
* only for testing. |
* @private |