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

Issue 1622663002: WebUI: Replace cr.sendWithCallback with cr.sendWithPromise. (Closed)

Created:
4 years, 11 months ago by dpapad
Modified:
4 years, 11 months ago
Reviewers:
Dan Beam
CC:
chromium-reviews, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

WebUI: Replacing cr.sendWithCallback with cr.sendWithPromise. BUG=580633 Committed: https://crrev.com/09d947a9ce90972275ff96009396a2c166a5b5b8 Cr-Commit-Position: refs/heads/master@{#371448}

Patch Set 1 #

Patch Set 2 : Migrating caller + cleanups. #

Total comments: 12

Patch Set 3 : Addressing comments #

Patch Set 4 : Remove usage of Map for now. #

Total comments: 14

Patch Set 5 : Nits. #

Total comments: 6

Patch Set 6 : Addressing comments. #

Patch Set 7 : Addressing comments: Removing new line before anonymous function. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -99 lines) Patch
M chrome/browser/resources/settings/appearance_page/appearance_page.js View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/data/webui/cr_test.html View 1 2 3 chunks +3 lines, -68 lines 0 comments Download
A chrome/test/data/webui/webui_resource_async_browsertest.js View 1 2 3 4 5 6 1 chunk +81 lines, -0 lines 1 comment Download
M ui/webui/resources/js/cr.js View 1 2 3 4 5 2 chunks +31 lines, -29 lines 1 comment Download

Messages

Total messages: 20 (7 generated)
dpapad
https://codereview.chromium.org/1622663002/diff/40001/chrome/test/data/webui/cr_test.html File chrome/test/data/webui/cr_test.html (left): https://codereview.chromium.org/1622663002/diff/40001/chrome/test/data/webui/cr_test.html#oldcode282 chrome/test/data/webui/cr_test.html:282: function testSendWithCallback_PassesJSArgs() { Interesting fact. Both this function and ...
4 years, 11 months ago (2016-01-22 23:03:23 UTC) #5
Dan Beam
enjoy reverting back to not using Map! https://codereview.chromium.org/1622663002/diff/40001/chrome/test/data/webui/cr_test.html File chrome/test/data/webui/cr_test.html (right): https://codereview.chromium.org/1622663002/diff/40001/chrome/test/data/webui/cr_test.html#newcode247 chrome/test/data/webui/cr_test.html:247: x, z, ...
4 years, 11 months ago (2016-01-23 02:48:51 UTC) #6
dpapad
https://codereview.chromium.org/1622663002/diff/40001/chrome/test/data/webui/cr_test.html File chrome/test/data/webui/cr_test.html (right): https://codereview.chromium.org/1622663002/diff/40001/chrome/test/data/webui/cr_test.html#newcode247 chrome/test/data/webui/cr_test.html:247: x, z, 'Should return a different object after clearing ...
4 years, 11 months ago (2016-01-25 18:34:23 UTC) #7
Dan Beam
looks pretty good to me https://codereview.chromium.org/1622663002/diff/40001/chrome/test/data/webui/cr_test.html File chrome/test/data/webui/cr_test.html (right): https://codereview.chromium.org/1622663002/diff/40001/chrome/test/data/webui/cr_test.html#newcode247 chrome/test/data/webui/cr_test.html:247: x, z, 'Should return ...
4 years, 11 months ago (2016-01-25 18:48:37 UTC) #8
dpapad
https://codereview.chromium.org/1622663002/diff/80001/chrome/test/data/webui/webui_resource_async_browsertest.js File chrome/test/data/webui/webui_resource_async_browsertest.js (right): https://codereview.chromium.org/1622663002/diff/80001/chrome/test/data/webui/webui_resource_async_browsertest.js#newcode40 chrome/test/data/webui/webui_resource_async_browsertest.js:40: var expectedChromeSendMessageName = 'echoMessage'; On 2016/01/25 at 18:48:37, Dan ...
4 years, 11 months ago (2016-01-25 19:10:36 UTC) #9
Dan Beam
https://codereview.chromium.org/1622663002/diff/80001/ui/webui/resources/js/cr.js File ui/webui/resources/js/cr.js (right): https://codereview.chromium.org/1622663002/diff/80001/ui/webui/resources/js/cr.js#newcode344 ui/webui/resources/js/cr.js:344: resolverFn(responseArgs.length == 0 ? undefined : responseArgs); On 2016/01/25 ...
4 years, 11 months ago (2016-01-25 23:13:38 UTC) #10
dpapad
https://codereview.chromium.org/1622663002/diff/80001/ui/webui/resources/js/cr.js File ui/webui/resources/js/cr.js (right): https://codereview.chromium.org/1622663002/diff/80001/ui/webui/resources/js/cr.js#newcode344 ui/webui/resources/js/cr.js:344: resolverFn(responseArgs.length == 0 ? undefined : responseArgs); Changed it ...
4 years, 11 months ago (2016-01-25 23:54:44 UTC) #11
Dan Beam
https://codereview.chromium.org/1622663002/diff/100001/chrome/browser/resources/settings/appearance_page/appearance_page.js File chrome/browser/resources/settings/appearance_page/appearance_page.js (right): https://codereview.chromium.org/1622663002/diff/100001/chrome/browser/resources/settings/appearance_page/appearance_page.js#newcode130 chrome/browser/resources/settings/appearance_page/appearance_page.js:130: }.bind(this)); On 2016/01/25 23:54:44, dpapad wrote: > On 2016/01/25 ...
4 years, 11 months ago (2016-01-25 23:56:43 UTC) #12
dpapad
https://codereview.chromium.org/1622663002/diff/100001/chrome/browser/resources/settings/appearance_page/appearance_page.js File chrome/browser/resources/settings/appearance_page/appearance_page.js (right): https://codereview.chromium.org/1622663002/diff/100001/chrome/browser/resources/settings/appearance_page/appearance_page.js#newcode130 chrome/browser/resources/settings/appearance_page/appearance_page.js:130: }.bind(this)); Done. Summarizing lengthy IM discussion: Changing this to ...
4 years, 11 months ago (2016-01-26 00:44:53 UTC) #14
Dan Beam
lgtm with either style, you can do what you want until we have an objective ...
4 years, 11 months ago (2016-01-26 00:54:52 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1622663002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1622663002/160001
4 years, 11 months ago (2016-01-26 02:33:17 UTC) #17
commit-bot: I haz the power
Committed patchset #7 (id:160001)
4 years, 11 months ago (2016-01-26 04:07:49 UTC) #18
commit-bot: I haz the power
4 years, 11 months ago (2016-01-26 04:11:26 UTC) #20
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/09d947a9ce90972275ff96009396a2c166a5b5b8
Cr-Commit-Position: refs/heads/master@{#371448}

Powered by Google App Engine
This is Rietveld 408576698