Chromium Code Reviews| 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 268e1b0f6fd2471f9762cea9e9f0a23ac204c3cf..b3249f2de77fb6faf13cfdbbdcd790c522f949c0 100644 |
| --- a/chrome/browser/resources/print_preview/data/destination_store.js |
| +++ b/chrome/browser/resources/print_preview/data/destination_store.js |
| @@ -485,6 +485,8 @@ cr.define('print_preview', function() { |
| this.nativeLayer_.startGetPrivetDestinations(); |
| cr.dispatchSimpleEvent( |
| this, DestinationStore.EventType.DESTINATION_SEARCH_STARTED); |
| + if (this.privetDestinationSearchInProgress_) |
|
tbarzic
2015/02/02 20:19:17
oops, this should go before we set this.privetDest
|
| + clearTimeout(this.privetSearchTimeout_); |
| this.privetSearchTimeout_ = setTimeout( |
| this.endPrivetPrinterSearch_.bind(this), |
| DestinationStore.PRIVET_SEARCH_DURATION_); |
| @@ -713,6 +715,7 @@ cr.define('print_preview', function() { |
| this.selectDestination(null); |
| this.loadedCloudOrigins_ = {}; |
| this.hasLoadedAllLocalDestinations_ = false; |
| + this.hasLoadedAllPrivetDestinations_ = false; |
| clearTimeout(this.autoSelectTimeout_); |
| this.autoSelectTimeout_ = setTimeout( |