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

Issue 1537473003: Change extension icon load errors to warnings (Closed)

Created:
5 years ago by Evan Stade
Modified:
5 years ago
Reviewers:
Devlin
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change extension icon load errors to warnings During the Extension parsing step, check if the icon file exists and if not, remove that entry from the dictionary. Keep the same check during the validation phase and don't apply the workaround to unpacked extensions. This will more strongly discourage new extensions from making this mistake. BUG=570249 Committed: https://crrev.com/6e8e7d1c49657e82d0e8f2518ad463794346321b Cr-Commit-Position: refs/heads/master@{#366253}

Patch Set 1 #

Patch Set 2 : . #

Total comments: 4

Patch Set 3 : add another test #

Patch Set 4 : conciser #

Total comments: 10

Patch Set 5 : unit tests instead #

Patch Set 6 : fix one more test add one more test #

Total comments: 12

Patch Set 7 : final review changes #

Patch Set 8 : ultimate weirdness #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+214 lines, -40 lines) Patch
A chrome/browser/extensions/api/extension_action/browser_action_unittest.cc View 1 2 3 4 5 6 7 1 chunk +70 lines, -0 lines 3 comments Download
M chrome/browser/extensions/extension_action_manager_unittest.cc View 1 1 chunk +12 lines, -9 lines 0 comments Download
M chrome/browser/extensions/extension_service_test_with_install.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_service_test_with_install.cc View 1 2 3 4 5 6 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/extension_action/action_info.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/api/extension_action/action_info.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/common/extensions/api/extension_action/browser_action_manifest_unittest.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/manifest_tests/extension_manifests_icons_unittest.cc View 1 2 2 chunks +15 lines, -2 lines 0 comments Download
A + chrome/test/data/extensions/api_test/browser_action/missing_icon/icon24.png View 1 2 3 4 Binary file 0 comments Download
A + chrome/test/data/extensions/api_test/browser_action/missing_icon/icon38.png View 1 2 3 4 Binary file 0 comments Download
A chrome/test/data/extensions/api_test/browser_action/missing_icon/manifest.json View 1 2 3 4 1 chunk +12 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/api_test/browser_action/multi_icons/icon19.png View 1 Binary file 0 comments Download
A + chrome/test/data/extensions/api_test/browser_action/multi_icons/icon24.png View 1 Binary file 0 comments Download
A + chrome/test/data/extensions/api_test/browser_action/multi_icons/icon38.png View 1 Binary file 0 comments Download
A chrome/test/data/extensions/api_test/browser_action/multi_icons/manifest.json View 1 2 3 4 5 6 1 chunk +13 lines, -0 lines 0 comments Download
M extensions/common/file_util.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M extensions/common/file_util.cc View 1 2 3 4 5 6 2 chunks +5 lines, -12 lines 0 comments Download
M extensions/common/file_util_unittest.cc View 1 2 3 4 5 6 1 chunk +24 lines, -4 lines 0 comments Download
M extensions/common/manifest_handler_helpers.h View 3 chunks +9 lines, -2 lines 0 comments Download
M extensions/common/manifest_handler_helpers.cc View 1 2 3 4 5 6 3 chunks +22 lines, -3 lines 0 comments Download
M extensions/common/manifest_handlers/icons_handler.cc View 1 1 chunk +1 line, -1 line 0 comments Download
A extensions/test/data/file_util/bad_icon/good-icon.png View 1 Binary file 0 comments Download
M extensions/test/data/file_util/bad_icon/manifest.json View 1 chunk +3 lines, -1 line 0 comments Download
M extensions/utility/unpacker.cc View 1 2 3 4 5 6 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 35 (13 generated)
Evan Stade
https://codereview.chromium.org/1537473003/diff/20001/extensions/common/manifest_handler_helpers.cc File extensions/common/manifest_handler_helpers.cc (right): https://codereview.chromium.org/1537473003/diff/20001/extensions/common/manifest_handler_helpers.cc#newcode60 extensions/common/manifest_handler_helpers.cc:60: file_util::ValidateFilePath( to be honest, I'm not super happy with ...
5 years ago (2015-12-17 04:27:57 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1537473003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1537473003/60001
5 years ago (2015-12-17 04:28:58 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/156790)
5 years ago (2015-12-17 04:52:12 UTC) #7
Devlin
https://codereview.chromium.org/1537473003/diff/20001/extensions/common/manifest_handler_helpers.cc File extensions/common/manifest_handler_helpers.cc (right): https://codereview.chromium.org/1537473003/diff/20001/extensions/common/manifest_handler_helpers.cc#newcode60 extensions/common/manifest_handler_helpers.cc:60: file_util::ValidateFilePath( On 2015/12/17 04:27:56, Evan Stade wrote: > to ...
5 years ago (2015-12-17 17:23:08 UTC) #8
Evan Stade
https://codereview.chromium.org/1537473003/diff/20001/extensions/common/manifest_handler_helpers.cc File extensions/common/manifest_handler_helpers.cc (right): https://codereview.chromium.org/1537473003/diff/20001/extensions/common/manifest_handler_helpers.cc#newcode60 extensions/common/manifest_handler_helpers.cc:60: file_util::ValidateFilePath( On 2015/12/17 17:23:08, Devlin wrote: > On 2015/12/17 ...
5 years ago (2015-12-17 20:15:58 UTC) #9
Devlin
https://codereview.chromium.org/1537473003/diff/20001/extensions/common/manifest_handler_helpers.cc File extensions/common/manifest_handler_helpers.cc (right): https://codereview.chromium.org/1537473003/diff/20001/extensions/common/manifest_handler_helpers.cc#newcode60 extensions/common/manifest_handler_helpers.cc:60: file_util::ValidateFilePath( On 2015/12/17 20:15:58, Evan Stade wrote: > On ...
5 years ago (2015-12-17 22:05:58 UTC) #10
Evan Stade
https://codereview.chromium.org/1537473003/diff/60001/chrome/browser/extensions/api/extension_action/browser_action_apitest.cc File chrome/browser/extensions/api/extension_action/browser_action_apitest.cc (right): https://codereview.chromium.org/1537473003/diff/60001/chrome/browser/extensions/api/extension_action/browser_action_apitest.cc#newcode334 chrome/browser/extensions/api/extension_action/browser_action_apitest.cc:334: IN_PROC_BROWSER_TEST_F(BrowserActionApiTest, MultiIcons) { On 2015/12/17 22:05:58, Devlin wrote: > ...
5 years ago (2015-12-17 22:56:06 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1537473003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1537473003/100001
5 years ago (2015-12-17 22:58:21 UTC) #13
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-18 01:19:59 UTC) #15
Devlin
lgtm with easy fixes https://codereview.chromium.org/1537473003/diff/100001/chrome/browser/extensions/api/extension_action/browser_action_unittest.cc File chrome/browser/extensions/api/extension_action/browser_action_unittest.cc (right): https://codereview.chromium.org/1537473003/diff/100001/chrome/browser/extensions/api/extension_action/browser_action_unittest.cc#newcode27 chrome/browser/extensions/api/extension_action/browser_action_unittest.cc:27: ASSERT_FALSE(browser_action_info->default_icon.empty()); nit: EXPECT here https://codereview.chromium.org/1537473003/diff/100001/chrome/browser/extensions/extension_service_test_with_install.cc ...
5 years ago (2015-12-18 22:29:02 UTC) #16
Evan Stade
https://codereview.chromium.org/1537473003/diff/100001/chrome/browser/extensions/api/extension_action/browser_action_unittest.cc File chrome/browser/extensions/api/extension_action/browser_action_unittest.cc (right): https://codereview.chromium.org/1537473003/diff/100001/chrome/browser/extensions/api/extension_action/browser_action_unittest.cc#newcode27 chrome/browser/extensions/api/extension_action/browser_action_unittest.cc:27: ASSERT_FALSE(browser_action_info->default_icon.empty()); On 2015/12/18 22:29:01, Devlin wrote: > nit: EXPECT ...
5 years ago (2015-12-19 00:02:41 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1537473003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1537473003/120001
5 years ago (2015-12-19 00:04:49 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_ng/builds/29533) linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, ...
5 years ago (2015-12-19 00:10:42 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1537473003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1537473003/140001
5 years ago (2015-12-19 01:16:09 UTC) #25
Devlin
https://codereview.chromium.org/1537473003/diff/140001/chrome/browser/extensions/api/extension_action/browser_action_unittest.cc File chrome/browser/extensions/api/extension_action/browser_action_unittest.cc (right): https://codereview.chromium.org/1537473003/diff/140001/chrome/browser/extensions/api/extension_action/browser_action_unittest.cc#newcode34 chrome/browser/extensions/api/extension_action/browser_action_unittest.cc:34: EXPECT_EQ("icon24.png", icons.Get(31, ExtensionIconSet::MATCH_EXACTLY)); This looks a little weird, even ...
5 years ago (2015-12-19 01:43:19 UTC) #26
Evan Stade
https://codereview.chromium.org/1537473003/diff/140001/chrome/browser/extensions/api/extension_action/browser_action_unittest.cc File chrome/browser/extensions/api/extension_action/browser_action_unittest.cc (right): https://codereview.chromium.org/1537473003/diff/140001/chrome/browser/extensions/api/extension_action/browser_action_unittest.cc#newcode34 chrome/browser/extensions/api/extension_action/browser_action_unittest.cc:34: EXPECT_EQ("icon24.png", icons.Get(31, ExtensionIconSet::MATCH_EXACTLY)); On 2015/12/19 01:43:19, Devlin wrote: > ...
5 years ago (2015-12-19 01:49:58 UTC) #27
Devlin
https://codereview.chromium.org/1537473003/diff/140001/chrome/browser/extensions/api/extension_action/browser_action_unittest.cc File chrome/browser/extensions/api/extension_action/browser_action_unittest.cc (right): https://codereview.chromium.org/1537473003/diff/140001/chrome/browser/extensions/api/extension_action/browser_action_unittest.cc#newcode34 chrome/browser/extensions/api/extension_action/browser_action_unittest.cc:34: EXPECT_EQ("icon24.png", icons.Get(31, ExtensionIconSet::MATCH_EXACTLY)); On 2015/12/19 01:49:58, Evan Stade wrote: ...
5 years ago (2015-12-19 02:06:11 UTC) #28
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years ago (2015-12-19 02:39:45 UTC) #30
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/6e8e7d1c49657e82d0e8f2518ad463794346321b Cr-Commit-Position: refs/heads/master@{#366253}
5 years ago (2015-12-19 02:40:44 UTC) #32
Devlin
On 2015/12/19 02:40:44, commit-bot: I haz the power wrote: > Patchset 8 (id:??) landed as ...
5 years ago (2015-12-22 23:12:38 UTC) #33
Devlin
A revert of this CL (patchset #8 id:140001) has been created in https://codereview.chromium.org/1541113003/ by rdevlin.cronin@chromium.org. ...
5 years ago (2015-12-22 23:13:34 UTC) #34
Evan Stade
4 years, 11 months ago (2015-12-29 17:32:04 UTC) #35
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:140001) has been created in
https://codereview.chromium.org/1554583002/ by estade@chromium.org.

The reason for reverting is: file read from wrong thread.

Powered by Google App Engine
This is Rietveld 408576698