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

Issue 421633002: Modify a favicon DCHECK. (Closed)

Created:
6 years, 5 months ago by Daniel Nishi
Modified:
6 years, 5 months ago
Reviewers:
stevenjb, sky
CC:
chromium-reviews, browser-components-watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Modify a favicon DCHECK. There may be more than one favicon if loading an extension favicon, which loads for all supported scale factors immediately rather than in an as-needed fashion. BUG=397341 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285725

Patch Set 1 #

Patch Set 2 : Re-add DCHECK but with modification. #

Total comments: 3

Patch Set 3 : Change DCHECK_LE to DCHECK_GE for readableness. #

Patch Set 4 : Back to a removal instead. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -1 line) Patch
M chrome/browser/favicon/favicon_service.cc View 2 3 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
Daniel Nishi
PTAL. I suspect that this DCHECK is hit when going to chrome://favicon for chrome-extension addresses ...
6 years, 5 months ago (2014-07-25 18:09:36 UTC) #1
Daniel Nishi
Actually, thinking about it, this DCHECK was probably intended to guarantee that at least one ...
6 years, 5 months ago (2014-07-25 18:40:58 UTC) #2
stevenjb
https://codereview.chromium.org/421633002/diff/20001/chrome/browser/favicon/favicon_service.cc File chrome/browser/favicon/favicon_service.cc (right): https://codereview.chromium.org/421633002/diff/20001/chrome/browser/favicon/favicon_service.cc#newcode406 chrome/browser/favicon/favicon_service.cc:406: DCHECK_LE(1u, favicon_bitmap_results.size()); We early exit above if favicon_bitmap_results.empty(), so ...
6 years, 5 months ago (2014-07-25 18:45:20 UTC) #3
stevenjb
https://codereview.chromium.org/421633002/diff/20001/chrome/browser/favicon/favicon_service.cc File chrome/browser/favicon/favicon_service.cc (right): https://codereview.chromium.org/421633002/diff/20001/chrome/browser/favicon/favicon_service.cc#newcode406 chrome/browser/favicon/favicon_service.cc:406: DCHECK_LE(1u, favicon_bitmap_results.size()); On 2014/07/25 18:45:19, stevenjb wrote: > We ...
6 years, 5 months ago (2014-07-25 18:47:31 UTC) #4
sky
LGTM
6 years, 5 months ago (2014-07-25 19:23:46 UTC) #5
Daniel Nishi
The CQ bit was checked by dhnishi@chromium.org
6 years, 5 months ago (2014-07-25 20:19:57 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dhnishi@chromium.org/421633002/40001
6 years, 5 months ago (2014-07-25 20:21:39 UTC) #7
Daniel Nishi
The CQ bit was unchecked by dhnishi@chromium.org
6 years, 5 months ago (2014-07-25 21:11:45 UTC) #8
Daniel Nishi
https://codereview.chromium.org/421633002/diff/20001/chrome/browser/favicon/favicon_service.cc File chrome/browser/favicon/favicon_service.cc (right): https://codereview.chromium.org/421633002/diff/20001/chrome/browser/favicon/favicon_service.cc#newcode406 chrome/browser/favicon/favicon_service.cc:406: DCHECK_LE(1u, favicon_bitmap_results.size()); On 2014/07/25 18:45:19, stevenjb wrote: > We ...
6 years, 5 months ago (2014-07-25 21:13:37 UTC) #9
Daniel Nishi
The CQ bit was checked by dhnishi@chromium.org
6 years, 5 months ago (2014-07-25 21:13:46 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dhnishi@chromium.org/421633002/60001
6 years, 5 months ago (2014-07-25 21:14:37 UTC) #11
commit-bot: I haz the power
6 years, 5 months ago (2014-07-25 23:45:02 UTC) #12
Message was sent while issue was closed.
Change committed as 285725

Powered by Google App Engine
This is Rietveld 408576698