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

Issue 10830123: crbug.com/124865 - DCHECK failure when pinning Chrome Web Store to Launcher (Closed)

Created:
8 years, 4 months ago by sschmitz
Modified:
8 years, 4 months ago
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, Emmanuel Saint-loubert-BiƩ
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

crbug.com/124865 - DCHECK failure when pinning Chrome Web Store to Launcher CrOS Aura: Fix pinning Chrome Web Store to Launcher When requesting to load the extension icon, we now check whether the ext. resource is empty. If so, we request DONT_CACHE (instead of CACHE). Caching fails two DCHECKS when the ext. resource is empty. Also the key involved in caching would be an empty string when the ext. resource is empty. Earlier solution, later abandoned (reverted): Icons are not required in extension or app manifests. Modified Extension::HasCachedImage and Extension::SetCachedImage to not fail a DCHECK nor to cache an image, if the ExtensionResource is empty. See also the now obsolete: http://codereview.chromium.org/10823115/ BUG=124865 TEST=Click on Apps icon in the Launcher; Right click on Chrome Web Store; Select Pin to Launcher; Observe no DCHECK on Debug build on linux desktop Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=150841

Patch Set 1 #

Patch Set 2 : fix: return false instead of NULL (bool) #

Patch Set 3 : Fix: request DONT_CACHE when loading icons with empty resources #

Patch Set 4 : revert extension.cc back to master's version #

Patch Set 5 : restored an accidentally deleted newline #

Total comments: 2

Patch Set 6 : add check (!resource.empty()) to ImageLoadingTracker #

Total comments: 2

Patch Set 7 : revert file to master version: launcher_app_icon_loader.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M chrome/browser/extensions/image_loading_tracker.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/extension_resource.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
sschmitz
8 years, 4 months ago (2012-08-01 18:03:15 UTC) #1
Aaron Boodman
What? No. The code that is calling this is wrong.
8 years, 4 months ago (2012-08-01 21:43:27 UTC) #2
sschmitz
ok, thanks. I'll take a look. On Wed, Aug 1, 2012 at 2:43 PM, <aa@chromium.org> ...
8 years, 4 months ago (2012-08-01 21:48:16 UTC) #3
sschmitz
8 years, 4 months ago (2012-08-02 17:16:19 UTC) #4
Aaron Boodman
Don't you think it would be better to check for this condition inside ImageLoadingTracker so ...
8 years, 4 months ago (2012-08-06 03:09:34 UTC) #5
sschmitz
Thanks, Aaron. I agree. Added check for (!resource.empty()) to ImageLoadingTracker::OnImageLoaded(). Therefore, I could remove the ...
8 years, 4 months ago (2012-08-07 17:58:59 UTC) #6
Aaron Boodman
http://codereview.chromium.org/10830123/diff/9002/chrome/browser/ui/views/ash/launcher/launcher_app_icon_loader.cc File chrome/browser/ui/views/ash/launcher/launcher_app_icon_loader.cc (right): http://codereview.chromium.org/10830123/diff/9002/chrome/browser/ui/views/ash/launcher/launcher_app_icon_loader.cc#newcode49 chrome/browser/ui/views/ash/launcher/launcher_app_icon_loader.cc:49: extension->GetIconResource(ExtensionIconSet::EXTENSION_ICON_SMALL, You can undo these changes now, right?
8 years, 4 months ago (2012-08-08 21:42:01 UTC) #7
sschmitz
http://codereview.chromium.org/10830123/diff/9002/chrome/browser/ui/views/ash/launcher/launcher_app_icon_loader.cc File chrome/browser/ui/views/ash/launcher/launcher_app_icon_loader.cc (right): http://codereview.chromium.org/10830123/diff/9002/chrome/browser/ui/views/ash/launcher/launcher_app_icon_loader.cc#newcode49 chrome/browser/ui/views/ash/launcher/launcher_app_icon_loader.cc:49: extension->GetIconResource(ExtensionIconSet::EXTENSION_ICON_SMALL, On 2012/08/08 21:42:01, Aaron Boodman wrote: > You ...
8 years, 4 months ago (2012-08-08 22:04:30 UTC) #8
Aaron Boodman
lgtm
8 years, 4 months ago (2012-08-08 22:40:36 UTC) #9
Aaron Boodman
Also, consider adding a test for this case to image_loading_tracker_unittest.cc.
8 years, 4 months ago (2012-08-08 22:41:20 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sschmitz@chromium.org/10830123/10002
8 years, 4 months ago (2012-08-08 22:57:38 UTC) #11
commit-bot: I haz the power
Try job failure for 10830123-10002 (retry) on android for steps "compile, build" (clobber build). It's ...
8 years, 4 months ago (2012-08-08 23:36:27 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sschmitz@chromium.org/10830123/10002
8 years, 4 months ago (2012-08-09 16:31:24 UTC) #13
commit-bot: I haz the power
8 years, 4 months ago (2012-08-09 17:49:42 UTC) #14
Change committed as 150841

Powered by Google App Engine
This is Rietveld 408576698