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

Unified Diff: chrome/browser/resources/print_preview/data/destination_store.js

Issue 871853003: Reset privet destination loading when destination store is reset (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698