| 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 94123fae6e3430f9da020f84b680aaea0731e55e..b82398511a20457ec6b83f37b37230ab09b07cd5 100644
|
| --- a/chrome/browser/resources/print_preview/native_layer.js
|
| +++ b/chrome/browser/resources/print_preview/native_layer.js
|
| @@ -489,7 +489,8 @@ cr.define('print_preview', function() {
|
| initialSettings['documentHasSelection'] || false,
|
| initialSettings['shouldPrintSelectionOnly'] || false,
|
| initialSettings['printerName'] || null,
|
| - initialSettings['appState'] || null);
|
| + initialSettings['appState'] || null,
|
| + initialSettings['defaultDestinationSelectionRules'] || null);
|
|
|
| var initialSettingsSetEvent = new Event(
|
| NativeLayer.EventType.INITIAL_SETTINGS_SET);
|
| @@ -932,6 +933,8 @@ cr.define('print_preview', function() {
|
| * @param {?string} systemDefaultDestinationId ID of the system default
|
| * destination.
|
| * @param {?string} serializedAppStateStr Serialized app state.
|
| + * @param {?string} serializedDefaultDestinationSelectionRulesStr Serialized
|
| + * default destination selection rules.
|
| * @constructor
|
| */
|
| function NativeInitialSettings(
|
| @@ -946,7 +949,8 @@ cr.define('print_preview', function() {
|
| documentHasSelection,
|
| selectionOnly,
|
| systemDefaultDestinationId,
|
| - serializedAppStateStr) {
|
| + serializedAppStateStr,
|
| + serializedDefaultDestinationSelectionRulesStr) {
|
|
|
| /**
|
| * Whether the print preview should be in auto-print mode.
|
| @@ -1031,6 +1035,14 @@ cr.define('print_preview', function() {
|
| * @private
|
| */
|
| this.serializedAppStateStr_ = serializedAppStateStr;
|
| +
|
| + /**
|
| + * Serialized default destination selection rules.
|
| + * @type {?string}
|
| + * @private
|
| + */
|
| + this.serializedDefaultDestinationSelectionRulesStr_ =
|
| + serializedDefaultDestinationSelectionRulesStr;
|
| };
|
|
|
| NativeInitialSettings.prototype = {
|
| @@ -1103,6 +1115,11 @@ cr.define('print_preview', function() {
|
| /** @return {?string} Serialized app state. */
|
| get serializedAppStateStr() {
|
| return this.serializedAppStateStr_;
|
| + },
|
| +
|
| + /** @return {?string} Serialized default destination selection rules. */
|
| + get serializedDefaultDestinationSelectionRulesStr() {
|
| + return this.serializedDefaultDestinationSelectionRulesStr_;
|
| }
|
| };
|
|
|
|
|