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

Issue 1635673003: MD Settings: Add helper method for responding to cr.sendWithPromise. (Closed)

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

Description

MD Settings: Add helper method for responding to cr.sendWithPromise. - Stop passing the 'cr.webUIResponse' string from JS to C++ and again back to JS. - Restricting C++ response to JS to a single argument, since Promises can only be resolved with a single argument (this is also more consistent with Mojo-based communication). - Adding additional test cases. BUG=580633 Committed: https://crrev.com/b60b1f03ab1b8681132ecdf384e02967eee63694 Cr-Commit-Position: refs/heads/master@{#371726}

Patch Set 1 #

Patch Set 2 : Nit #

Patch Set 3 : Add comment. #

Total comments: 13

Patch Set 4 : Addressing comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -25 lines) Patch
M chrome/browser/resources/settings/appearance_page/appearance_page.js View 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/settings/appearance_handler.cc View 1 2 3 1 chunk +4 lines, -7 lines 0 comments Download
M chrome/browser/ui/webui/settings/md_settings_ui.h View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/settings/md_settings_ui.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/test/data/webui/webui_resource_async_browsertest.js View 1 1 chunk +25 lines, -8 lines 0 comments Download
M ui/webui/resources/js/cr.js View 2 chunks +4 lines, -7 lines 0 comments Download

Messages

Total messages: 17 (9 generated)
dpapad
4 years, 11 months ago (2016-01-26 23:04:14 UTC) #8
Dan Beam
https://codereview.chromium.org/1635673003/diff/40001/chrome/browser/ui/webui/settings/appearance_handler.cc File chrome/browser/ui/webui/settings/appearance_handler.cc (right): https://codereview.chromium.org/1635673003/diff/40001/chrome/browser/ui/webui/settings/appearance_handler.cc#newcode75 chrome/browser/ui/webui/settings/appearance_handler.cc:75: const base::Value* callbackId; callback_id https://codereview.chromium.org/1635673003/diff/40001/chrome/browser/ui/webui/settings/md_settings_ui.cc File chrome/browser/ui/webui/settings/md_settings_ui.cc (right): https://codereview.chromium.org/1635673003/diff/40001/chrome/browser/ui/webui/settings/md_settings_ui.cc#newcode47 ...
4 years, 11 months ago (2016-01-27 00:23:57 UTC) #9
dpapad
https://codereview.chromium.org/1635673003/diff/40001/chrome/browser/ui/webui/settings/appearance_handler.cc File chrome/browser/ui/webui/settings/appearance_handler.cc (right): https://codereview.chromium.org/1635673003/diff/40001/chrome/browser/ui/webui/settings/appearance_handler.cc#newcode75 chrome/browser/ui/webui/settings/appearance_handler.cc:75: const base::Value* callbackId; On 2016/01/27 at 00:23:57, Dan Beam ...
4 years, 11 months ago (2016-01-27 00:45:24 UTC) #10
Dan Beam
lgtm https://codereview.chromium.org/1635673003/diff/40001/ui/webui/resources/js/cr.js File ui/webui/resources/js/cr.js (left): https://codereview.chromium.org/1635673003/diff/40001/ui/webui/resources/js/cr.js#oldcode342 ui/webui/resources/js/cr.js:342: resolverFn(Array.prototype.slice.call(arguments, 1)); On 2016/01/27 00:45:24, dpapad wrote: > ...
4 years, 11 months ago (2016-01-27 02:30:44 UTC) #11
dpapad
On 2016/01/27 at 02:30:44, dbeam wrote: > lgtm > > https://codereview.chromium.org/1635673003/diff/40001/ui/webui/resources/js/cr.js > File ui/webui/resources/js/cr.js (left): ...
4 years, 11 months ago (2016-01-27 03:17:17 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1635673003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1635673003/60001
4 years, 11 months ago (2016-01-27 03:18:50 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 11 months ago (2016-01-27 04:39:27 UTC) #15
commit-bot: I haz the power
4 years, 11 months ago (2016-01-27 04:40:35 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/b60b1f03ab1b8681132ecdf384e02967eee63694
Cr-Commit-Position: refs/heads/master@{#371726}

Powered by Google App Engine
This is Rietveld 408576698