| Index: chrome/browser/resources/print_preview/data/destination_store.js
|
| diff --git a/chrome/browser/resources/print_preview/data/destination_store.js b/chrome/browser/resources/print_preview/data/destination_store.js
|
| index be43e58830798b92cf57c3b70cf15ca9ad367dc5..970bc5df4e7d448cac3b4b42e285a046db0506a1 100644
|
| --- a/chrome/browser/resources/print_preview/data/destination_store.js
|
| +++ b/chrome/browser/resources/print_preview/data/destination_store.js
|
| @@ -143,14 +143,6 @@ cr.define('print_preview', function() {
|
| };
|
|
|
| /**
|
| - * Number of built-in print destinations. This includes the "Save as PDF"
|
| - * destination.
|
| - * @type {number}
|
| - * @const
|
| - */
|
| - DestinationStore.BUILT_IN_DESTINATION_COUNT = 1;
|
| -
|
| - /**
|
| * Delay in milliseconds before the destination store ignores the initial
|
| * destination ID and just selects any printer (since the initial destination
|
| * was not found).
|
| @@ -283,6 +275,18 @@ cr.define('print_preview', function() {
|
| }
|
| },
|
|
|
| + /**
|
| + * @return {boolean} Whether only default cloud destinations have been
|
| + * loaded.
|
| + */
|
| + hasOnlyDefaultCloudDestinations: function() {
|
| + return this.destinations_.every(function(dest) {
|
| + return dest.isLocal ||
|
| + dest.id == print_preview.Destination.GooglePromotedId.DOCS ||
|
| + dest.id == print_preview.Destination.GooglePromotedId.FEDEX;
|
| + });
|
| + },
|
| +
|
| /** @param {!print_preview.Destination} Destination to select. */
|
| selectDestination: function(destination) {
|
| this.selectedDestination_ = destination;
|
|
|