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

Issue 25050005: Refactored loading of applications / extensions icons. (Closed)

Created:
7 years, 2 months ago by dvh
Modified:
7 years, 2 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, asargent_no_longer_on_chrome
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Refactored loading of applications / extensions icons. Added ImageLoader::LoadExtensionIconAsync() and ImageLoader::LoadExtensionIconDataURLAsync(). Moved all apps / extension loading code to ImageLoader. BUG=297298, 297301 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=226823

Patch Set 1 #

Patch Set 2 : #

Total comments: 61

Patch Set 3 : Fixes based on the feedback of finnur@ #

Total comments: 10

Patch Set 4 : More feedback. #

Patch Set 5 : Added unit tests. #

Total comments: 17

Patch Set 6 : Additional feedbacks. #

Total comments: 1

Patch Set 7 : Improved comment. #

Patch Set 8 : Merge with HEAD #

Patch Set 9 : Added unit test data. #

Patch Set 10 : Added MatchType parameter to LoadExtensionIconAsync() and LoadExtensionIconDataURLAsync(). #

Patch Set 11 : #

Total comments: 2

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+708 lines, -307 lines) Patch
M chrome/browser/extensions/api/developer_private/developer_private_api.h View 1 2 3 3 chunks +18 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/developer_private/developer_private_api.cc View 1 2 3 4 5 6 7 8 9 4 chunks +34 lines, -75 lines 0 comments Download
M chrome/browser/extensions/extension_icon_image_unittest.cc View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/image_loader.h View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +171 lines, -4 lines 0 comments Download
M chrome/browser/extensions/image_loader.cc View 1 2 3 4 5 6 7 8 9 5 chunks +323 lines, -2 lines 0 comments Download
M chrome/browser/extensions/image_loader_factory.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/image_loader_unittest.cc View 1 2 3 4 5 6 7 8 9 8 chunks +136 lines, -9 lines 0 comments Download
M chrome/browser/ui/webui/extensions/extension_icon_source.h View 1 2 2 chunks +6 lines, -45 lines 0 comments Download
M chrome/browser/ui/webui/extensions/extension_icon_source.cc View 1 2 3 4 5 6 7 8 9 4 chunks +15 lines, -164 lines 0 comments Download
A + chrome/test/data/extensions/default_image_loading_tracker/app.json View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 22 (0 generated)
dvh
finnur@ for chrome/browser/ui/webui/extensions/* asargent@ for chrome/browser/extensions/* PTAL. Thanks!
7 years, 2 months ago (2013-09-27 23:44:59 UTC) #1
Finnur
https://codereview.chromium.org/25050005/diff/3001/chrome/browser/extensions/api/developer_private/developer_private_api.cc File chrome/browser/extensions/api/developer_private/developer_private_api.cc (right): https://codereview.chromium.org/25050005/diff/3001/chrome/browser/extensions/api/developer_private/developer_private_api.cc#newcode511 chrome/browser/extensions/api/developer_private/developer_private_api.cc:511: // We will iterator over |item_list_| to request all ...
7 years, 2 months ago (2013-09-30 15:11:21 UTC) #2
asargent_no_longer_on_chrome
Finnur's in the OWNERS file for chrome/browser/extensions, so he can review the whole thing. =) ...
7 years, 2 months ago (2013-09-30 17:20:10 UTC) #3
dvh-g
Hi finnur@, I did all the changes. There's still an opened question about the API. ...
7 years, 2 months ago (2013-10-01 04:19:26 UTC) #4
Finnur
https://codereview.chromium.org/25050005/diff/3001/chrome/browser/extensions/api/developer_private/developer_private_api.cc File chrome/browser/extensions/api/developer_private/developer_private_api.cc (right): https://codereview.chromium.org/25050005/diff/3001/chrome/browser/extensions/api/developer_private/developer_private_api.cc#newcode530 chrome/browser/extensions/api/developer_private/developer_private_api.cc:530: developer::ItemInfo* info = &*item_list_[icon_to_load_]; You changed line 518, but ...
7 years, 2 months ago (2013-10-01 11:14:15 UTC) #5
dvh
- Apply fixes. - Added unit tests. PTAL! Thanks. https://codereview.chromium.org/25050005/diff/3001/chrome/browser/extensions/api/developer_private/developer_private_api.cc File chrome/browser/extensions/api/developer_private/developer_private_api.cc (right): https://codereview.chromium.org/25050005/diff/3001/chrome/browser/extensions/api/developer_private/developer_private_api.cc#newcode530 chrome/browser/extensions/api/developer_private/developer_private_api.cc:530: ...
7 years, 2 months ago (2013-10-02 05:15:08 UTC) #6
Finnur
Almost there. https://codereview.chromium.org/25050005/diff/29001/chrome/browser/extensions/extension_icon_image_unittest.cc File chrome/browser/extensions/extension_icon_image_unittest.cc (right): https://codereview.chromium.org/25050005/diff/29001/chrome/browser/extensions/extension_icon_image_unittest.cc#newcode119 chrome/browser/extensions/extension_icon_image_unittest.cc:119: extensions::ImageLoader* image_loader_; nit: scoped_ptr<extensions::ImageLoader> image_loader_ would result ...
7 years, 2 months ago (2013-10-02 09:52:15 UTC) #7
dvh-g
Applied some fixes and comments. PTAL. Thanks! https://codereview.chromium.org/25050005/diff/29001/chrome/browser/extensions/image_loader.cc File chrome/browser/extensions/image_loader.cc (right): https://codereview.chromium.org/25050005/diff/29001/chrome/browser/extensions/image_loader.cc#newcode410 chrome/browser/extensions/image_loader.cc:410: // |extension| ...
7 years, 2 months ago (2013-10-02 15:08:12 UTC) #8
Finnur
LGTM, with nits. https://codereview.chromium.org/25050005/diff/29001/chrome/browser/extensions/image_loader_unittest.cc File chrome/browser/extensions/image_loader_unittest.cc (right): https://codereview.chromium.org/25050005/diff/29001/chrome/browser/extensions/image_loader_unittest.cc#newcode341 chrome/browser/extensions/image_loader_unittest.cc:341: EXPECT_EQ(1, image_loaded_count()); Fair enough. https://codereview.chromium.org/25050005/diff/40001/chrome/browser/extensions/image_loader.h File ...
7 years, 2 months ago (2013-10-02 15:19:24 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dvh@chromium.org/25050005/48001
7 years, 2 months ago (2013-10-02 15:34:58 UTC) #10
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 2 months ago (2013-10-02 15:42:25 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dvh@chromium.org/25050005/69001
7 years, 2 months ago (2013-10-02 15:58:35 UTC) #12
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=84127
7 years, 2 months ago (2013-10-02 16:55:03 UTC) #13
dvh
On 2013/10/02 16:55:03, I haz the power (commit-bot) wrote: > Retried try job too often ...
7 years, 2 months ago (2013-10-02 16:57:35 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dvh@chromium.org/25050005/45001
7 years, 2 months ago (2013-10-02 16:58:34 UTC) #15
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=174548
7 years, 2 months ago (2013-10-02 19:21:44 UTC) #16
dvh-g
On 2013/10/02 19:21:44, I haz the power (commit-bot) wrote: > Retried try job too often ...
7 years, 2 months ago (2013-10-03 01:32:09 UTC) #17
Finnur
Still LGTM.
7 years, 2 months ago (2013-10-03 10:44:57 UTC) #18
Finnur
With one nit... https://codereview.chromium.org/25050005/diff/105001/chrome/browser/extensions/image_loader.h File chrome/browser/extensions/image_loader.h (right): https://codereview.chromium.org/25050005/diff/105001/chrome/browser/extensions/image_loader.h#newcode122 chrome/browser/extensions/image_loader.h:122: // it should fallback on smaller ...
7 years, 2 months ago (2013-10-03 10:45:10 UTC) #19
dvh
https://codereview.chromium.org/25050005/diff/105001/chrome/browser/extensions/image_loader.h File chrome/browser/extensions/image_loader.h (right): https://codereview.chromium.org/25050005/diff/105001/chrome/browser/extensions/image_loader.h#newcode122 chrome/browser/extensions/image_loader.h:122: // it should fallback on smaller or bigger size ...
7 years, 2 months ago (2013-10-03 14:45:47 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dvh@chromium.org/25050005/109001
7 years, 2 months ago (2013-10-03 14:46:13 UTC) #21
commit-bot: I haz the power
7 years, 2 months ago (2013-10-03 19:58:21 UTC) #22
Message was sent while issue was closed.
Change committed as 226823

Powered by Google App Engine
This is Rietveld 408576698