Reset privet destination loading when destination store is reset
commit8b6ea075495daf178afc48e4aee8f5375df16bc2
authortbarzic <tbarzic@chromium.org>
Mon, 2 Feb 2015 19:23:15 +0000 (2 11:23 -0800)
committerCommit bot <commit-bot@chromium.org>
Mon, 2 Feb 2015 19:24:03 +0000 (2 19:24 +0000)
tree615d2b7acb1dabe9e7c1a64a7c1a921ef20f31c3
parent150b6efa5f82fda12ef1adcb4e4bfb540940aac5
Reset privet destination loading when destination store is reset

Resetting destination store will clear all destinations.
If hasLoadedAllPrivetDestinations is not reset, privet destination
list will not get repopulated after reset_ (provided that the privet
destination loading had previously finished)

BUG=None
TEST=
On network with some privet printers setup:
1. Open print preview (Ctrl+P) and try to change selected destination
2. There should be some privet printers listed under "Local destinations"
3. When local destination loading is done (the spinner disappears)
add another account
4. Make sure "Local Destinations" list gets repopulated with
privet printers

Review URL: https://codereview.chromium.org/871853003

Cr-Commit-Position: refs/heads/master@{#314176}
chrome/browser/resources/print_preview/data/destination_store.js