DescriptionMD Settings: Allow search within settings to track multiple requests separately.
Previously it was always assumed that two calls to SearchManager#search(), one
for the "basic" and one for the "advanced" page, would happen in the same turn
of the JS message loop. For this reason it was safe to use the same queue for
tracking all subtasks, as well as use the same promise to signify the completion
of both calls.
Making the "advanced" page lazy loaded (upcoming change), means that the 2nd
call to search() can't be made in the same turn of the message loop, and
therefore tracking the two calls requires different queues and different
promises.
BUG=597347
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
Review-Url: https://codereview.chromium.org/2739323005
Cr-Commit-Position: refs/heads/master@{#456626}
Committed: https://chromium.googlesource.com/chromium/src/+/08266b3fca707804065a2cfd60331722ade41969
Patch Set 1 #Patch Set 2 : Cleanup #Patch Set 3 : Add tests #Patch Set 4 : Nits. #Patch Set 5 : Fix closure compilation. #Patch Set 6 : Fix test error. #
Total comments: 16
Patch Set 7 : Address comments. #
Messages
Total messages: 31 (25 generated)
|