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

Issue 2739323005: MD Settings: Allow search within settings to track multiple requests separately. (Closed)

Created:
3 years, 9 months ago by dpapad
Modified:
3 years, 9 months ago
Reviewers:
Dan Beam
CC:
arv+watch_chromium.org, chromium-reviews, dbeam+watch-settings_chromium.org, michaelpg+watch-md-settings_chromium.org, michaelpg+watch-md-ui_chromium.org, stevenjb+watch-md-settings_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD 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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -58 lines) Patch
M chrome/browser/resources/settings/basic_page/basic_page.js View 1 2 3 4 5 6 1 chunk +17 lines, -5 lines 0 comments Download
M chrome/browser/resources/settings/search_settings.js View 1 2 3 4 5 6 7 chunks +72 lines, -46 lines 0 comments Download
M chrome/browser/resources/settings/settings_main/settings_main.js View 1 2 3 4 5 6 1 chunk +6 lines, -6 lines 0 comments Download
M chrome/test/data/webui/settings/basic_page_browsertest.js View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/test/data/webui/settings/search_settings_test.js View 1 2 3 4 5 6 1 chunk +31 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (25 generated)
dpapad
3 years, 9 months ago (2017-03-13 21:01:49 UTC) #17
Dan Beam
https://codereview.chromium.org/2739323005/diff/100001/chrome/browser/resources/settings/basic_page/basic_page.js File chrome/browser/resources/settings/basic_page/basic_page.js (right): https://codereview.chromium.org/2739323005/diff/100001/chrome/browser/resources/settings/basic_page/basic_page.js#newcode113 chrome/browser/resources/settings/basic_page/basic_page.js:113: settings.getSearchManager().search( wrong indent, when you add less indent dare ...
3 years, 9 months ago (2017-03-14 00:44:28 UTC) #20
dpapad
https://codereview.chromium.org/2739323005/diff/100001/chrome/browser/resources/settings/basic_page/basic_page.js File chrome/browser/resources/settings/basic_page/basic_page.js (right): https://codereview.chromium.org/2739323005/diff/100001/chrome/browser/resources/settings/basic_page/basic_page.js#newcode113 chrome/browser/resources/settings/basic_page/basic_page.js:113: settings.getSearchManager().search( On 2017/03/14 at 00:44:27, Dan Beam wrote: > ...
3 years, 9 months ago (2017-03-14 03:28:11 UTC) #21
Dan Beam
lgtm
3 years, 9 months ago (2017-03-14 04:56:33 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2739323005/120001
3 years, 9 months ago (2017-03-14 04:56:48 UTC) #28
commit-bot: I haz the power
3 years, 9 months ago (2017-03-14 05:13:54 UTC) #31
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/08266b3fca707804065a2cfd6033...

Powered by Google App Engine
This is Rietveld 408576698