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

Issue 334053003: Moves extension_icon_image and image_loader to extensions/browser (Closed)

Created:
6 years, 6 months ago by Jun Mukai
Modified:
6 years, 6 months ago
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, extensions-reviews_chromium.org, jennb, nkostylev+watch_chromium.org, tfarina, Dmitry Titov, dcheng, jianli, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima
Project:
chromium
Visibility:
Public.

Description

Moves extension_icon_image and image_loader to extensions/browser Now extension_icon_image and image_loader are safe to be used outside of Chrome, like AppShell/Athena. BUG=159265, 380421 R=yoz@chromium.org, jamescook@chromium.org TBR=sky@chromium.org, fmalita@chromium.org TEST=unit_tests, compile succeeds Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278601

Patch Set 1 #

Patch Set 2 : polish #

Total comments: 11

Patch Set 3 : fix / remove component_extension_resource_manager #

Total comments: 4

Patch Set 4 : rebase #

Patch Set 5 : revive component_extension_resource_manager #

Total comments: 2

Patch Set 6 : fix #

Total comments: 6

Patch Set 7 : fix #

Patch Set 8 : include fail #

Unified diffs Side-by-side diffs Delta from patch set Stats (+323 lines, -2103 lines) Patch
M apps/DEPS View 1 chunk +0 lines, -1 line 0 comments Download
M apps/app_window.h View 2 chunks +1 line, -1 line 0 comments Download
M apps/shell/browser/shell_extensions_browser_client.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M apps/shell/browser/shell_extensions_browser_client.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/background/background_application_list_model.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/background/background_contents_service.cc View 1 2 3 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/app_mode/kiosk_app_data.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/execute_code_function.cc View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/screenlock_private/screenlock_private_api.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/app_icon_loader_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/bookmark_app_helper.cc View 1 chunk +1 line, -1 line 0 comments Download
A chrome/browser/extensions/chrome_component_extension_resource_manager.h View 1 2 3 4 5 6 1 chunk +42 lines, -0 lines 0 comments Download
A chrome/browser/extensions/chrome_component_extension_resource_manager.cc View 3 4 1 chunk +101 lines, -0 lines 0 comments Download
M chrome/browser/extensions/chrome_extensions_browser_client.h View 1 2 3 4 5 6 4 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/extensions/chrome_extensions_browser_client.cc View 1 2 3 4 5 4 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_action_icon_factory.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_disabled_ui.cc View 2 chunks +1 line, -1 line 0 comments Download
D chrome/browser/extensions/extension_icon_image.h View 1 chunk +0 lines, -116 lines 0 comments Download
D chrome/browser/extensions/extension_icon_image.cc View 1 chunk +0 lines, -239 lines 0 comments Download
D chrome/browser/extensions/extension_icon_image_unittest.cc View 1 chunk +0 lines, -574 lines 0 comments Download
M chrome/browser/extensions/extension_icon_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_install_prompt.cc View 1 2 3 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_storage_monitor.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_uninstall_dialog.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_web_ui.cc View 2 chunks +1 line, -1 line 0 comments Download
D chrome/browser/extensions/image_loader.h View 1 chunk +0 lines, -130 lines 0 comments Download
D chrome/browser/extensions/image_loader.cc View 1 chunk +0 lines, -424 lines 0 comments Download
D chrome/browser/extensions/image_loader_factory.h View 1 chunk +0 lines, -45 lines 0 comments Download
D chrome/browser/extensions/image_loader_factory.cc View 1 chunk +0 lines, -47 lines 0 comments Download
D chrome/browser/extensions/image_loader_unittest.cc View 1 chunk +0 lines, -337 lines 0 comments Download
M chrome/browser/extensions/tab_helper.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/extensions/url_request_util.cc View 1 2 3 4 5 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/extensions/user_script_master.cc View 1 2 3 4 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/app_list/extension_app_item.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/app_list/search/app_result.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/infobars/extension_infobar_controller.mm View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/location_bar/origin_chip_decoration.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/location_bar/origin_chip_decoration.mm View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/panels/panel.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/toolbar/origin_chip_info.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/toolbar/origin_chip_info.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/apps/app_info_dialog/app_info_header_panel.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/infobars/extension_infobar.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/location_bar/origin_chip_view.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/extensions/extension_icon_source.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/web_applications/web_app.cc View 1 2 3 4 5 2 chunks +1 line, -1 line 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 3 chunks +2 lines, -6 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 3 chunks +2 lines, -2 lines 0 comments Download
M extensions/browser/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
A extensions/browser/component_extension_resource_manager.h View 1 2 3 4 5 6 1 chunk +32 lines, -0 lines 0 comments Download
A + extensions/browser/extension_icon_image.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + extensions/browser/extension_icon_image.cc View 1 chunk +2 lines, -2 lines 0 comments Download
A + extensions/browser/extension_icon_image_unittest.cc View 10 chunks +11 lines, -14 lines 0 comments Download
M extensions/browser/extensions_browser_client.h View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
A + extensions/browser/image_loader.h View 1 2 3 chunks +3 lines, -12 lines 0 comments Download
A + extensions/browser/image_loader.cc View 1 2 3 4 5 chunks +13 lines, -106 lines 0 comments Download
A + extensions/browser/image_loader_factory.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
A + extensions/browser/image_loader_factory.cc View 1 chunk +2 lines, -2 lines 0 comments Download
A + extensions/browser/image_loader_unittest.cc View 1 2 3 4 5 6 7 4 chunks +20 lines, -6 lines 0 comments Download
M extensions/browser/test_extensions_browser_client.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/browser/test_extensions_browser_client.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M extensions/extensions.gyp View 1 2 3 4 3 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Jun Mukai
6 years, 6 months ago (2014-06-17 21:07:36 UTC) #1
James Cook
Hooray for extracting more code to src/extensions! A few comments. https://codereview.chromium.org/334053003/diff/20001/apps/DEPS File apps/DEPS (left): https://codereview.chromium.org/334053003/diff/20001/apps/DEPS#oldcode35 ...
6 years, 6 months ago (2014-06-17 22:01:04 UTC) #2
Jun Mukai
https://codereview.chromium.org/334053003/diff/20001/chrome/browser/extensions/chrome_component_extension_resource_manager.cc File chrome/browser/extensions/chrome_component_extension_resource_manager.cc (right): https://codereview.chromium.org/334053003/diff/20001/chrome/browser/extensions/chrome_component_extension_resource_manager.cc#newcode87 chrome/browser/extensions/chrome_component_extension_resource_manager.cc:87: void ChromeComponentExtensionResourceManager::AddComponentResourceEntries( On 2014/06/17 22:01:04, James Cook wrote: > ...
6 years, 6 months ago (2014-06-17 23:53:02 UTC) #3
James Cook
https://codereview.chromium.org/334053003/diff/40001/chrome/browser/extensions/chrome_extensions_browser_client.cc File chrome/browser/extensions/chrome_extensions_browser_client.cc (right): https://codereview.chromium.org/334053003/diff/40001/chrome/browser/extensions/chrome_extensions_browser_client.cc#newcode86 chrome/browser/extensions/chrome_extensions_browser_client.cc:86: static const GritResourceMap kExtraComponentExtensionResources[] = { I would prefer ...
6 years, 6 months ago (2014-06-18 16:29:07 UTC) #4
Jun Mukai
https://codereview.chromium.org/334053003/diff/40001/chrome/browser/extensions/chrome_extensions_browser_client.cc File chrome/browser/extensions/chrome_extensions_browser_client.cc (right): https://codereview.chromium.org/334053003/diff/40001/chrome/browser/extensions/chrome_extensions_browser_client.cc#newcode86 chrome/browser/extensions/chrome_extensions_browser_client.cc:86: static const GritResourceMap kExtraComponentExtensionResources[] = { On 2014/06/18 16:29:07, ...
6 years, 6 months ago (2014-06-18 18:38:49 UTC) #5
James Cook
LGTM! Thanks for extracting this. https://codereview.chromium.org/334053003/diff/80001/extensions/browser/component_extension_resource_manager.h File extensions/browser/component_extension_resource_manager.h (right): https://codereview.chromium.org/334053003/diff/80001/extensions/browser/component_extension_resource_manager.h#newcode8 extensions/browser/component_extension_resource_manager.h:8: #include "base/files/file_path.h" nit: You ...
6 years, 6 months ago (2014-06-18 20:29:59 UTC) #6
Jun Mukai
https://codereview.chromium.org/334053003/diff/80001/extensions/browser/component_extension_resource_manager.h File extensions/browser/component_extension_resource_manager.h (right): https://codereview.chromium.org/334053003/diff/80001/extensions/browser/component_extension_resource_manager.h#newcode8 extensions/browser/component_extension_resource_manager.h:8: #include "base/files/file_path.h" On 2014/06/18 20:29:58, James Cook wrote: > ...
6 years, 6 months ago (2014-06-19 16:47:14 UTC) #7
Jun Mukai
yoz, could you review this?
6 years, 6 months ago (2014-06-19 16:47:59 UTC) #8
Yoyo Zhou
LGTM https://codereview.chromium.org/334053003/diff/100001/chrome/browser/extensions/chrome_component_extension_resource_manager.h File chrome/browser/extensions/chrome_component_extension_resource_manager.h (right): https://codereview.chromium.org/334053003/diff/100001/chrome/browser/extensions/chrome_component_extension_resource_manager.h#newcode33 chrome/browser/extensions/chrome_component_extension_resource_manager.h:33: std::map<base::FilePath, int> path_to_resource_id_; But the comment (see next ...
6 years, 6 months ago (2014-06-19 18:16:06 UTC) #9
Jun Mukai
https://codereview.chromium.org/334053003/diff/100001/chrome/browser/extensions/chrome_component_extension_resource_manager.h File chrome/browser/extensions/chrome_component_extension_resource_manager.h (right): https://codereview.chromium.org/334053003/diff/100001/chrome/browser/extensions/chrome_component_extension_resource_manager.h#newcode33 chrome/browser/extensions/chrome_component_extension_resource_manager.h:33: std::map<base::FilePath, int> path_to_resource_id_; On 2014/06/19 18:16:06, Yoyo Zhou wrote: ...
6 years, 6 months ago (2014-06-19 18:26:10 UTC) #10
Jun Mukai
Code outside of extensions are trivial include changes. Submitting with TBR= sky: for most of ...
6 years, 6 months ago (2014-06-19 18:27:40 UTC) #11
Jun Mukai
The CQ bit was checked by mukai@chromium.org
6 years, 6 months ago (2014-06-19 18:27:46 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/334053003/120001
6 years, 6 months ago (2014-06-19 18:29:55 UTC) #13
Jun Mukai
The CQ bit was checked by mukai@chromium.org
6 years, 6 months ago (2014-06-19 21:43:55 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/334053003/140001
6 years, 6 months ago (2014-06-19 21:45:40 UTC) #15
commit-bot: I haz the power
6 years, 6 months ago (2014-06-20 04:53:42 UTC) #16
Message was sent while issue was closed.
Change committed as 278601

Powered by Google App Engine
This is Rietveld 408576698