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

Issue 12607011: Fix a crashing call to GURL::spec() in downloads_api.cc:DownloadItemToJSON() (Closed)

Created:
7 years, 9 months ago by benjhayden
Modified:
7 years, 9 months ago
Reviewers:
asanka
CC:
chromium-reviews, benjhayden+dwatch_chromium.org, Aaron Boodman, chromium-apps-reviews_chromium.org, kareng
Visibility:
Public.

Description

Fix a crashing call to GURL::spec() in downloads_api.cc:DownloadItemToJSON() The actual bug is DownloadItemImpl::GetOriginalUrl(): the front() of an empty vector is not a good GURL reference! The sprinkling of GURL::is_valid() is just to make me feel better. There is still the open question of what happened to the downloads_url_chain records, but that is less urgent than stopping the crashes. BUG=190096 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=188602

Patch Set 1 : @r187927 #

Patch Set 2 : @r188056 #

Total comments: 1

Patch Set 3 : @r188114 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -7 lines) Patch
M chrome/browser/extensions/api/downloads/downloads_api.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/download/download_item_impl.cc View 3 chunks +6 lines, -5 lines 0 comments Download
M content/browser/download/download_manager_impl.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
benjhayden
I repro'd the crash and the fix, but can I just have another set of ...
7 years, 9 months ago (2013-03-14 13:58:33 UTC) #1
asanka
On 2013/03/14 13:58:33, benjhayden_chromium wrote: > I repro'd the crash and the fix, but can ...
7 years, 9 months ago (2013-03-14 16:10:12 UTC) #2
asanka
LGTM
7 years, 9 months ago (2013-03-14 16:19:00 UTC) #3
Randy Smith (Not in Mondays)
On 2013/03/14 16:19:00, asanka wrote: > LGTM Not reviewing this since Asanka did (and I ...
7 years, 9 months ago (2013-03-14 16:52:23 UTC) #4
benjhayden
Scott: review for safe_browsing ownership?
7 years, 9 months ago (2013-03-14 17:38:36 UTC) #5
Scott Hess - ex-Googler
I'm with Randy - this papers over the symptom, but I think that there's probably ...
7 years, 9 months ago (2013-03-14 17:46:51 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benjhayden@chromium.org/12607011/33004
7 years, 9 months ago (2013-03-15 19:43:29 UTC) #7
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) sync_integration_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=123460
7 years, 9 months ago (2013-03-16 03:34:57 UTC) #8
benjhayden
7 years, 9 months ago (2013-03-16 17:34:11 UTC) #9
Message was sent while issue was closed.
Committed patchset #3 manually as r188602 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698