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

Issue 132013002: Replace own callback handling with Promises. (Closed)

Created:
6 years, 11 months ago by Adrian Kuegel
Modified:
6 years, 11 months ago
Reviewers:
Bernhard Bauer
CC:
chromium-reviews, dbeam+watch-options_chromium.org, tfarina, pam+watch_chromium.org, arv+watch_chromium.org
Visibility:
Public.

Description

Replace own callback handling with Promises. Simplify the code by using DOM Promises. BUG=282464 TEST=browser_tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245264

Patch Set 1 #

Total comments: 4

Patch Set 2 : Use Promise. #

Patch Set 3 : Fix tests. #

Total comments: 16

Patch Set 4 : Address review comments. #

Total comments: 4

Patch Set 5 : Change tests to async. #

Total comments: 4

Patch Set 6 : Remove name conflict checks. #

Total comments: 4

Patch Set 7 : Address nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+177 lines, -141 lines) Patch
M chrome/browser/resources/options/manage_profile_overlay.js View 1 2 3 4 5 6 chunks +22 lines, -28 lines 0 comments Download
M chrome/browser/resources/options/managed_user_import.js View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/resources/options/managed_user_list_data.js View 1 2 3 4 5 2 chunks +60 lines, -69 lines 0 comments Download
M chrome/browser/ui/webui/options/manage_profile_browsertest.js View 1 2 3 4 5 6 5 chunks +84 lines, -39 lines 0 comments Download
M chrome/browser/ui/webui/options/managed_user_import_handler.cc View 1 2 3 4 5 1 chunk +6 lines, -2 lines 0 comments Download
M ui/webui/resources/js/util.js View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
Adrian Kuegel
Hi Bernhard, can you please review this CL? I did some of the changes you ...
6 years, 11 months ago (2014-01-09 16:18:28 UTC) #1
Bernhard Bauer
On 2014/01/09 16:18:28, Adrian Kuegel wrote: > Hi Bernhard, > > can you please review ...
6 years, 11 months ago (2014-01-09 16:30:17 UTC) #2
Bernhard Bauer
https://codereview.chromium.org/132013002/diff/1/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/132013002/diff/1/chrome/app/generated_resources.grd#newcode14708 chrome/app/generated_resources.grd:14708: + (name conflict with existing local profile) Has this ...
6 years, 11 months ago (2014-01-09 16:33:17 UTC) #3
Adrian Kuegel
https://codereview.chromium.org/132013002/diff/1/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/132013002/diff/1/chrome/app/generated_resources.grd#newcode14708 chrome/app/generated_resources.grd:14708: + (name conflict with existing local profile) On 2014/01/09 ...
6 years, 11 months ago (2014-01-10 09:53:41 UTC) #4
Pam (message me for reviews)
> Rachel had an > interesting idea: we could let the user rename the supervised ...
6 years, 11 months ago (2014-01-10 10:01:55 UTC) #5
Adrian Kuegel
On 2014/01/10 10:01:55, Pam (also PM for reviews) wrote: > > Rachel had an > ...
6 years, 11 months ago (2014-01-10 10:11:01 UTC) #6
Pam (message me for reviews)
On 2014/01/10 10:11:01, Adrian Kuegel wrote: > On 2014/01/10 10:01:55, Pam (also PM for reviews) ...
6 years, 11 months ago (2014-01-10 10:18:35 UTC) #7
Adrian Kuegel
On 2014/01/10 10:18:35, Pam (also PM for reviews) wrote: > On 2014/01/10 10:11:01, Adrian Kuegel ...
6 years, 11 months ago (2014-01-10 10:23:54 UTC) #8
Pam (message me for reviews)
On 2014/01/10 10:23:54, Adrian Kuegel wrote: > On 2014/01/10 10:18:35, Pam (also PM for reviews) ...
6 years, 11 months ago (2014-01-10 10:25:54 UTC) #9
Adrian Kuegel
On 2014/01/10 10:25:54, Pam (also PM for reviews) wrote: > On 2014/01/10 10:23:54, Adrian Kuegel ...
6 years, 11 months ago (2014-01-10 10:28:54 UTC) #10
Bernhard Bauer
On Fri, Jan 10, 2014 at 10:23 AM, <akuegel@chromium.org> wrote: > On 2014/01/10 10:18:35, Pam ...
6 years, 11 months ago (2014-01-10 10:32:16 UTC) #11
Pam (message me for reviews)
I need to think about this more, but I'm coming to the conclusion that there's ...
6 years, 11 months ago (2014-01-10 10:42:34 UTC) #12
Bernhard Bauer
On 2014/01/10 10:42:34, Pam (also PM for reviews) wrote: > I need to think about ...
6 years, 11 months ago (2014-01-10 10:45:04 UTC) #13
Adrian Kuegel
Bernhard, can you please take another look? I had to fix the tests so that ...
6 years, 11 months ago (2014-01-10 13:14:16 UTC) #14
Bernhard Bauer
https://codereview.chromium.org/132013002/diff/200001/chrome/browser/resources/options/managed_user_list_data.js File chrome/browser/resources/options/managed_user_list_data.js (right): https://codereview.chromium.org/132013002/diff/200001/chrome/browser/resources/options/managed_user_list_data.js#newcode16 chrome/browser/resources/options/managed_user_list_data.js:16: this.promise_ = null; You could get by without this ...
6 years, 11 months ago (2014-01-10 13:52:07 UTC) #15
Adrian Kuegel
https://codereview.chromium.org/132013002/diff/200001/chrome/browser/resources/options/managed_user_list_data.js File chrome/browser/resources/options/managed_user_list_data.js (right): https://codereview.chromium.org/132013002/diff/200001/chrome/browser/resources/options/managed_user_list_data.js#newcode16 chrome/browser/resources/options/managed_user_list_data.js:16: this.promise_ = null; On 2014/01/10 13:52:08, Bernhard Bauer wrote: ...
6 years, 11 months ago (2014-01-10 16:52:01 UTC) #16
Bernhard Bauer
https://codereview.chromium.org/132013002/diff/200001/chrome/browser/resources/options/managed_user_list_data.js File chrome/browser/resources/options/managed_user_list_data.js (right): https://codereview.chromium.org/132013002/diff/200001/chrome/browser/resources/options/managed_user_list_data.js#newcode16 chrome/browser/resources/options/managed_user_list_data.js:16: this.promise_ = null; On 2014/01/10 16:52:01, Adrian Kuegel wrote: ...
6 years, 11 months ago (2014-01-13 14:33:49 UTC) #17
Adrian Kuegel
https://codereview.chromium.org/132013002/diff/200001/chrome/browser/resources/options/managed_user_list_data.js File chrome/browser/resources/options/managed_user_list_data.js (right): https://codereview.chromium.org/132013002/diff/200001/chrome/browser/resources/options/managed_user_list_data.js#newcode16 chrome/browser/resources/options/managed_user_list_data.js:16: this.promise_ = null; On 2014/01/13 14:33:50, Bernhard Bauer wrote: ...
6 years, 11 months ago (2014-01-13 15:43:36 UTC) #18
Bernhard Bauer
https://codereview.chromium.org/132013002/diff/160002/chrome/browser/ui/webui/options/manage_profile_browsertest.js File chrome/browser/ui/webui/options/manage_profile_browsertest.js (right): https://codereview.chromium.org/132013002/diff/160002/chrome/browser/ui/webui/options/manage_profile_browsertest.js#newcode101 chrome/browser/ui/webui/options/manage_profile_browsertest.js:101: testDone(); Alternatively, you could make a subclass for the ...
6 years, 11 months ago (2014-01-13 17:18:46 UTC) #19
Adrian Kuegel
https://codereview.chromium.org/132013002/diff/160002/chrome/browser/ui/webui/options/manage_profile_browsertest.js File chrome/browser/ui/webui/options/manage_profile_browsertest.js (right): https://codereview.chromium.org/132013002/diff/160002/chrome/browser/ui/webui/options/manage_profile_browsertest.js#newcode101 chrome/browser/ui/webui/options/manage_profile_browsertest.js:101: testDone(); On 2014/01/13 17:18:47, Bernhard Bauer wrote: > Alternatively, ...
6 years, 11 months ago (2014-01-15 14:15:35 UTC) #20
Bernhard Bauer
https://codereview.chromium.org/132013002/diff/510001/chrome/browser/ui/webui/options/manage_profile_browsertest.js File chrome/browser/ui/webui/options/manage_profile_browsertest.js (right): https://codereview.chromium.org/132013002/diff/510001/chrome/browser/ui/webui/options/manage_profile_browsertest.js#newcode143 chrome/browser/ui/webui/options/manage_profile_browsertest.js:143: function ManageProfileAsyncUITest() {} Nit: Async test fixtures are usually ...
6 years, 11 months ago (2014-01-16 15:26:33 UTC) #21
Adrian Kuegel
https://codereview.chromium.org/132013002/diff/510001/chrome/browser/ui/webui/options/manage_profile_browsertest.js File chrome/browser/ui/webui/options/manage_profile_browsertest.js (right): https://codereview.chromium.org/132013002/diff/510001/chrome/browser/ui/webui/options/manage_profile_browsertest.js#newcode143 chrome/browser/ui/webui/options/manage_profile_browsertest.js:143: function ManageProfileAsyncUITest() {} On 2014/01/16 15:26:34, Bernhard Bauer wrote: ...
6 years, 11 months ago (2014-01-16 15:51:37 UTC) #22
Bernhard Bauer
LGTM!
6 years, 11 months ago (2014-01-16 15:59:10 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akuegel@chromium.org/132013002/570001
6 years, 11 months ago (2014-01-16 16:01:50 UTC) #24
commit-bot: I haz the power
6 years, 11 months ago (2014-01-16 18:35:05 UTC) #25
Message was sent while issue was closed.
Change committed as 245264

Powered by Google App Engine
This is Rietveld 408576698