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

Issue 1068653002: Extract some logic from SuggestAppsDialog to a separate class (Closed)

Created:
5 years, 8 months ago by tbarzic
Modified:
5 years, 8 months ago
Reviewers:
mtomasz, yoshiki
CC:
chromium-reviews, vitalyp+closure_chromium.org, rginda+watch_chromium.org, mtomasz+watch_chromium.org, dbeam+watch-closure_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Extract some logic from SuggestAppsDialog to a separate class This extracts logic that handles loading, initializing and handling requests from web store widget out of SuggestAppsDialog. What's left in SuggestAppsDialog is logic for showing/hiding the dialog modal to file manager, and handling results from the widget. The goal is to eventually remove the newly created class out of ui/file_manager so it can be used to show Web Store widget for purposes not related to file manager. BUG=439448 Committed: https://crrev.com/7ec37f259f276209cad16730050b6db849ea7824 Cr-Commit-Position: refs/heads/master@{#324064}

Patch Set 1 : . #

Patch Set 2 : cws_widget_container.js == old suggest_apps_dialog.js #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : add new file to main.html #

Total comments: 23

Patch Set 6 : . #

Total comments: 18

Patch Set 7 : . #

Messages

Total messages: 13 (4 generated)
tbarzic
Please take a look. Note that in Patchset 2 cws_widget_container.js is identical to suggest_apps_dialog.js at ...
5 years, 8 months ago (2015-04-07 01:32:38 UTC) #3
mtomasz
In general lgtm with nits. Please check if everything compiles with Closure compiler. GYP_GENERATORS=ninja tools/gyp/gyp ...
5 years, 8 months ago (2015-04-07 02:27:49 UTC) #4
tbarzic
https://codereview.chromium.org/1068653002/diff/100001/ui/file_manager/file_manager/foreground/js/cws_widget_container.js File ui/file_manager/file_manager/foreground/js/cws_widget_container.js (right): https://codereview.chromium.org/1068653002/diff/100001/ui/file_manager/file_manager/foreground/js/cws_widget_container.js#newcode15 ui/file_manager/file_manager/foreground/js/cws_widget_container.js:15: * The width of the widget (in pixel). On ...
5 years, 8 months ago (2015-04-07 02:51:30 UTC) #5
mtomasz
thanks, lgtm. But please wait for @yoshiki's final lgtm, as he wrote most of the ...
5 years, 8 months ago (2015-04-07 02:59:49 UTC) #6
yoshiki
Thank you for doing a large cleanup! The patch LGTM with some tiny nits! https://codereview.chromium.org/1068653002/diff/120001/ui/file_manager/file_manager/foreground/js/cws_widget_container.js ...
5 years, 8 months ago (2015-04-07 03:33:52 UTC) #7
tbarzic
https://codereview.chromium.org/1068653002/diff/120001/ui/file_manager/file_manager/foreground/js/cws_widget_container.js File ui/file_manager/file_manager/foreground/js/cws_widget_container.js (right): https://codereview.chromium.org/1068653002/diff/120001/ui/file_manager/file_manager/foreground/js/cws_widget_container.js#newcode112 ui/file_manager/file_manager/foreground/js/cws_widget_container.js:112: this.webstoreButton_.appendChild(webstoreButtonLabel);; On 2015/04/07 03:33:52, yoshiki wrote: > nit: double ...
5 years, 8 months ago (2015-04-07 16:52:55 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1068653002/140001
5 years, 8 months ago (2015-04-07 16:53:21 UTC) #11
commit-bot: I haz the power
Committed patchset #7 (id:140001)
5 years, 8 months ago (2015-04-07 17:32:07 UTC) #12
commit-bot: I haz the power
5 years, 8 months ago (2015-04-07 17:33:02 UTC) #13
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/7ec37f259f276209cad16730050b6db849ea7824
Cr-Commit-Position: refs/heads/master@{#324064}

Powered by Google App Engine
This is Rietveld 408576698