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

Issue 1919183005: Cleanup: Extract icon related methods outside of util.js (Closed)

Created:
4 years, 7 months ago by dpapad
Modified:
4 years, 7 months ago
Reviewers:
Dan Beam
CC:
arv+watch_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, dbeam+watch-settings_chromium.org, dbeam+watch-options_chromium.org, dbeam+watch-closure_chromium.org, extensions-reviews_chromium.org, gcasto+watchlist_chromium.org, jlklein+watch-closure_chromium.org, michaelpg+watch-options_chromium.org, michaelpg+watch-md-settings_chromium.org, michaelpg+watch-md-ui_chromium.org, mkwst+watchlist-passwords_chromium.org, oshima+watch_chromium.org, pam+watch_chromium.org, stevenjb+watch-md-settings_chromium.org, vabr+watchlistpasswordmanager_chromium.org, vitalyp+closure_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Cleanup: Extract favicon related methods outside of util.js util.js inevitably (because of its name) is becoming a dumping ground for unrelated one-off helper methods. Benefits of splitting: - Usage of cr.icon namespace instead of polluting global namespace. - cr.icon only exports public methods getProfileAvatarIcon and getFaviconImageSet, remaining methods/vars are kept private. CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/d376bdc646067976df6c24a879e6e1f46919793a Cr-Commit-Position: refs/heads/master@{#392372}

Patch Set 1 : More fixes. #

Patch Set 2 : Fix history. #

Patch Set 3 : Rebase on top of https://codereview.chromium.org/1938063002 #

Patch Set 4 : Rename favicon to icon #

Patch Set 5 : Rename favicon.html to icon.html #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+170 lines, -174 lines) Patch
M chrome/browser/resources/bookmark_manager/js/bmm/bookmark_list.js View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/bookmark_manager/js/compiled_resources.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/history/compiled_resources2.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/history/history.html View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/history/history.js View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/history/other_devices.js View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/md_history/compiled_resources2.gyp View 1 2 3 4 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/resources/md_history/history_item.html View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/md_history/history_item.js View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/md_history/synced_device_card.html View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/md_history/synced_device_card.js View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/options/browser_options_profile_list.js View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/options/browser_options_startup_page_list.js View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/options/compiled_resources.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/options/home_page_overlay.js View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/options/manage_profile_overlay.js View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/options/options.html View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/options/password_manager_list.js View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/options/profiles_icon_grid.js View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/options/search_engine_manager_engine_list.js View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/options/supervised_user_list.js View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/settings/on_startup_page/compiled_resources2.gyp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/settings/on_startup_page/startup_url_entry.html View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/settings/on_startup_page/startup_url_entry.js View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/settings/search_engines_page/omnibox_extension_entry.html View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/settings/search_engines_page/omnibox_extension_entry.js View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/settings/search_engines_page/search_engine_entry.html View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/settings/search_engines_page/search_engine_entry.js View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/settings/site_settings/compiled_resources2.gyp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/settings/site_settings/site_settings_behavior.html View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/resources/settings/site_settings/site_settings_behavior.js View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A + chrome/test/data/webui/icon_test.html View 1 2 3 3 chunks +2 lines, -19 lines 0 comments Download
M chrome/test/data/webui/util_test.html View 1 2 1 chunk +0 lines, -30 lines 0 comments Download
M chrome/test/data/webui/webui_resource_browsertest.cc View 1 2 3 1 chunk +7 lines, -1 line 3 comments Download
A ui/webui/resources/html/icon.html View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M ui/webui/resources/js/compiled_resources2.gyp View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
A ui/webui/resources/js/icon.js View 1 2 3 1 chunk +107 lines, -0 lines 0 comments Download
M ui/webui/resources/js/util.js View 1 2 3 chunks +0 lines, -97 lines 2 comments Download
M ui/webui/resources/webui_resources.grd View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (13 generated)
dpapad
This is addressing the TODO that I added at https://codereview.chromium.org/1914073005. The CL is smaller than ...
4 years, 7 months ago (2016-04-28 02:01:36 UTC) #8
dpapad
On 2016/04/28 at 02:01:36, dpapad wrote: > This is addressing the TODO that I added ...
4 years, 7 months ago (2016-04-29 22:33:10 UTC) #9
dpapad
On 2016/04/29 at 22:33:10, dpapad wrote: > On 2016/04/28 at 02:01:36, dpapad wrote: > > ...
4 years, 7 months ago (2016-05-02 19:12:54 UTC) #10
dpapad
On 2016/05/02 at 19:12:54, dpapad wrote: > On 2016/04/29 at 22:33:10, dpapad wrote: > > ...
4 years, 7 months ago (2016-05-02 19:27:29 UTC) #12
dpapad
On 2016/05/02 at 19:27:29, dpapad wrote: > On 2016/05/02 at 19:12:54, dpapad wrote: > > ...
4 years, 7 months ago (2016-05-03 23:14:08 UTC) #13
Dan Beam
yeah, this seems fine but you should probably s/favicon/icon/g
4 years, 7 months ago (2016-05-04 02:06:58 UTC) #14
dpapad
On 2016/05/04 at 02:06:58, dbeam wrote: > yeah, this seems fine but you should probably ...
4 years, 7 months ago (2016-05-04 17:28:34 UTC) #16
dpapad
On 2016/05/04 at 17:28:34, dpapad wrote: > On 2016/05/04 at 02:06:58, dbeam wrote: > > ...
4 years, 7 months ago (2016-05-05 17:23:18 UTC) #19
Dan Beam
shouldn't favicon.html be named icon.html?
4 years, 7 months ago (2016-05-06 02:50:51 UTC) #20
dpapad
On 2016/05/06 at 02:50:51, dbeam wrote: > shouldn't favicon.html be named icon.html? Done.
4 years, 7 months ago (2016-05-06 17:03:28 UTC) #21
Dan Beam
lgtm w/requested fix https://codereview.chromium.org/1919183005/diff/140001/chrome/test/data/webui/webui_resource_browsertest.cc File chrome/test/data/webui/webui_resource_browsertest.cc (right): https://codereview.chromium.org/1919183005/diff/140001/chrome/test/data/webui/webui_resource_browsertest.cc#newcode238 chrome/test/data/webui/webui_resource_browsertest.cc:238: IN_PROC_BROWSER_TEST_F(WebUIResourceBrowserTest, UtilTest) { doesn't this need ...
4 years, 7 months ago (2016-05-06 22:39:06 UTC) #22
dpapad
https://codereview.chromium.org/1919183005/diff/140001/chrome/test/data/webui/webui_resource_browsertest.cc File chrome/test/data/webui/webui_resource_browsertest.cc (right): https://codereview.chromium.org/1919183005/diff/140001/chrome/test/data/webui/webui_resource_browsertest.cc#newcode238 chrome/test/data/webui/webui_resource_browsertest.cc:238: IN_PROC_BROWSER_TEST_F(WebUIResourceBrowserTest, UtilTest) { On 2016/05/06 at 22:39:06, Dan Beam ...
4 years, 7 months ago (2016-05-06 22:56:33 UTC) #23
Dan Beam
okkkkkkkkk https://codereview.chromium.org/1919183005/diff/140001/chrome/test/data/webui/webui_resource_browsertest.cc File chrome/test/data/webui/webui_resource_browsertest.cc (right): https://codereview.chromium.org/1919183005/diff/140001/chrome/test/data/webui/webui_resource_browsertest.cc#newcode238 chrome/test/data/webui/webui_resource_browsertest.cc:238: IN_PROC_BROWSER_TEST_F(WebUIResourceBrowserTest, UtilTest) { On 2016/05/06 22:56:33, dpapad wrote: ...
4 years, 7 months ago (2016-05-06 23:01:55 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1919183005/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1919183005/140001
4 years, 7 months ago (2016-05-09 17:09:17 UTC) #26
commit-bot: I haz the power
Committed patchset #5 (id:140001)
4 years, 7 months ago (2016-05-09 18:28:51 UTC) #27
commit-bot: I haz the power
4 years, 7 months ago (2016-05-09 18:30:22 UTC) #29
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/d376bdc646067976df6c24a879e6e1f46919793a
Cr-Commit-Position: refs/heads/master@{#392372}

Powered by Google App Engine
This is Rietveld 408576698